Black Frieza
Publisher: Dylan Di FilippoThemes in package: 2
A balanced dark theme — neither too light nor too dark. Saturated syntax colors with matte khaki-and-violet accents.
A balanced dark theme — neither too light nor too dark. Saturated syntax colors with matte khaki-and-violet accents.
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 | #8a8f98 | — |
| comment.block.documentation, comment.block.documentation punctuation | #87a06a | — |
| string, punctuation.definition.string | #8fd177 | — |
| constant.character.escape | #d6a95e | — |
| string.regexp | #7cb7ff | — |
| punctuation.definition.template-expression | #ffb86c | — |
| constant.numeric, keyword.other.unit | #7fb3ff | — |
| constant.language, support.constant, variable.other.constant | #a88aff | — |
| keyword, keyword.control, storage.type, storage.modifier | #ff7832 | — |
| keyword.operator | #6fc8a0 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #ffc66d | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #54d1e0 | — |
| entity.name.type.enum | #4ecfb8 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, support.type.property-name.json | #d291e0 | — |
| variable, meta.definition.variable.name | #e8e8e8 | — |
| variable.language | #cf9ff0 | — |
| variable.parameter | #f0a967 | italic |
| entity.name.tag | #ffc66d | — |
| entity.other.attribute-name | #6fc3d4 | — |
| punctuation | #9a9a9a | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #ffc66d | — |
| support.type.property-name.css | #d291e0 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #6fc3d4 | — |
| entity.name.label | #6fc3d4 | — |
| markup.heading, entity.name.section | #ffc66d | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline.link, string.other.link | #6cb6ff | — |
| markup.inline.raw, markup.fenced_code.block | #8fd177 | — |
| markup.inserted | #a9b665 | — |
| markup.deleted | #ff5555 | — |
| markup.changed | #ffb86c | — |
| invalid | #ff5555 | — |
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}!`;
}