Theme Changer Collection
Publisher: Tan XinThemes in package: 10
A curated collection of 10 unique VS Code themes — 8 dark themes and 2 light themes, with a quick theme switcher command.
A curated collection of 10 unique VS Code themes — 8 dark themes and 2 light themes, with a quick theme switcher command.
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 | #4a4a4a | italic |
| string | #ffb000 | — |
| string.regexp | #00d4ff | — |
| constant.numeric | #00ff41 | — |
| constant.language | #00ff41 | — |
| constant.character.escape | #00ff41 | — |
| variable.other.constant | #ffb000 | bold |
| keyword | #00ff41 | — |
| keyword.control | #00ff41 | — |
| keyword.operator | #00d4ff | — |
| storage.type | #00ff41 | — |
| storage.modifier | #00ff41 | — |
| entity.name.function | #00ff41 | — |
| entity.name.type | #ffb000 | — |
| entity.name.class | #ffb000 | — |
| entity.name.tag | #ff3333 | — |
| support.class | #ffb000 | — |
| support.function | #00ff41 | — |
| support.type | #00d4ff | — |
| support.constant | #ffb000 | — |
| meta.function-call | #00ff41 | — |
| variable.parameter | #ffb000 | — |
| variable.language | #ff3333 | — |
| variable.other | #e0e0e0 | — |
| punctuation.definition.string | #ffb000 | — |
| punctuation.definition.comment | #4a4a4a | — |
| punctuation.separator | #00d4ff | — |
| punctuation.terminator | #00d4ff | — |
| punctuation.definition.block | #00d4ff | — |
| punctuation.definition.parameters | #00d4ff | — |
| invalid | #ff3333 | bold |
| invalid.deprecated | #ffb000 | — |
| markup.heading | #00ff41 | bold |
| markup.bold | #ffb000 | bold |
| markup.italic | #00ff41 | italic |
| markup.inline.raw | #ffb000 | — |
| markup.link | #00d4ff | — |
| markup.deleted | #ff3333 | — |
| markup.inserted | #00ff41 | — |
| markup.changed | #00d4ff | — |
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}!`;
}