Bloodloss
Publisher: theSharkArtistThemes in package: 1
A near-black, bone-white and crimson VS Code theme with original opt-in file icons. Clean survival-horror identity, readable code, intentional AI surfaces.
A near-black, bone-white and crimson VS Code theme with original opt-in file icons. Clean survival-horror identity, readable code, intentional AI surfaces.
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 | #A19A93 | — |
| keyword, storage.type, storage.modifier | #ED9AAB | — |
| keyword.operator | #E8E3DA | — |
| string, string.quoted, string.template | #A9C5AC | — |
| constant.character.escape, string.regexp | #D9B98B | — |
| constant.numeric, constant.language, constant.other, variable.other.constant, variable.other.enummember | #D9B98B | — |
| entity.name.function, support.function, variable.function | #E4C9A5 | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class, entity.other.inherited-class | #B9B8D8 | — |
| variable, variable.other, variable.parameter, support.variable, support.type.property-name, meta.object-literal.key | #E8E3DA | — |
| variable.language | #ED9AAB | — |
| entity.name.function.decorator, entity.name.tag.decorator, meta.decorator | #B9B8D8 | — |
| entity.name.tag, punctuation.definition.tag | #ED9AAB | — |
| entity.other.attribute-name | #E4C9A5 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #B9B8D8 | — |
| support.type.property-name.json | #E8E3DA | — |
| markup.heading, entity.name.section.markdown | #ED9AAB | bold |
| markup.bold | #E8E3DA | bold |
| markup.italic | #E8E3DA | italic |
| markup.inline.raw, markup.fenced_code.block | #A9C5AC | — |
| markup.quote | #ABA59D | — |
| markup.underline.link, string.other.link, meta.link.inline | #B9B8D8 | underline |
| markup.inserted | #A9C5AC | — |
| markup.deleted | #FFB6C1 | — |
| markup.changed | #E5C477 | — |
| invalid | #FF9B91 | underline |
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}!`;
}