Endfield Light
Publisher: LeukotrieneThemes in package: 1
A personal-use adaptation of Yalla Nkardaz's Arknights: Endfield Theme.
A personal-use adaptation of Yalla Nkardaz's Arknights: Endfield Theme.
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 | #A0A094 | italic |
| keyword.codetag.notation.python | #7E807C | bold |
| string, string.quoted, string.template | #1A7A40 | — |
| constant.character.escape, punctuation.definition.template-expression | #df0043 | — |
| string.regexp | #007A9A | — |
| constant.numeric | #70708F | — |
| constant.character.math.tex | #EDAE0F | — |
| constant.other.general.math.tex | #1A9E68 | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #1e64f1 | italic bold |
| constant.language | #1e64f1 | — |
| constant.language.python | #0000d0 | bold |
| keyword.control, keyword.operator.new, keyword.other.using | #c7ba16 | |
| keyword.control.preamble.latex | #F9B504 | bold |
| keyword.control.import.python | #F9B504 | bold |
| keyword.control.flow.python | #E88E04 | bold |
| keyword.control.label.latex, keyword.control.ref.latex, keyword.control.cite.latex | #965500 | — |
| keyword.control.equation.align.latex, keyword.control.equation.newline.latex | #FF0000 | bold |
| keyword.control.table.cell.latex, keyword.control.table.newline.latex | #FF0000 | bold |
| keyword | #c7ba16 | — |
| keyword.other.item.latex | #00A86B | bold |
| keyword.operator | #3A3A44 | |
| keyword.operator.logical.python, keyword.operator.comparison.python | #007A9A | — |
| storage.type | #000000 | italic bold |
| storage.type.format.python | #1E64F1 | |
| storage.modifier | #1e64f1 | italic bold |
| storage.type.string.python | #000000 | bold |
| storage.type.function.latex | #000000 | bold |
| storage.type.function.arrow | #1e64f1 | |
| entity.name.type, entity.name.class, entity.name.namespace, support.class, support.type | #70708F | — |
| support.class.latex | #FF00FD | — |
| 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 | #0078A8 | — |
| support.function.general.tex | #0078A8 | — |
| text.tex.latex support.function | #0078A8 | — |
| meta.parameter.newcommand.latex support.function.general.latex | #0078A8 | bold |
| variable.parameter | #00a2e1 | italic |
| variable.parameter.function.latex | #00C524 | italic |
| variable.parameter.definition.label.latex | #00BBFF | bold |
| constant.other.reference.label.latex | #00BBFF | — |
| 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}!`;
}