Neon Sunset
Publisher: SoftServiceThemes in package: 1
A vibrant dark theme with warm sunset colors - coral, orange, sky blue, and purple accents on a sleek dark grey background.
A vibrant dark theme with warm sunset colors - coral, orange, sky blue, and purple accents on a sleek dark grey background.
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 | #6a6a8a | italic |
| keyword, storage.type, storage.modifier | #C792EA | — |
| keyword.control, keyword.operator.new | #C792EA | — |
| entity.name.function, meta.function-call, support.function | #87CEEB | — |
| entity.name.type, entity.name.class, support.class, entity.other.inherited-class | #FF9248 | — |
| string, string.quoted | #C792EA | — |
| constant.numeric | #FF9248 | — |
| constant.language, constant.other | #FF9248 | — |
| variable, variable.other | #eaeaea | — |
| variable.parameter | #FF9248 | — |
| variable.other.property, variable.other.object.property | #87CEEB | — |
| keyword.operator | #FF6B7A | — |
| punctuation | #cccccc | — |
| entity.name.tag | #FF6B7A | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag support.class.component | #FF9248 | — |
| entity.other.attribute-name | #87CEEB | — |
| support.type.property-name.css | #87CEEB | — |
| support.constant.property-value.css | #FF9248 | — |
| support.type.property-name.json | #FF6B7A | — |
| markup.heading, entity.name.section.markdown | #FF9248 | bold |
| markup.bold | #FF6B7A | bold |
| markup.italic | #87CEEB | italic |
| markup.underline.link | #87CEEB | — |
| string.regexp | #FF6B7A | — |
| meta.decorator, meta.annotation | #FF9248 | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #FF6B7A | — |
| entity.name.module, variable.import.parameter | #87CEEB | — |
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}!`;
}