Colour theme Dark
Publisher: AAperghisThemes in package: 1
JetBrains inspired colour theme for personal use
JetBrains inspired colour theme for personal use
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 | #7A7E85 | — |
| string.quoted.docstring | #629755 | italic |
| string, meta.embedded.assembly | #6A8759 | — |
| keyword.control, keyword.operator.logical | #CC7832 | — |
| constant.language, constant.numeric, variable.other.enummember, constant.character.escape | #CC7832 | — |
| constant.numeric | #6897BB | — |
| support.class, support.type, entity.name.type, entity.name.namespace, storage.type | #8888C6 | — |
| storage.type.function, storage.type.class | #CC7832 | — |
| variable, meta.definition.variable.name, support.variable | #BCBEC4 | — |
| invalid | #FA6675 | — |
| constant.character.escape, constant.character.character-class.regexp, constant.other.character-class.regexp | #D5B778 | — |
| meta.selector.css, entity.other.attribute-name.css | #D5B778 | — |
| variable.argument.css, punctuation.definition.tag, entity.name.tag, support.function.misc, meta.function.variable.css, meta.property-value.css support.function, meta.selector.css, entity.other.attribute-name.css | #D5B778 | — |
| keyword.other.unit, punctuation.separator.key-value.html, meta.tag.attributes keyword.operator.assignment | #6AAB73 | — |
| entity.other.attribute-name, support.type.property-name.css | #BABABA | — |
| meta.tag.custom entity.name.tag.html | #2fbaa3 | — |
| comment.block.javadoc | #5F826B | — |
| source.js entity.name.function | #66A6FF | — |
| variable | #BCBEC4 | — |
| support.type.property-name.json | #C77DBB | — |
| support.function.latex, keyword.control.latex, support.function.be.latex, keyword.control.preamble.latex, keyword.control.layout.latex | #8888C6 | italic |
| constant.other.reference.label.latex, markup.underline.link.latex, variable.parameter.definition.label.latex | #ffa3eea8 | italic |
| keyword.control.label.latex, support.function.general.tex, keyword.control.ref.latex | #a6a6c7ff | — |
| meta.function.environment.general.latex | #bbbbbbc3 | — |
| entity.name.section.latex | #BBBBBB | bold |
| support.function.section.latex, markup.heading.latex | #66A6FF | bold |
| variable.parameter.function.latex, support.function.environment.latex | #7a7e85 | — |
| support.class.math.block.environment.latex constant.other.math.tex, support.class.math.block.environment.latex constant.other.general.math.tex, support.class.math.block.tex constant.other.math.tex, support.class.math.block.tex constant.other.general.math.tex | #62975596 | — |
| support.class.math.block.environment.latex, support.class.math.block.tex | #629755ff | — |
| variable.parameter.latex, string.other.option.latex | #6AAB73 | — |
| entity.name.label.latex | #BBB529 | italic |
| markup.raw.latex, string.other.verbatim.latex | #FA6675 | italic |
| markup.italic.textit.latex | — | italic |
| markup.bold.textbf.latex | — | bold |
| log.error | #d30000ff | bold |
| log.warning | #d77a00ff | bold |
| log.info | #ffffffff | bold |
| log.debug | #0000d7ff | bold |
| log.date | #7A7E85 | italic |
| — | — | — |
| source.python storage.type.function.python, source.python storage.type.class.python | #CC7832 | — |
| source.python support.function.magic.python | #B200B2 | — |
| source.python variable.parameter.function.language.special, source.python variable.language.special.self.python | #94558D | — |
| source.python meta.function.decorator support.type, source.python meta.function.decorator entity.name.function.decorator | #BBB529 | — |
| meta.typehint.comment.python, comment.typehint | #FF0000 | — |
| source.python variable.parameter.function-call.python | #AA4926 | — |
| source.python support.function.builtin.python | #8888C6 | — |
| punctuation.separator.annotation.result.python | #7A7E85 | — |
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}!`;
}