Armada Color Theme
Publisher: SavedRest0ReThemes in package: 2
Dark and Light themes based on JetBrains Fleet aesthetics, ported from Armada Core Themes for IntelliJ.
Dark and Light themes based on JetBrains Fleet aesthetics, ported from Armada Core Themes for IntelliJ.
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 | #747576 | — |
| string, string.quoted | #086E14 | — |
| constant.character.escape, string.escape | #A31D8D | — |
| constant.numeric, constant.character | #A31D8D | — |
| constant.language, constant.other | #A31D8D | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.other, storage, storage.type, storage.modifier | #14646E | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #090909 | — |
| entity.name.function, meta.function-call, support.function, meta.function-call entity.name.function | #5511BF | — |
| meta.definition.function entity.name.function, meta.function.definition entity.name.function, entity.name.function.definition | #090909 | |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.scope-resolution, support.class, support.type, entity.other.inherited-class | #1749BD | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key, support.type.property-name | #A31D8D | — |
| variable, variable.other, variable.parameter, variable.language, support.variable | #090909 | — |
| variable.other.constant, variable.other.enummember, support.constant | #A31D8D | — |
| entity.name.function.decorator, meta.decorator, meta.annotation, punctuation.definition.annotation, storage.type.annotation | #616605 | — |
| entity.name.tag, punctuation.definition.tag | #B0B0B0 | — |
| entity.name.tag.yaml | #4C5157 | — |
| entity.other.attribute-name, meta.attribute | #5511BF | — |
| constant.character.entity, punctuation.definition.entity | #664229 | — |
| support, support.function.builtin, variable.language.this, variable.language.super | #14646E | — |
| invalid, invalid.illegal | #D73251 | — |
| markup.heading, entity.name.section | #1749BD | |
| markup.bold | #5511BF | |
| markup.italic | #A31D8D | |
| markup.underline.link, string.other.link | #1D61BA | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #616605 | — |
| support.type.property-name.json, meta.object-literal.key.js | #A31D8D | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.constant.property-value.css, support.type.property-name.css | #A31D8D | — |
| entity.name.tag.css, entity.name.tag.less | #B0B0B0 | — |
| string.regexp | #664229 | — |
| keyword.other.documentation, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, entity.name.type.instance.jsdoc | #14646E | — |
| comment, constant.language, emphasis, entity.name.class, entity.name.function, entity.name.function.definition, entity.name.section, entity.name.tag, entity.name.type, entity.other.attribute-name, keyword, markup.bold, markup.heading, markup.italic, markup.quote, meta.definition.function entity.name.function, meta.function.definition entity.name.function, storage, storage.modifier, variable.parameter, variable.language | — |
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}!`;
}