ADN Color Theme
Publisher: verssyThemes in package: 1
The VS Code basically for C++
The VS Code basically for C++
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 |
|---|---|---|
| punctuation.definition.comment, string.comment | #6A737D | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #24292E | — |
| punctuation.definition.string, string punctuation.section.embedded source | #032F62 | — |
| variable.other | #24292E | — |
| invalid.broken | #B31D28 | italic |
| invalid.deprecated | #B31D28 | italic |
| invalid.illegal | #B31D28 | italic |
| invalid.unimplemented | #B31D28 | italic |
| carriage-return | #FAFBFC | italic underline |
| message.error | #B31D28 | — |
| source.regexp, string.regexp | #032F62 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #032F62 | — |
| markup.italic | #24292E | italic |
| markup.bold | #24292E | bold |
| markup.raw | #005CC5 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #B31D28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863A | — |
| markup.changed, punctuation.definition.changed | #E36209 | — |
| markup.ignored, markup.untracked | #F6F8FA | — |
| meta.diff.range | #6F42C1 | bold |
| meta.diff.header | #005CC5 | — |
| meta.separator | #005CC5 | bold |
| meta.output | #005CC5 | — |
| meta.block.cpp | #cb403a | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #B31D28 | — |
| constant.other.reference.link, string.other.link | #032F62 | underline |
| punctuation.definition.comment, string.comment | #6A737D | — |
| comment | #9BA4AF | italic |
| constant, entity.name.constant, variable.other.constant, variable.language | #2B343F | — |
| entity, entity.name | #2B343F | — |
| variable.parameter.function | #2B343F | bold |
| entity.name.tag | #2B343F | — |
| keyword | #424b54 | bold |
| storage, storage.type | #2B343F | bold |
| storage.modifier.package, storage.modifier.import, storage.type.java | #2B343F | bold |
| punctuation.definition.string, string punctuation.section.embedded source | #2B343F | — |
| support, support.class, support.function, entity.name.class, entity.name.function, entity.name.method | #db504a | bold |
| meta.property-name | #2B343F | — |
| variable | #2B343F | — |
| variable.other | #2B343F | — |
| variable.upper-case.cpp | #2B343F | bold |
| invalid.broken | #2B343F | italic |
| invalid.deprecated | #B31D28 | italic |
| invalid.illegal | #B31D28 | italic |
| invalid.unimplemented | #B31D28 | italic |
| carriage-return | #FAFBFC | italic underline |
| message.error | #B31D28 | — |
| string source | #2B343F | — |
| string variable | #2B343F | — |
| source.regexp, string.regexp | #2B343F | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #2B343F | — |
| string.regexp constant.character.escape | #2B343F | bold |
| support.constant | #2B343F | bold |
| support.variable | #2B343F | — |
| meta.module-reference | #2B343F | — |
| punctuation.definition.list.begin.markdown | #2B343F | — |
| markup.heading, markup.heading entity.name | #2B343F | bold |
| markup.quote | #2B343F | — |
| markup.italic | #2B343F | italic |
| markup.bold | #2B343F | bold |
| markup.raw | #2B343F | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #B31D28 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #22863A | — |
| markup.changed, punctuation.definition.changed | #E36209 | — |
| markup.ignored, markup.untracked | #2B343F | — |
| meta.diff.range | #6F42C1 | bold |
| meta.diff.header | #005CC5 | — |
| meta.separator | #2B343F | bold |
| meta.output | #2B343F | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #B31D28 | — |
| constant.other.reference.link, string.other.link | #032F62 | underline |
| string.quoted.docstring | #A4AAAF | — |
| string | #db504a | bold |
| punctuation.definition.string, storage.type.string.python | #2B343F | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}