Pythonista Light Theme
Publisher: SputchikThemes in package: 1
Another Very-Same looking dark theme from iOS Pythonista
Another Very-Same looking dark theme from iOS Pythonista
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent, string.json.comments | #2682d5 | — |
| comment | #808080 | — |
| string.quoted.docstring.multi | #447919 | — |
| punctuation.definition.decorator, punctuation.definition.annotation, entity.name.function.decorator.python, storage.type.annotation.java | #99684c | — |
| storage.type, variable.language, keyword.control, keyword.operator.logical, keyword.other, storage.modifier, support.function, constant.language.python, variable.parameter.function.language.special.self.python, constant.language.json | #a4258f | — |
| keyword.other.unit | #99684c | — |
| source.groovy.embedded, string meta.image.inline.markdown, source.python, meta.function, meta.funcion-call | #000000 | — |
| string, constant.other.set.regexp, constant.character.set.regexp, meta.fstring, meta.fstring.python, storage.type.string | #ce5149 | — |
| entity.name.method, support.constant.handlebars, source.powershell variable.other.member, entity.name.function, entity.name.operator.custom-literal, meta.function-call.generic, meta.class.python, support.function.magic.python, support.function.builtin.python, support.type.python | #21767e | — |
| entity.name.function.python, support.function.magic.python, entity.name.type.class.python | #21767e | bold |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}