Atomwave Theme
Publisher: Nuttshell_ManThemes in package: 1
Formerly TriOptimized - A minimalistic dark theme inspired by the UI of the 2023 System Shock remake, built on the GitHub Dark theme.
Formerly TriOptimized - A minimalistic dark theme inspired by the UI of the 2023 System Shock remake, built on the GitHub Dark 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, string.comment | #ccc8 | — |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language | #61abff | — |
| entity, entity.name | #a075f0 | — |
| variable.parameter.function | #ccc | — |
| entity.name.tag | #0f9 | — |
| keyword | #fb606f | — |
| storage, storage.type | #fb606f | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #ccc | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #8fc3ff | — |
| support | #61abff | — |
| meta.property-name | #61abff | — |
| variable | #ffa05c | — |
| variable.other | #ccc | — |
| invalid.broken | #ff9ea9 | italic |
| invalid.deprecated | #ff9ea9 | italic |
| invalid.illegal | #ff9ea9 | italic |
| invalid.unimplemented | #ff9ea9 | italic |
| carriage-return | #141414 | italic underline |
| message.error | #ff9ea9 | — |
| string variable | #61abff | — |
| source.regexp, string.regexp | #cce6ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #cce6ff | — |
| string.regexp constant.character.escape | #0f9 | bold |
| support.constant | #61abff | — |
| support.variable | #61abff | — |
| meta.module-reference | #61abff | — |
| punctuation.definition.list.begin.markdown | #ffa05c | — |
| markup.heading, markup.heading entity.name | #61abff | bold |
| markup.quote | #0f9 | — |
| markup.italic | #ccc | italic |
| markup.bold | #ccc | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #61abff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ff9ea9 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #0f9 | — |
| markup.changed, punctuation.definition.changed | #ffa05c | — |
| markup.ignored, markup.untracked | #282828 | — |
| meta.diff.range | #a075f0 | bold |
| meta.diff.header | #61abff | — |
| meta.separator | #61abff | bold |
| meta.output | #61abff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #ccc | — |
| brackethighlighter.unmatched | #ff9ea9 | — |
| constant.other.reference.link, string.other.link | #cce6ff | underline |
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}!`;
}