VS Code Themes
Publisher: mjlauferThemes in package: 8
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 | #5c6370 | — |
| variable, meta.object-literal.key, source.json meta.structure.dictionary.json support.type.property-name.json | #abb2bf | — |
| meta.brace, punctuation, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, constant.other.color, keyword.other.template, keyword.other.substitution | #abb2bf | — |
| keyword | #56b6c2 | — |
| keyword.operator | #56b6c2 | — |
| punctuation.definition.template-expression | #56b6c2 | — |
| storage.type, storage.modifier | #e06c75 | — |
| variable.language | #e06c75 | — |
| string | #98c379 | — |
| constant.language, constant.numeric, keyword.other.unit | #c678dd | — |
| string.regexp | #c678dd | — |
| constant.character, constant.character.escape, support.constant, variable.parameter | #d19a66 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, meta.block-level | #61afef | — |
| entity.name.class, entity.name.type.class, entity.other.inherited-class, new.expr entity.name.type, support.class.builtin | #e5c07b | — |
| entity.name.type, support.type | #e5c07b | — |
| entity.name.tag, meta.tag.sgml | #e06c75 | — |
| support.class.component | #e5c07b | — |
| entity.other.attribute-name | #c678dd | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #56b6c2 | — |
| meta.jsx.children | #56b6c2 | — |
| support.other.variable, string.other.link | #d19a66 | — |
| constant.other.symbol, constant.other.key, markup.heading | #d19a66 | — |
| markup.heading | #e5c07b | — |
| markup.inserted, markup.inserted.git_gutter | #98c379 | — |
| markup.changed, markup.changed.git_gutter | #61afef | — |
| markup.deleted, markup.deleted.git_gutter | #e06c75 | — |
| *url*, *link*, *uri* | — | underline |
| constant.numeric.line-number.find-in-files - match | #d19a66 | — |
| entity.name.filename.find-in-files | #98c379 | — |
| token.info-token | #61afef | — |
| token.warn-token | #e5c07b | — |
| token.error-token | #d19a66 | — |
| token.debug-token | #c678dd | — |
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}!`;
}