Shadow Theme — VS Code Color & Icon Themes
Publisher: Raza RaheemThemes in package: 30
30 hand-crafted VS Code color themes — dark, light & OLED — plus 450+ file icons. Anime, minimal & pro styles with a built-in theme switcher.
30 hand-crafted VS Code color themes — dark, light & OLED — plus 450+ file icons. Anime, minimal & pro styles with a built-in theme switcher.
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 | #6E738D | italic |
| string, string.quoted, string.template | #A6DA95 | — |
| constant.numeric | #F5A97F | — |
| constant.language, constant.language.null | #F5A97F | — |
| keyword, keyword.control, storage.modifier, meta.decorator, punctuation.decorator | #C6A0F6 | — |
| keyword.operator | #939AB7 | — |
| storage.type | #EED49F | — |
| constant.language.boolean | #F5A97F | — |
| string.regexp | #F5BDE6 | — |
| entity.name.function, support.function, meta.function-call | #8AADF4 | — |
| entity.name.type, entity.name.class, support.type, support.class | #EED49F | — |
| variable, variable.other, variable.parameter | #CAD3F5 | — |
| entity.name.tag, meta.tag | #C6A0F6 | — |
| entity.other.attribute-name | #EED49F | — |
| constant.character.escape | #8AADF4 | — |
| invalid, invalid.illegal | #ED8796 | — |
| markup.heading | #8AADF4 | bold |
| markup.bold | #CAD3F5 | bold |
| markup.italic | #C6A0F6 | italic |
| markup.underline.link, string.other.link | #8AADF4 | — |
| markup.inline.raw, markup.fenced_code | #F5A97F | — |
| markup.fenced_code | — | — |
| markup.quote | #6E738D | italic |
| markup.list, punctuation.definition.list | #EED49F | — |
| markup.inserted | #A6DA95 | — |
| markup.deleted | #ED8796 | — |
| punctuation, meta.brace | #939AB7 | — |
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}!`;
}