Tenebris Sapientia
Publisher: Pablo CarvalhoThemes in package: 1
A dark gothic theme with black and red vampire aesthetics. Perfect for night coding sessions.
A dark gothic theme with black and red vampire aesthetics. Perfect for night coding sessions.
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 | #555555 | italic |
| string, string.quoted | #cc6666 | — |
| constant.character.escape | #ff6666 | — |
| constant.numeric | #d4a574 | — |
| constant.language.boolean | #ff6666 | — |
| constant, constant.language, support.constant, constant.other | #ff6666 | — |
| keyword, storage.type, storage.modifier | #8B0000 | bold |
| keyword.control | #8B0000 | bold |
| keyword.operator | #ff6666 | — |
| entity.name.function, meta.function-call.generic | #d4a0a0 | — |
| meta.function-call, support.function, support.function.builtin, variable.function | #d4a0a0 | — |
| entity.name.function.member, meta.method-call, meta.method.declaration | #d4a0a0 | — |
| entity.name.class, entity.name.type.class, support.class | #c792ea | bold |
| entity.name.type, support.type | #c792ea | — |
| variable, variable.other, variable.language | #b8b8b8 | — |
| variable.parameter, variable.parameter.function | #e0c090 | italic |
| variable.other.property, variable.other.object.property | #a89090 | — |
| punctuation, meta.brace | #666666 | — |
| entity.name.tag | #8B0000 | — |
| entity.other.attribute-name, meta.attribute | #e0c090 | — |
| keyword.control.import, keyword.control.from, keyword.control.export | #8B0000 | — |
| support.module, entity.name.import, entity.name.package | #a89090 | — |
| meta.decorator, entity.name.function.decorator | #c792ea | italic |
| invalid, invalid.illegal | #8B0000 | underline |
| markup.heading, entity.name.section | #8B0000 | bold |
| markup.bold | #d4a574 | bold |
| markup.italic | #d4a574 | italic |
| markup.underline.link | #c792ea | — |
| markup.inline.raw, markup.fenced_code | #cc6666 | — |
| support.type.property-name.json | #8B0000 | — |
| entity.name.tag.yaml | #8B0000 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #8B0000 | — |
| support.type.property-name.css | #c792ea | — |
| support.constant.property-value.css | #d4a574 | — |
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}!`;
}