Arknights: Endfield Theme
Publisher: Yalla NkardazThemes in package: 2
A fan-made theme inspired by Arknights: Endfield. Not affiliated with or endorsed by Hypergryph.
A fan-made theme inspired by Arknights: Endfield. Not affiliated with or endorsed by Hypergryph.
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 | #848478 | italic |
| string, string.quoted, string.template | #1A7A40 | — |
| constant.character.escape, punctuation.definition.template-expression | #df0043 | — |
| string.regexp | #007A9A | — |
| constant.numeric | #df0043 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #1e64f1 | italic bold |
| constant.language | #1e64f1 | — |
| keyword.control, keyword.operator.new, keyword.other.using | #c7ba16 | |
| keyword | #c7ba16 | — |
| keyword.operator | #3A3A44 | |
| storage.type, storage.modifier | #1e64f1 | italic bold |
| storage.type.function.arrow | #1e64f1 | |
| entity.name.type, entity.name.class, entity.name.namespace, support.class, support.type | #df0043 | — |
| entity.other.inherited-class | #00bbff | |
| entity.name.type.interface | #00bbff | |
| entity.name.type.parameter, punctuation.definition.typeparameters | #00bbff | — |
| entity.name.function, meta.function-call entity.name.function, support.function | #9451f8 | — |
| variable.parameter | #00a2e1 | italic |
| variable, variable.other.readwrite | #1E1E22 | — |
| variable.language | #00a2e1 | italic |
| variable.other.property, variable.other.object.property, support.variable | #c7ba16 | — |
| variable.other.constant | #cd5a63 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.parameters | #6A6A72 | — |
| punctuation.definition.block, punctuation.section, meta.brace.round, meta.brace.square, meta.brace.curly | #3A3A44 | — |
| entity.name.tag | #b78484 | |
| entity.other.attribute-name | #df0043 | — |
| string.quoted.html, string.quoted.double.html, string.quoted.single.html | #1A7A40 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #848478 | — |
| support.type.property-name.css, support.type.property-name | #0849d7 | — |
| support.constant.property-value.css, meta.property-value.css | #00ce53 | — |
| entity.name.tag.css | #1e64f1 | — |
| entity.other.attribute-name.css, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #df0043 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #00bbff | — |
| constant.numeric.css, keyword.other.unit.css | #c7ba16 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #A04800 | italic |
| markup.inserted | #1A7A40 | — |
| markup.deleted | #B82A00 | — |
| markup.changed | #0032c8 | — |
| markup.heading, entity.name.section.markdown | #1A1A1E | bold |
| markup.bold | #1A1A1E | bold |
| markup.italic | #005F88 | italic |
| markup.inline.raw, markup.fenced_code.block | #1A7A40 | — |
| markup.underline.link | #00A0CC | — |
| markup.quote | #848478 | italic |
| punctuation.definition.list.begin.markdown | #df0043 | — |
| invalid | #B82A00 | underline |
| invalid.deprecated | #A04800 | 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}!`;
}