SFX Themes
Publisher: SFXThemes in package: 1
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, comment.line | #777777 | — |
| comment.block | #777777 | italic |
| comment.block.documentation | #629755 | — |
| constant | #CC7832 | — |
| constant.numeric, keyword.other.unit.hexadecimal | #6696BD | — |
| constant.character | #CE7827 | — |
| constant.regexp | #811F3F | — |
| constant.other, constant.rgb-value | #CC7832 | bold |
| emphasis | — | italic |
| strong | — | bold |
| entity.name.function | #EBCB8B | |
| entity.name.tag | #E8BF6A | |
| entity.name | #C7AF3F | italic |
| entity.name.type.annotation, storage.type.annotation | #C7AF3F | italic bold |
| entity.name.type.class, entity.name.class, entity.other.attribute-name.class | #C7AF3F | |
| entity.name.package, entity.name.type.package | #6A8759 | italic |
| entity.other.attribute-name | #C16160 | |
| entity.name.selector | #C16160 | italic |
| entity | #FFC662 | italic |
| entity.name.variable | #A9B7C6 | |
| invalid | #CD3131 | |
| invalid.deprecated | #E6E649 | bold |
| invalid.illegal | #CD3131 | bold |
| keyword | #CC7832 | |
| keyword.operator.new | #CC7832 | italic |
| keyword.control, keyword.operator | #CC7832 | bold |
| keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.ternary, keyword.operator.closure | #A9B7C6 | |
| keyword.other | #CC7832 | italic bold |
| variable.language.this | #FFC765 | italic bold |
| variable | #a9b7c6 | |
| variable.language | #a9b7c6 | italic |
| variable.other | #FFC765 | italic |
| variable.name, support.type.property-name | #a9b7c6 | |
| variable.parameter | #A98AAB | — |
| storage.type.primitive | #A98AAB | italic |
| string, support.constant.property-value | #7D9869 | — |
| punctuation.dot, punctuation.separator, punctuation.terminator, punctuation.definition.string | #a9b7c688 | — |
| storage.modifier | #C16160 | — |
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}!`;
}