Developer's Dojo
Publisher: Andrew Jay ChambersThemes 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 |
|---|---|---|
| token.info-token | #00C4A4 | — |
| token.warn-token | #E50000 | — |
| token.error-token | #F50000 | — |
| token.debug-token | #650000 | — |
| markup.heading | #A77CFF | bold |
| invalid.illegal | #F50000 | bold underline |
| source, text | #A0AAD0 | — |
| comment, punctuation.definition.comment | #0C6E9C | |
| punctuation, meta.brace | #2C8CFF | |
| source keyword, source storage, string punctuation.definition.string, meta.preprocessor punctuation.definition.string, meta.preprocessor punctuation.definition | #2C8CFF | bold |
| source keyword, source keyword.other, source keyword.control, source meta.scope.recipe, source keyword.operator.new, source support.type.property-name, source punctuation.definition.string, source punctuation.definition.string source.css-ignored-vscode | #2C8CFF | italic bold |
| storage.type.modifier.access.control | #2C8CFF | bold underline |
| source keyword.operator, keyword.operator.bitwise.shift, source entity.name.operator, source storage.modifier.reference, source entity.name.function.operator.member, meta.preprocessor punctuation.definition, markup.underline.link, punctuation.accessor, keyword.operator.logical, keyword.operator.ternary, keyword.operator.increment, keyword.operator.decrement, entity.other.document.begin, keyword.operator.arithmetic, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, punctuation.separator.key-value, punctuation.separator.dot-access, punctuation.separator.colon.case, punctuation.definition.directive, keyword.operator.assignment.compound, punctuation.separator.pointer-access, punctuation.separator.scope-resolution, punctuation.separator.key-value.editorconfig | #FF40C4 | |
| source entity.name.namespace | #AC87FF | |
| source support.class, source support.type.object, source variable.other.object, source entity.type, source entity.class, source entity.name.class, source entity.name.type.class, source entity.type, source entity.name.type, source entity.name.type.class | #07CCAC | |
| source entity.name.tag, source entity.name.function, source entity.name.function.call, source entity.name.function.method, source entity.name.function.target, source entity.name.function.definition.special.constructor | #1CC0F1 | — |
| variable.language.this | — | italic |
| meta.class.body.js meta.function.method.js entity.name.function.method.js | #1CC0F1 | underline |
| source entity.name.function.call, source entity.name.function.method, source entity.name.function.target, source entity.name.function.definition.special.constructor | #1CC0F1 | |
| constant.numeric | #6ACC24 | |
| string, source.makefile, entity.source.cmake, meta.scope.prerequisites | #50BC70 | italic |
| string.quoted.double.json | #7CC096 | — |
| string.quoted.double source | #5000E0 | italic |
| variable.language, constant.language, constant.boolean, constant.null, constant.nan, variable.other.macro, entity.name.function.preprocessor, string.quoted.other.lt-gt | #F47238 | italic |
| constant | #F47238 | |
| entity.other.attribute-name, punctuation.separator.key-value.html | #30C400 | |
| variable.parameter | #D0A234 | italic |
| variable.property, variable.other.property, variable.other.makefile | #A5ACC4 | — |
| source.json meta meta meta meta meta meta meta meta meta meta meta string support.type.property-name | #15BEEE | |
| source.json meta meta meta meta meta meta meta meta meta string support.type.property-name | #A77CFF | |
| source.json meta meta meta meta meta meta meta string support.type.property-name | #04C0B4 | |
| source.json meta meta meta meta meta string support.type.property-name | #15BEEE | |
| source.json meta meta meta string support.type.property-name | #A77CFF | |
| source.json meta string support.type.property-name | #04C0B4 | |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.bold.markdown markup.italic.markdown, markup.italic.markdown markup.bold.markdown | — | italic bold |
| markup punctuation, text.html punctuation, markup.inline.raw.string | #049CFF | |
| meta.separator.markdown, string.other.link.description | #FF40B0 | — |
| heading entity.name.section | #6CC848 | |
| heading.1 entity.name.section, heading.2 entity.name.section | #6CC848 | underline |
| heading.3 entity.name.section, heading.4 entity.name.section | #6CC848 | |
| heading.1 entity.name.section markup.bold, heading.2 entity.name.section markup.bold | #6CC848 | bold underline |
| heading.1 entity.name.section markup.italic, heading.2 entity.name.section markup.italic | #6CC848 | italic underline |
| heading.1 entity.name.section markup.bold markup.italic, heading.2 entity.name.section markup.bold markup.italic | #6CC848 | italic bold underline |
| heading.3 entity.name.section markup.bold, heading.4 entity.name.section markup.bold | #6CC848 | bold |
| heading.3 entity.name.section markup.italic, heading.4 entity.name.section markup.italic | #6CC848 | italic |
| heading.1 entity.name.section markup.bold markup.italic, heading.2 entity.name.section markup.bold markup.italic | #6CC848 | italic bold |
| heading.3 entity.name.section markup.bold markup.italic, heading.4 entity.name.section markup.bold markup.italic | #6CC848 | italic bold |
| storage.type.class.doxygen, comment.block storage.type, comment.block storage.type.class | #07CCACA0 | |
| comment.block variable.parameter | #D5000D80 | italic |
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}!`;
}