Modern Themes
24 handcrafted modern color themes plus a coding font picker that can install bundled open-source fonts for you. Every color is solved for WCAG contrast.
24 handcrafted modern color themes plus a coding font picker that can install bundled open-source fonts for you. Every color is solved for WCAG contrast.
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, string.comment | #858b6d | italic |
| comment.block.documentation storage.type, comment keyword | #858b6d | italic bold |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.separator, punctuation.terminator | #8f937e | — |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, entity.name.variable | #c9cbc3 | — |
| variable.parameter, meta.function.parameters variable | #c9b39d | italic |
| variable.language, variable.language.this, variable.other.constant | #ca8656 | italic |
| variable.other.property, meta.object-literal.key, support.type.property-name, variable.other.object.property | #8a93cc | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.type | #d57998 | — |
| keyword.operator, punctuation.accessor, storage.type.function.arrow | #b7768c | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #d57998 | italic |
| string, string.quoted, punctuation.definition.string, string.template | #35a794 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #b7768c | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #3da0ca | — |
| constant.character.escape, constant.character | #ca8656 | — |
| constant.numeric, constant.language.numeric | #9b9b31 | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #9b9b31 | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function | #8792d9 | — |
| entity.name.method, meta.method entity.name.function | #8792d9 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, meta.type.annotation, entity.name.namespace | #479fc5 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #9a9a3c | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #ca8656 | — |
| support.class.component, entity.name.tag.custom | #479fc5 | — |
| entity.other.attribute-name, meta.attribute | #9a9a3c | italic |
| entity.name.selector, entity.other.attribute-name.class, entity.other.attribute-name.id | #479fc5 | — |
| support.type.property-name.css, support.type.property-name.scss | #8a93cc | — |
| keyword.other.unit, constant.numeric.css | #9b9b31 | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double | #8a93cc | — |
| entity.name.tag.yaml | #8a93cc | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading | #8792d9 | bold |
| markup.bold | #9b9b31 | bold |
| markup.italic | #d57998 | italic |
| markup.strikethrough | #858b6d | strikethrough |
| markup.underline.link, string.other.link | #d06a5a | underline |
| markup.quote | #858b6d | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #35a794 | — |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list | #ca8656 | — |
| markup.inserted | #359a5f | — |
| markup.deleted | #cb6e67 | — |
| markup.changed | #a78339 | — |
| invalid, invalid.illegal | #d27278 | — |
| invalid.deprecated | #ac8936 | strikethrough |
| variable.other.normal.shell, string.interpolated.dollar.shell | #8a93cc | — |
| keyword.other.definition.ini, entity.name.section.ini | #8a93cc | — |
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, string.comment | #997a99 | italic |
| comment.block.documentation storage.type, comment keyword | #997a99 | italic bold |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.separator, punctuation.terminator | #9d889d | — |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, entity.name.variable | #cdc4cd | — |
| variable.parameter, meta.function.parameters variable | #ceab9e | italic |
| variable.language, variable.language.this, variable.other.constant | #d17c47 | italic |
| variable.other.property, meta.object-literal.key, support.type.property-name, variable.other.object.property | #818ecf | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.type | #db6e96 | — |
| keyword.operator, punctuation.accessor, storage.type.function.arrow | #ba6c88 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #db6e96 | italic |
| string, string.quoted, punctuation.definition.string, string.template | #29a38b | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ba6c88 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #299dc7 | — |
| constant.character.escape, constant.character | #d17c47 | — |
| constant.numeric, constant.language.numeric | #a39f29 | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #a39f29 | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function | #7c8dde | — |
| entity.name.method, meta.method entity.name.function | #7c8dde | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, meta.type.annotation, entity.name.namespace | #319dc4 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #9a9732 | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #d17c47 | — |
| support.class.component, entity.name.tag.custom | #319dc4 | — |
| entity.other.attribute-name, meta.attribute | #9a9732 | italic |
| entity.name.selector, entity.other.attribute-name.class, entity.other.attribute-name.id | #319dc4 | — |
| support.type.property-name.css, support.type.property-name.scss | #818ecf | — |
| keyword.other.unit, constant.numeric.css | #a39f29 | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double | #818ecf | — |
| entity.name.tag.yaml | #818ecf | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading | #7c8dde | bold |
| markup.bold | #a39f29 | bold |
| markup.italic | #db6e96 | italic |
| markup.strikethrough | #997a99 | strikethrough |
| markup.underline.link, string.other.link | #cd56b9 | underline |
| markup.quote | #997a99 | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #29a38b | — |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list | #d17c47 | — |
| markup.inserted | #2ca05c | — |
| markup.deleted | #d2635b | — |
| markup.changed | #a67e2e | — |
| invalid, invalid.illegal | #d9666e | — |
| invalid.deprecated | #ab852b | strikethrough |
| variable.other.normal.shell, string.interpolated.dollar.shell | #818ecf | — |
| keyword.other.definition.ini, entity.name.section.ini | #818ecf | — |
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, string.comment | #6b7382 | italic |
| comment.block.documentation storage.type, comment keyword | #6b7382 | italic bold |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.separator, punctuation.terminator | #646a75 | — |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, entity.name.variable | #3d4045 | — |
| variable.parameter, meta.function.parameters variable | #6c3836 | italic |
| variable.language, variable.language.this, variable.other.constant | #c3291b | italic |
| variable.other.property, meta.object-literal.key, support.type.property-name, variable.other.object.property | #2f68aa | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.type | #bc1a86 | — |
| keyword.operator, punctuation.accessor, storage.type.function.arrow | #ba4593 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #bc1a86 | italic |
| string, string.quoted, punctuation.definition.string, string.template | #107542 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ba4593 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #0a716d | — |
| constant.character.escape, constant.character | #c3291b | — |
| constant.numeric, constant.language.numeric | #845e12 | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #845e12 | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function | #1a66bc | — |
| entity.name.method, meta.method entity.name.function | #1a66bc | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, meta.type.annotation, entity.name.namespace | #10726f | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #82601c | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #c3291b | — |
| support.class.component, entity.name.tag.custom | #10726f | — |
| entity.other.attribute-name, meta.attribute | #82601c | italic |
| entity.name.selector, entity.other.attribute-name.class, entity.other.attribute-name.id | #10726f | — |
| support.type.property-name.css, support.type.property-name.scss | #2f68aa | — |
| keyword.other.unit, constant.numeric.css | #845e12 | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double | #2f68aa | — |
| entity.name.tag.yaml | #2f68aa | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading | #1a66bc | bold |
| markup.bold | #845e12 | bold |
| markup.italic | #bc1a86 | italic |
| markup.strikethrough | #6b7382 | strikethrough |
| markup.underline.link, string.other.link | #386ed9 | underline |
| markup.quote | #6b7382 | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #107542 | — |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list | #c3291b | — |
| markup.inserted | #158443 | — |
| markup.deleted | #d92f23 | — |
| markup.changed | #936a18 | — |
| invalid, invalid.illegal | #d51d29 | — |
| invalid.deprecated | #8b6713 | strikethrough |
| variable.other.normal.shell, string.interpolated.dollar.shell | #2f68aa | — |
| keyword.other.definition.ini, entity.name.section.ini | #2f68aa | — |
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, string.comment | #9b7b87 | italic |
| comment.block.documentation storage.type, comment keyword | #9b7b87 | italic bold |
| punctuation, meta.brace, punctuation.definition.parameters, punctuation.separator, punctuation.terminator | #9f878f | — |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, entity.name.variable | #cdc4c7 | — |
| variable.parameter, meta.function.parameters variable | #d0a9a4 | italic |
| variable.language, variable.language.this, variable.other.constant | #d57762 | italic |
| variable.other.property, meta.object-literal.key, support.type.property-name, variable.other.object.property | #7393c9 | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.type | #d86eaa | — |
| keyword.operator, punctuation.accessor, storage.type.function.arrow | #b86b96 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default | #d86eaa | italic |
| string, string.quoted, punctuation.definition.string, string.template | #2ca575 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #b86b96 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #25a1a9 | — |
| constant.character.escape, constant.character | #d57762 | — |
| constant.numeric, constant.language.numeric | #ad902e | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #ad902e | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function | #6a92d7 | — |
| entity.name.method, meta.method entity.name.function | #6a92d7 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, meta.type.annotation, entity.name.namespace | #2da1a9 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #a98f3a | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #d57762 | — |
| support.class.component, entity.name.tag.custom | #2da1a9 | — |
| entity.other.attribute-name, meta.attribute | #a98f3a | italic |
| entity.name.selector, entity.other.attribute-name.class, entity.other.attribute-name.id | #2da1a9 | — |
| support.type.property-name.css, support.type.property-name.scss | #7393c9 | — |
| keyword.other.unit, constant.numeric.css | #ad902e | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double | #7393c9 | — |
| entity.name.tag.yaml | #7393c9 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading | #6a92d7 | bold |
| markup.bold | #ad902e | bold |
| markup.italic | #d86eaa | italic |
| markup.strikethrough | #9b7b87 | strikethrough |
| markup.underline.link, string.other.link | #d25e7b | underline |
| markup.quote | #9b7b87 | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #2ca575 | — |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list | #d57762 | — |
| markup.inserted | #2e9e5d | — |
| markup.deleted | #cf635b | — |
| markup.changed | #a67f30 | — |
| invalid, invalid.illegal | #d7686f | — |
| invalid.deprecated | #ab862e | strikethrough |
| variable.other.normal.shell, string.interpolated.dollar.shell | #7393c9 | — |
| keyword.other.definition.ini, entity.name.section.ini | #7393c9 | — |
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}!`;
}
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}!`;
}