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 | #5A5080 | italic |
| string, string.quoted, string.template | #68C88A | — |
| constant.numeric | #E870A0 | — |
| constant.language, constant.language.null | #E870A0 | — |
| keyword, keyword.control, storage.modifier, meta.decorator, punctuation.decorator | #9D60FF | — |
| keyword.operator | #9080C0 | — |
| storage.type | #B070F8 | — |
| constant.language.boolean | #E870A0 | — |
| string.regexp | #FF5080 | — |
| entity.name.function, support.function, meta.function-call | #50D8E8 | — |
| entity.name.type, entity.name.class, support.type, support.class | #B070F8 | — |
| variable, variable.other, variable.parameter | #D8D0F0 | — |
| entity.name.tag, meta.tag | #9D60FF | — |
| entity.other.attribute-name | #7888E8 | — |
| constant.character.escape | #9D60FF | — |
| invalid, invalid.illegal | #FF4070 | — |
| markup.heading | #9D60FF | bold |
| markup.bold | #E0DAFF | bold |
| markup.italic | #7888E8 | italic |
| markup.underline.link, string.other.link | #60F0F8 | — |
| markup.inline.raw, markup.fenced_code | #E870A0 | — |
| markup.fenced_code | — | — |
| markup.quote | #5A5080 | italic |
| markup.list, punctuation.definition.list | #B070F8 | — |
| markup.inserted | #68C88A | — |
| markup.deleted | #FF4070 | — |
| punctuation, meta.brace | #9080C0 | — |
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}!`;
}