Pharo Theme
Publisher: VictorThemes in package: 1
Pharo inspired dark theme
Pharo inspired dark theme
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 |
|---|---|---|
| comment, punctuation.definition.comment | #758084 | italic |
| variable, string constant.other.placeholder, punctuation, meta.function-call.arguments, constant.character | #c6d1d2 | — |
| constant.other.color | #c6d1d2 | — |
| invalid, invalid.illegal | #cc7268 | — |
| keyword, storage.type, storage.modifier | #a7ce67 | — |
| keyword.control, constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, keyword.other.unit, keyword.other | #a7ce67 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, entity.other.inherited-class, punctuation.separator.inheritance.php | #66b5bc | — |
| meta.block variable.other, variable. | #c6d1d2 | — |
| constant.numeric, constant.language, support.constant, constant.escape | #08b065 | — |
| string, constant.other.symbol, constant.other.key, markup.heading, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #ca781e | — |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #66b5bc | — |
| support.type | #66b5bc | — |
| variable.language | #08b065 | — |
| string.regexp | #08b065 | — |
| constant.character.escape | #66b5bc | — |
| support.function.builtin.python | #08b065 | — |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #08b065 | — |
| meta.object-literal.key.js | #66b5bc | — |
| support.class.component.js | #a7ce67 | — |
| meta.jsx.children.js, meta.tag.attributes.js keyword.operator.assignment.js | #c6d1d2 | — |
| punctuation.section.embedded | #c6d1d2 | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #08b065 | — |
| storage.modifier.import.java, storage.modifier.package.java | #66b5bc | — |
| keyword.other.import.java, keyword.other.package.java | #a7ce67 | — |
| variable.language.this.php punctuation.definition.variable.php | #08b065 | — |
| entity.name.tag | #08b065 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #758084 | — |
| meta.tag | #66b5bc | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #c6d1d2 | — |
| entity.other.attribute-name.class, punctuation.definition.entity.css | #66b5bc | — |
| punctuation.definition.keyword.css, punctuation.definition.constant.css, punctuation.definition.keyword.scss | #a7ce67 | — |
| source.css keyword.other.unit | #08b065 | — |
| support.type.property-name.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #a7ce67 | — |
| string.quoted.double.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.json | #66b5bc | — |
| entity.tag.tagbraces.django | #a7ce67 | — |
| string.unquoted.tag-string.django | #c6d1d2 | |
| keyword.blade, support.function.construct.begin.blade, support.function.construct.end.blade | #a7ce67 | — |
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}!`;
}