Vholf Themes for VS Code
Publisher: vholfThemes in package: 4
Vholf BioSyn and EVA-01 inspired color themes for VS Code.
Vholf BioSyn and EVA-01 inspired color themes for VS Code.
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 | #FFCC66 | italic |
| string, string.quoted, string.template | #00FF00 | — |
| string.regexp | #66FF66 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #FFEE00 | — |
| constant.character, constant.other | #00FF00 | — |
| variable, variable.parameter, variable.other.readwrite, meta.definition.variable | #FFFFFF | — |
| variable.language | #FFAA00 | bold |
| keyword, keyword.control, keyword.operator.new, keyword.other | #FFAA00 | bold |
| keyword.operator, keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment | #FFAA00 | — |
| storage, storage.type, storage.modifier | #FFAA00 | bold |
| entity.name.function, meta.function-call, support.function | #FFFFFF | bold |
| entity.name.type, entity.name.class, support.type, support.class | #FFFFFF | bold |
| entity.other.inherited-class | #FFEE00 | — |
| entity.name.tag | #FFAA00 | bold |
| entity.other.attribute-name | #FFEE00 | — |
| support.constant, constant.language | #00FF00 | — |
| meta.preprocessor, entity.name.function.preprocessor | #00FF00 | bold |
| meta.decorator, meta.decorator punctuation.decorator | #00FF00 | — |
| punctuation | #FFAA00 | — |
| punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end | #00FF00 | — |
| punctuation.definition.template-expression | #FFAA00 | — |
| invalid | #FF0000 | bold underline |
| invalid.deprecated | #00FF00 | bold underline |
| markup.heading | #FFAA00 | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #FFDDBB | italic |
| markup.underline | — | underline |
| markup.inline.raw, markup.fenced_code | #00FF00 | — |
| markup.quote | #DD9900 | italic |
| markup.list | #FFAA00 | — |
| markup.inserted | #00FF00 | — |
| markup.deleted | #FF0000 | — |
| markup.changed | #00FF00 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #FFFFFF | bold |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFEE00 | — |
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}!`;
}