Vanessë
Publisher: David KoenThemes in package: 1
A bold dark theme of gold, violet and cyan on a deep night sky, with matching cloud badge file icons.
A bold dark theme of gold, violet and cyan on a deep night sky, with matching cloud badge file icons.
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 | #8A93BF | italic |
| variable, meta.definition.variable.name | #DCE3F2 | — |
| keyword.operator, punctuation | #A3ACC7 | — |
| keyword, keyword.operator.new, keyword.operator.expression | #FFCB5C | — |
| keyword.control | #FFCB5C | bold |
| storage.type, storage.modifier | #FFCB5C | italic |
| variable.language | #FFCB5C | italic |
| string, punctuation.definition.string | #A5E86B | — |
| constant.character.escape | #FFE93D | bold |
| string.regexp | #FF9E57 | — |
| constant.numeric, keyword.other.unit | #FF5CCB | — |
| constant.language, support.constant | #FF5CCB | bold |
| entity.name.function, support.function, meta.function-call.generic | #5CC8FF | — |
| entity.name.type, entity.name.namespace, entity.other.inherited-class, support.type, support.class | #3FE6C4 | — |
| entity.name.class | #3FE6C4 | bold |
| variable.parameter | #B794FF | italic |
| variable.other.property, variable.other.object.property, support.variable.property, support.type.property-name, meta.object-literal.key | #9FC2FF | — |
| entity.name.tag | #FFCB5C | bold |
| support.class.component | #3FE6C4 | bold |
| entity.other.attribute-name | #B794FF | italic |
| punctuation.decorator, entity.name.function.decorator, meta.decorator entity.name.function | #FF9E57 | italic |
| markup.heading, entity.name.section | #FFCB5C | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw, markup.raw | #A5E86B | — |
| markup.underline.link, string.other.link | #5CC8FF | underline |
| markup.quote | #8A93BF | italic |
| markup.inserted | #A5E86B | — |
| markup.changed | #FFAE3D | — |
| markup.deleted | #FF4F64 | — |
| invalid, invalid.illegal | #FF4F64 | underline |
| invalid.deprecated | — | strikethrough |
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}!`;
}