Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment | #555C77 | — |
| entity.name.type | #A571F4 | — |
| entity.other.inherited-class | #9AEFEA | — |
| keyword | #7E7EDD | — |
| keyword.control | #7E7EDD | — |
| keyword.operator | #B9BED5 | — |
| keyword.other.special-method | #F5FAFF | — |
| keyword.other.unit | #DDA2F6 | — |
| storage | #7B88A1 | — |
| storage.type.annotation | #7E7EDD | — |
| storage.type.primitive | #7E7EDD | — |
| storage.modifier.package | #B9BED5 | — |
| storage.modifier.import | #B9BED5 | — |
| constant | #DDA2F6 | — |
| constant.variable | #DDA2F6 | — |
| constant.character.escape | #93DDFB | — |
| constant.numeric | #DDA2F6 | — |
| constant.other.color | #93DDFB | — |
| constant.other.symbol | #93DDFB | — |
| variable | #85B1E0 | — |
| variable.interpolation | #4D8ACB | — |
| variable.parameter | #B9BED5 | — |
| string | #9AEFEA | — |
| string.regexp | #93DDFB | — |
| string.regexp source.ruby.embedded | #A571F4 | — |
| fenced_code.block.language.markdown | #A571F4 | — |
| punctuation.definition.comment | #555C77 | — |
| punctuation.definition | #7e7edd | — |
| punctuation.definition.method-parameters punctuation.definition.function-parameters punctuation.definition.parameters punctuation.definition.separator punctuation.definition.seperator punctuation.definition.array | #B9BED5 | — |
| punctuation.definition.heading, punctuation.definition.identity | #F5FAFF | — |
| punctuation.definition.bold | #A571F4 | bold |
| punctuation.definition.italic | #7E7EDD | italic |
| punctuation.section.embedded | #4D8ACB | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #B9BED5 | — |
| support.class | #A571F4 | — |
| support.type | #93DDFB | — |
| support.function | #93DDFB | — |
| support.function.any-method | #F5FAFF | — |
| entity.name.function | #7E7EDD | — |
| entity.name.class, entity.name.type.class | #A571F4 | — |
| entity.name.section | #A571F4 | — |
| entity.name.tag | #85B1E0 | — |
| entity.other.attribute-name | #DDA2F6 | — |
| entity.other.attribute-name.id | #7e7edd | — |
| meta.class.body | #B9BED5 | — |
| meta.method-call, meta.method | #7B88A1 | — |
| meta.definition.variable | #85B1E0 | — |
| meta.link | #DDA2F6 | — |
| meta.require | #F5FAFF | — |
| meta.selector | #7E7EDD | — |
| meta.separator | #B9BED5 | — |
| meta.tag | #B9BED5 | — |
| underline | — | underline |
| none | #B9BED5 | — |
| invalid.deprecated | #523D14 | — |
| invalid.illegal | #FFFFFF | — |
| markup.bold | #DDA2F6 | bold |
| markup.changed | #7E7EDD | — |
| markup.deleted | #85B1E0 | — |
| markup.italic | #7E7EDD | italic |
| markup.heading | #85B1E0 | — |
| markup.heading punctuation.definition.heading | #A571F4 | — |
| markup.link | #7E7EDD | — |
| markup.inserted | #9AEFEA | — |
| markup.quote | #DDA2F6 | — |
| markup.raw | #9AEFEA | — |
| source.cs keyword.operator | #7E7EDD | — |
| source.css property-name, source.css property-value | #7D839B | — |
| source.css property-name.support, source.css property-value.support | #B9BED5 | — |
| source.gfm link entity | #F5FAFF | — |
| source.go storage.type.string | #7E7EDD | — |
| source.ini keyword.other.definition.ini | #85B1E0 | — |
| source.java storage.modifier.import | #A571F4 | — |
| source.java storage.type | #A571F4 | — |
| source.java keyword.operator.instanceof | #7E7EDD | — |
| source.java-properties meta.key-pair | #85B1E0 | — |
| source.js keyword.operator | #93DDFB | — |
| source.js keyword.operator.js, source.js keyword.operator.delete, source.js keyword.operator.in, source.js keyword.operator.of, source.js keyword.operator.instanceof, source.js keyword.operator.new, source.js keyword.operator.typeof, source.js keyword.operator.void | #7E7EDD | — |
| source.ruby constant.other.symbol punctuation | #93DDFB | — |
| source.python keyword.operator.logical.python | #7E7EDD | — |
| source.python variable.parameter | #DDA2F6 | — |
| source.java-properties meta.key-pair punctuation | #B9BED5 | — |
| source.json meta.structure.dictionary.json string.quoted.json | #85B1E0 | — |
| source.json meta.structure.dictionary.json string.quoted.json punctuation.string | #85B1E0 | — |
| source.json meta.structure.dictionary.json value.json string.quoted.json, source.json meta.structure.array.json value.json string.quoted.json, source.json meta.structure.dictionary.json value.json string.quoted.json punctuation, source.json meta.structure.array.json value.json string.quoted.json punctuation | #9AEFEA | — |
| source.json meta.structure.dictionary.json constant.language.json, source.json meta.structure.array.json constant.language.json | #93DDFB | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
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}!`;
}