NERV_STAR_Theme
Publisher: AnsonCarThemes in package: 2
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 | #19921C | — |
| constant.other.placeholder, constant.character | #cf222e | — |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language, entity | #0550ae | — |
| entity.name, meta.export.default, meta.definition.variable | #953800 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #1f2328 | — |
| entity.name.function | #8250df | — |
| entity.name.tag, support.class.component | #FF5D1A | — |
| keyword | #cf222e | — |
| storage, storage.type | #cf222e | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #1f2328 | — |
| string, string punctuation.section.embedded source | #0a3069 | — |
| support | #0550ae | — |
| meta.property-name | #0550ae | — |
| variable | #953800 | — |
| variable.other | #1f2328 | — |
| invalid.broken | #82071e | italic |
| invalid.deprecated | #82071e | italic |
| invalid.illegal | #82071e | italic |
| invalid.unimplemented | #82071e | italic |
| carriage-return | #f6f8fa | italic underline |
| message.error | #82071e | — |
| string variable | #0550ae | — |
| source.regexp, string.regexp | #0a3069 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #0a3069 | — |
| string.regexp constant.character.escape | #116329 | bold |
| support.constant | #0550ae | — |
| support.variable | #0550ae | — |
| support.type.property-name.json | #BE1D1D | — |
| meta.module-reference | #0550ae | — |
| punctuation.definition.list.begin.markdown | #953800 | — |
| markup.heading, markup.heading entity.name | #0550ae | bold |
| markup.quote | #116329 | — |
| markup.italic | #1f2328 | italic |
| markup.bold | #1f2328 | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #0550ae | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #82071e | — |
| punctuation.section.embedded | #cf222e | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #116329 | — |
| markup.changed, punctuation.definition.changed | #953800 | — |
| markup.ignored, markup.untracked | #eaeef2 | — |
| meta.diff.range | #8250df | bold |
| meta.diff.header | #0550ae | — |
| meta.separator | #0550ae | bold |
| meta.output | #0550ae | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #57606a | — |
| brackethighlighter.unmatched | #82071e | — |
| constant.other.reference.link, string.other.link | #0a3069 | — |
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}!`;
}