Universe
Publisher: aarsenaultThemes in package: 1
Universe Dark Color Theme
Universe Dark Color 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 |
|---|---|---|
| string | #A2CBFF | — |
| constant.character.escape, text.html constant.character.entity.named, punctuation.definition.entity.html | #FDC04C | — |
| constant.language.boolean | #00A698 | — |
| constant.numeric | #FF9D84 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #4E78F1 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #FF6F56 | — |
| entity.name.function, support.function | #FDC04C | — |
| storage.type, storage.modifier | #00C7AF | — |
| support.module, support.node | #00A690 | italic |
| support.type | #FDB624 | — |
| entity.name.type, entity.other.inherited-class | #FDB624 | — |
| comment | #6F7881 | italic |
| entity.name.type.class | #017165 | underline |
| variable.object.property, meta.field.declaration entity.name.function | #00A698 | — |
| meta.definition.method entity.name.function | #00A698 | — |
| meta.function entity.name.function | #00A698 | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #A2CBFF | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #E2E5E7 | — |
| entity.name.tag.yaml | #A2CBFF | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #00A698 | — |
| constant.language.json | #A2CBFF | — |
| entity.other.attribute-name.class | #A2CBFF | — |
| entity.other.attribute-name.id | #FF6F56 | — |
| source.css entity.name.tag | #00D4C3 | — |
| meta.tag, punctuation.definition.tag | #A2CBFF | — |
| entity.name.tag | #4E78F1 | — |
| entity.other.attribute-name | #FDC04C | — |
| markup.heading | #A2CBFF | — |
| text.html.markdown meta.link.inline, meta.link.reference | #00C7B0 | — |
| text.html.markdown markup.quote | #c0c0c0 | — |
| text.html.markdown beginning.punctuation.definition.list | #FDC04C | — |
| markup.italic | #A2CBFF | italic |
| markup.bold | #B2443E | bold |
| markup.bold markup.italic, markup.italic markup.bold | #A2CBFF | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #FF6F56 | — |
| markup.inline.raw.string.markdown | #FF6F56 | — |
| keyword.other.definition.ini | #A2CBFF | — |
| entity.name.section.group-title.ini | #A2CBFF | — |
| source.cs meta.class.identifier storage.type | #00D4C3 | underline |
| source.cs meta.method.identifier entity.name.function | #00D4C3 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #FFD448 | — |
| source.cs storage.type | #00A698 | — |
| source.cs meta.method.return-type | #00A698 | — |
| source.cs meta.preprocessor | #6F7881 | — |
| source.cs entity.name.type.namespace | #E2E5E7 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| comment | #6F7881 | — |
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}!`;
}