Arasaka
Publisher: CrabeThemes in package: 1
Neomilitarist dark theme — Arasaka black & crimson. Clean, Dark+ inspired.
Neomilitarist dark theme — Arasaka black & crimson. Clean, Dark+ inspired.
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, string.comment | #5A5E6E | italic |
| keyword, keyword.control, storage, storage.type, storage.modifier, keyword.other | #FF3A4A | — |
| keyword.operator, punctuation.separator, meta.brace | #C8CACF | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, support.constant | #EC1C24 | — |
| string, string.quoted, string.template, punctuation.definition.string | #CE9178 | — |
| string.regexp, constant.character.escape | #E0A060 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.character | #B5CEA8 | — |
| entity.name.function, support.function, meta.function-call.generic, variable.function | #DCDCAA | — |
| entity.name.type, entity.name.class, entity.name.namespace, support.type, support.class, entity.other.inherited-class, storage.type.class | #4EC9B0 | — |
| variable, variable.other, variable.other.readwrite, meta.definition.variable | #D4D4D4 | — |
| variable.parameter, variable.other.property, support.variable.property, meta.object-literal.key | #9CDCFE | — |
| variable.language, variable.language.this, variable.language.self, keyword.other.this | #EC1C24 | italic |
| entity.name.tag, punctuation.definition.tag | #FF3A4A | — |
| entity.other.attribute-name, meta.attribute | #9CDCFE | — |
| support.type.property-name.css, entity.name.selector | #DCDCAA | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #4EC9B0 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #EC1C24 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #EC1C24 | bold |
| markup.bold | #E8E8EA | bold |
| markup.italic | #E8E8EA | italic |
| markup.inline.raw, markup.fenced_code, markup.raw.markdown | #00C1E4 | — |
| markup.underline.link, string.other.link | #FF3A4A | — |
| markup.inserted, markup.inserted.diff | #6ECF6E | — |
| markup.deleted, markup.deleted.diff | #FF3A4A | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #9CDCFE | — |
| invalid, invalid.illegal | #FF3A4A | underline |
| token.info-token | #00C1E4 | — |
| token.warn-token | #F5D742 | — |
| token.error-token | #FF3A4A | — |
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}!`;
}