themesmith
Handcrafted VS Code themes + live theme generator + community gallery. Create, preview, and share themes!
Handcrafted VS Code themes + live theme generator + community gallery. Create, preview, and share themes!
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|
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 | #9a7a5c | italic |
| string, string.quoted, string.template | #FFD166 | — |
| keyword, storage.type, storage.modifier | #FF8C00 | bold |
| keyword.operator, punctuation.accessor | #FFB84D | — |
| variable, variable.other | #F5E8D0 | — |
| variable.parameter | #FFC966 | italic |
| entity.name.function, support.function | #FFB84D | — |
| meta.function-call | #FFD1A9 | — |
| entity.name.class, entity.name.type.class, support.class | #FF9C33 | bold |
| entity.name.type, support.type | #FF9C33 | — |
| entity.name.type.interface | #6EB5FF | italic |
| constant.numeric | #FFC966 | — |
| constant, constant.language, constant.character | #FFB84D | — |
| constant.language.boolean | #FFC966 | bold |
| variable.other.property, support.variable.property | #FFD1A9 | — |
| meta.object-literal.key | #FF9C33 | — |
| entity.name.tag, punctuation.definition.tag | #FF8C00 | — |
| entity.other.attribute-name | #FFC966 | italic |
| punctuation, meta.brace | #FFB84D | — |
| string.regexp | #FFC966 | — |
| constant.character.escape | #6EB5FF | — |
| meta.decorator, punctuation.decorator | #FFC966 | — |
| invalid, invalid.illegal | #FF4C33 | strikethrough |
| markup.heading, entity.name.section | #FF8C00 | bold |
| markup.bold | #FFC966 | bold |
| markup.italic | #FFD166 | italic |
| markup.underline.link | #6EB5FF | — |
| markup.inline.raw, markup.fenced_code | #B7FF6E | — |
| support.type.property-name.json | #FF8C00 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFC966 | — |
| support.type.property-name.css | #FF9C33 | — |
| support.constant.property-value.css | #FFD166 | — |
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 | #999999 | italic |
| string, string.quoted, string.template | #FFE600 | — |
| keyword, storage.type, storage.modifier | #E4002B | bold |
| keyword.operator, punctuation.accessor | #E4002B | — |
| variable, variable.other | #007ACC | — |
| variable.parameter | #FF8C00 | italic |
| entity.name.function, support.function | #008000 | — |
| meta.function-call | #008000 | — |
| entity.name.class, entity.name.type.class, support.class | #C71585 | bold |
| entity.name.type, support.type | #20B2AA | — |
| entity.name.type.interface | #20B2AA | italic |
| constant.numeric | #FF8C00 | — |
| constant, constant.language, constant.character | #20B2AA | — |
| constant.language.boolean | #E4002B | bold |
| variable.other.property, support.variable.property | #007ACC | — |
| meta.object-literal.key | #20B2AA | — |
| entity.name.tag, punctuation.definition.tag | #E4002B | — |
| entity.other.attribute-name | #FF8C00 | italic |
| punctuation, meta.brace | #666666 | — |
| string.regexp | #C71585 | — |
| constant.character.escape | #FF8C00 | — |
| meta.decorator, punctuation.decorator | #3A96DD | — |
| invalid, invalid.illegal | #FF3333 | strikethrough |
| markup.heading, entity.name.section | #E4002B | bold |
| markup.bold | #E4002B | bold |
| markup.italic | #666666 | italic |
| markup.underline.link | #007ACC | — |
| markup.inline.raw, markup.fenced_code | #008000 | — |
| support.type.property-name.json | #20B2AA | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #C71585 | — |
| support.type.property-name.css | #007ACC | — |
| support.constant.property-value.css | #008000 | — |
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}!`;
}