Arsenal Dark
Publisher: Joseph AkayesiThemes in package: 1
A dark theme inspired by Arsenal FC
A dark theme inspired by Arsenal FC
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 | #6B3A3A | italic |
| comment.block.documentation | #7A4444 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python, storage.type, storage.modifier | #EF0107 | bold |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #FF4444 | — |
| string, string.quoted, string.template, string.regexp | #C5A028 | — |
| constant.character.escape, string.regexp constant.character | #D4B84A | — |
| punctuation.definition.template-expression | #EF0107 | — |
| constant.numeric | #D4883A | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #EF5050 | italic |
| constant, variable.other.constant | #C5A028 | — |
| entity.name.function, meta.function-call entity.name.function, support.function | #FF8080 | — |
| variable.parameter, meta.function.parameters variable.other | #E8C090 | italic |
| entity.name.class, entity.name.type, entity.name.type.class, entity.other.inherited-class, support.class | #FF9090 | bold |
| meta.type.annotation, support.type, keyword.operator.type | #E8B0B0 | — |
| entity.name.type.interface, entity.name.type.enum | #D4A0A0 | italic |
| variable, variable.other, variable.other.readwrite | #F0E6E6 | — |
| variable.other.property, support.variable.property, meta.property-name | #DDB8B8 | — |
| meta.objectliteral string.quoted, meta.object-literal.key | #DDB8B8 | — |
| keyword.operator | #EF4040 | — |
| punctuation, meta.brace, punctuation.definition, punctuation.separator | #8A5050 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #C5A028 | italic |
| entity.name.tag, meta.tag.sgml | #EF0107 | bold |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #C5A028 | — |
| entity.name.selector, meta.selector, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #FF8080 | — |
| support.type.property-name.css | #DDB8B8 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css | #C5A028 | — |
| keyword.other.unit | #D4883A | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading | #EF0107 | bold |
| markup.bold | #FF8080 | bold |
| markup.italic | #C5A028 | italic |
| markup.underline.link, string.other.link | #C5A028 | underline |
| markup.inline.raw, markup.fenced_code.block | #DDB8B8 | |
| source.json support.type.property-name, source.json meta.structure.dictionary.json string.quoted.double.json | #FF8080 | — |
| source.json string.quoted.double.json | #C5A028 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #EF0107 | italic |
| support.function.builtin.python | #FF9090 | — |
| entity.name.lifetime.rust, punctuation.definition.lifetime | #C5A028 | italic |
| invalid, invalid.illegal, invalid.deprecated | #FF4444 | strikethrough |
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}!`;
}