Warlord-Theme
Publisher: Warlord56xThemes in package: 1
A Dark-Red theme that uses Pantome Colors
A Dark-Red theme that uses Pantome Colors
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 |
|---|---|---|
| token.error-token | #C8102E | — |
| token.warn-token | #F5DF4Dcc | — |
| string | #F58C5895 | — |
| constant.character.escape, text.html constant.character.entity.named, punctuation.definition.entity.html | #F58C5895 | bold |
| constant.language.boolean | #F58C58 | — |
| constant.numeric | #F58C58 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #F2F0EB | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #47A23F | — |
| entity.name.function, support.function | #A6192E | — |
| storage.type, storage.modifier | #C8102E | bold |
| support.module, support.node | #47A23F | italic |
| support.type | #A6192E | bold |
| entity.name.type, entity.other.inherited-class | #A6192E | bold |
| comment | #939597 | italic |
| entity.name.type.class | #A6192E | bold |
| variable.object.property, meta.field.declaration entity.name.function | #A6192E | — |
| meta.definition.method entity.name.function | #A6192E | — |
| meta.function entity.name.function | #A6192E | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #C8102E | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #F2F0EB | — |
| entity.name.tag.yaml | #47A23F | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #47A23F | — |
| constant.language.json | #C8102E | — |
| entity.other.attribute-name.class | #C8102E | — |
| entity.other.attribute-name.id | #47A23F | — |
| source.css entity.name.tag | #A6192E | bold |
| support.type.property-name | #47A23F90 | bold |
| meta.tag, punctuation.definition.tag | #C8102E | — |
| entity.name.tag | #F2F0EB | — |
| entity.other.attribute-name | #A6192E | — |
| markup.heading | #C8102E | — |
| text.html.markdown meta.link.inline, meta.link.reference | #47A23F | underline |
| text.html.markdown beginning.punctuation.definition.list | #C8102E | — |
| markup.italic | #47A23F | italic |
| markup.bold | #A6192E | bold |
| markup.bold markup.italic, markup.italic markup.bold | #47A23F | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #47A23F | — |
| text.html.markdown markup.fenced_code.block.markdown | #47A23F | — |
| markup.inline.raw.string.markdown | #47A23F | — |
| keyword.other.definition.ini | #47A23F | — |
| entity.name.section.group-title.ini | #C8102E | — |
| source.cs meta.class.identifier storage.type | #A6192E | bold |
| source.cs meta.method.identifier entity.name.function | #A6192E | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #A6192E | — |
| source.cs storage.type | #A6192E | bold |
| source.cs meta.method.return-type | #A6192E | — |
| source.cs meta.preprocessor | #C8102E | — |
| source.cs entity.name.type.namespace | #47A23F | — |
| source.python entity.name.function.decorator, source.python meta.function.decorator support.type | #47A23F | — |
| source.python meta.function-call.generic | #A6192E | — |
| source.python support.type | #A6192E | — |
| source.python variable.parameter.function.language | #F2F0EB | — |
| source.python meta.function.parameters variable.parameter.function.language.special.self | #C8102E | — |
| string.quoted.docstring.multi.python | #939597 | italic |
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}!`;
}