Bloodline
Publisher: jtriveauxThemes in package: 1
Full black theme with blood red accents. Crafted for VS Code users who crave a dark, immersive coding experience with a touch of crimson flair.
Full black theme with blood red accents. Crafted for VS Code users who crave a dark, immersive coding experience with a touch of crimson flair.
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 | #3a1a1a | italic |
| keyword, keyword.control, keyword.operator, keyword.other, storage.type, storage.modifier | #cc0000 | bold |
| string, string.quoted, string.template | #8b2222 | — |
| constant.character.escape | #cc0000 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #cc4444 | — |
| constant, constant.language, support.constant | #aa2222 | — |
| variable, variable.other, variable.language | #c8c8c8 | — |
| variable.language.this, variable.language.self | #cc0000 | bold |
| entity.name.function, meta.function-call, support.function | #e06060 | — |
| variable.parameter | #b08080 | italic |
| entity.name.class, entity.name.type, entity.other.inherited-class, support.class, support.type | #cc2222 | — |
| entity.name.type.interface | #8b0000 | italic |
| entity.name.namespace, entity.name.module | #8b3333 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #cc0000 | italic |
| string.quoted.single.import, string.quoted.double.import | #6b1111 | — |
| keyword.operator | #cc0000 | — |
| punctuation, meta.brace, meta.bracket | #5a2222 | — |
| entity.name.tag, meta.tag | #cc0000 | — |
| entity.other.attribute-name | #8b2222 | italic |
| support.type.property-name.css, meta.property-name.css | #cc0000 | — |
| support.constant.property-value.css, meta.property-value.css | #8b2222 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #e04444 | — |
| support.type.property-name.json | #cc0000 | — |
| string.quoted.double.json | #8b2222 | — |
| markup.heading, entity.name.section.markdown | #cc0000 | bold |
| markup.bold | #e04444 | bold |
| markup.italic | #aa3333 | italic |
| markup.inline.raw, markup.fenced_code.block | #8b2222 | — |
| markup.underline.link | #cc0000 | — |
| invalid, invalid.deprecated | #ff0000 | strikethrough |
| string.regexp | #cc2222 | — |
| punctuation.definition.group.regexp | #ff3333 | — |
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}!`;
}