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 | #7c6f64 | — |
| variable, meta.object-literal.key, source.json meta.structure.dictionary.json support.type.property-name.json | #3c3836 | — |
| 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 | #3c3836 | — |
| keyword | #427b58 | — |
| keyword.operator | #427b58 | — |
| punctuation.definition.template-expression | #427b58 | — |
| storage.type, storage.modifier | #9d0006 | — |
| variable.language | #9d0006 | — |
| string | #79740e | — |
| constant.language, constant.numeric, keyword.other.unit | #8f3f71 | — |
| string.regexp | #8f3f71 | — |
| constant.character, constant.character.escape, support.constant, variable.parameter | #af3a03 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method, meta.block-level | #076678 | — |
| entity.name.class, entity.name.type.class, entity.other.inherited-class, new.expr entity.name.type, support.class.builtin | #b57614 | — |
| entity.name.type, support.type | #b57614 | — |
| entity.name.tag, meta.tag.sgml | #9d0006 | — |
| support.class.component | #b57614 | — |
| entity.other.attribute-name | #8f3f71 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #427b58 | — |
| meta.jsx.children | #427b58 | — |
| support.other.variable, string.other.link | #af3a03 | — |
| constant.other.symbol, constant.other.key, markup.heading | #af3a03 | — |
| markup.heading | #b57614 | — |
| markup.inserted, markup.inserted.git_gutter | #79740e | — |
| markup.changed, markup.changed.git_gutter | #076678 | — |
| markup.deleted, markup.deleted.git_gutter | #9d0006 | — |
| *url*, *link*, *uri* | — | underline |
| constant.numeric.line-number.find-in-files - match | #af3a03 | — |
| entity.name.filename.find-in-files | #79740e | — |
| token.info-token | #076678 | — |
| token.warn-token | #b57614 | — |
| token.error-token | #af3a03 | — |
| token.debug-token | #8f3f71 | — |
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}!`;
}