Dark Default — Refined (Lilac & Emerald)
Publisher: Inna SodriThemes in package: 2
Feels like VS Code Dark+ but cleaner: calmer selections, clearer sidebar/tabs, and tasteful accent. Two variants in one extension.
Feels like VS Code Dark+ but cleaner: calmer selections, clearer sidebar/tabs, and tasteful accent. Two variants in one extension.
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 | #7F848E | italic |
| keyword, storage.type, storage.modifier | #B28DFF | — |
| entity.name.function, support.function | #DCDCAA | — |
| string, constant.other.symbol | #CE9178 | — |
| constant.numeric, constant.language.boolean | #B5CEA8 | — |
| entity.name.type, support.type, storage.type.class | #4EC9B0 | — |
| variable, meta.definition.variable, meta.object-literal.key | #D4D4D4 | — |
| punctuation, delimiter, meta.brace | #C8CCD4 | — |
| invalid, invalid.deprecated | #1E1E1E | — |
| markup.heading | #B28DFF | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
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}!`;
}