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 | #7B8794 | italic |
| string, string.quoted, string.template | #3D8B7A | — |
| constant.numeric | #C47A20 | — |
| constant.language, constant.language.null | #4A7A9A | — |
| keyword, keyword.control, storage.modifier, meta.decorator, punctuation.decorator | #7B5EA7 | — |
| keyword.operator | #5C6773 | — |
| storage.type | #9E6B00 | — |
| constant.language.boolean | #4A7A9A | — |
| string.regexp | #2A6DB0 | — |
| entity.name.function, support.function, meta.function-call | #2A6DB0 | — |
| entity.name.type, entity.name.class, support.type, support.class | #9E6B00 | — |
| variable, variable.other, variable.parameter | #3D4654 | — |
| entity.name.tag, meta.tag | #7B5EA7 | — |
| entity.other.attribute-name | #C47A20 | — |
| constant.character.escape | #2A6DB0 | — |
| invalid, invalid.illegal | #C44B4B | — |
| markup.heading | #2A6DB0 | bold |
| markup.bold | #2E3440 | bold |
| markup.italic | #7B5EA7 | italic |
| markup.underline.link, string.other.link | #2A6DB0 | — |
| markup.inline.raw, markup.fenced_code | #C47A20 | — |
| markup.fenced_code | — | — |
| markup.quote | #7B8794 | italic |
| markup.list, punctuation.definition.list | #9E6B00 | — |
| markup.inserted | #0D7377 | — |
| markup.deleted | #C44B4B | — |
| punctuation, meta.brace | #5C6773 | — |
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}!`;
}