Black Neon Theme
Publisher: Klaus JacksonThemes in package: 1
A cool dark theme with blue and cyan highlights.
A cool dark theme with blue and cyan highlights.
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 | #71acb3 | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #ff7575 | — |
| entity, entity.name | #b392f0 | — |
| entity.name.type.class | #00fcf5 | — |
| variable.parameter | #b28bff | — |
| entity.name.tag | #85e89d | — |
| keyword | #ff5454 | — |
| storage, storage.type | #5c00fc | — |
| storage.modifier | #5d87ff | — |
| storage.type.function | #a876ff | — |
| keyword.control.trycatch, keyword.control.exception | #ffab70 | — |
| keyword.control.flow.await | #6249ff | — |
| meta.function-call entity.name.function, support.function | #79b8ff | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #e1e4e8 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #9ecbff | — |
| support | #79b8ff | — |
| meta.property-name | #79b8ff | — |
| variable | #ffab70 | — |
| variable.other | #e1e4e8 | — |
| entity.name.function, support.function | #ff6666 | — |
| meta.function-call | #ff6666 | — |
| meta | #00BFFF | — |
| support.type.property-name.json | #00ff84 | — |
| string.quoted.double.json, string.quoted.single.json | #99ccff | — |
| invalid.broken | #fdaeb7 | italic |
| invalid.deprecated | #fdaeb7 | italic |
| invalid.illegal | #fdaeb7 | italic |
| invalid.unimplemented | #fdaeb7 | italic |
| carriage-return | #24292e | — |
| message.error | #fdaeb7 | — |
| string source | #e1e4e8 | — |
| string variable | #79b8ff | — |
| source.regexp, string.regexp | #dbedff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #dbedff | — |
| string.regexp constant.character.escape | #85e89d | bold |
| support.constant | #79b8ff | — |
| support.variable | #79b8ff | — |
| meta.module-reference | #79b8ff | — |
| punctuation.definition.list.begin.markdown | #ffab70 | — |
| markup.heading, markup.heading entity.name | #79b8ff | bold |
| markup.quote | #85e89d | — |
| markup.italic | #e1e4e8 | italic |
| markup.bold | #e1e4e8 | bold |
| markup.raw | #79b8ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #F85149 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #A371F7 | — |
| markup.changed, punctuation.definition.changed | #DB6D28 | — |
| markup.ignored, markup.untracked | #2f363d | — |
| meta.diff.range | #A371F7 | bold |
| meta.diff.header | #2F81F7 | — |
| meta.separator | #2F81F7 | bold |
| meta.output | #2F81F7 | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #7D8590 | — |
| brackethighlighter.unmatched | #F85149 | — |
| constant.other.reference.link, string.other.link | #2F81F7 | 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}!`;
}