Atom One Dark Theme for VSCode
Publisher: elson1608Themes in package: 1
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 |
|---|---|---|
| keyword.control, storage.type, keyword.operator.accessor.typst, keyword.operator.word, keyword.operator.logical.python, keyword.operator.arithmetic, keyword.operator.hcl, constant.language.python, variable.language.special.self.python, variable.parameter.function.language.special.self.python, entity.name.type.terraform, entity.name.type.hcl, constant.language.boolean.typst, source.typst markup.math.typst meta.expr.call.typst entity.name.function.hash.typst, source.typst markup.math.typst entity.name.function.hash.typst | #c778dc | italic |
| keyword.operator.assignment, meta.function-call, punctuation.separator.period.python, entity.other.inherited-class.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.separator.parameters.python, punctuation.separator.annotation.python, markup.bold, meta.indexed-name.python, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.separator.slice.python, punctuation.separator.element.python, punctuation.separator.arguments.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, punctuation.separator.colon.python, punctuation.section.function.begin.python, punctuation.definition.dict.begin.python, punctuation.definition.dict.end.python, variable.other.member.hcl, punctuation.section.brackets.begin.hcl, punctuation.section.brackets.end.hcl, punctuation.section.block.begin.hcl, punctuation.section.block.end.hcl, punctuation.section.braces.begin.hcl, punctuation.section.braces.end.hcl, meta.block.hcl, punctuation.separator.annotation.result.python, constant.other.caps.python, constant.other.ellipsis.python, support.variable.magic.python, variable.other.readwrite.terraform, variable.other.readwrite.hcl, invalid.deprecated.semicolon.python, variable.other.readwrite, variable.other.property, keyword.operator.arithmetic.python, keyword.operator.comparison.python, keyword.operator.bitwise.python, source.python, keyword.operator.accessor.typst, meta.brace.round.typst, source.typst | #aab2be | — |
| comment, punctuation.definition.comment | #5d6371 | — |
| entity.name.function.member, entity.name.function.typst, entity.name.function.hash.typst, punctuation.definition.heading.typst, markup.heading.typst | #60aeef | — |
| variable.parameter.function-call.python, constant.language.json.comments, constant.language.json, meta.math.block.tex, meta.function.environment.math.latex, support.class.math.block.environment.latex, keyword.codetag.notation.python | #ce9057 | — |
| string, storage.type.string.python | #99c378 | — |
| constant.character.escape.python, support.function.builtin.python, support.type.python, constant.character.format.placeholder.other.python | #56b6c2 | — |
| source.python meta.function.python meta.member.access.python meta.attribute.python, source.python meta.function.parameters.python meta.member.access.python meta.attribute.python, source.python meta.function.result-type.python meta.member.access.python meta.attribute.python, meta.function.parameters.python, entity.name.type.class.python, meta.function.decorator.python, punctuation.definition.decorator.python, entity.name.function.decorator.python, variable.other.enummember.hcl | #e4c17b | — |
| meta.function-call.generic.python, entity.name.function.python | #61afef | — |
| support.type.property-name.json.comments, support.type.property-name.json | #e16c74 | — |
| punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #84f318 | — |
| constant.other.general.math.tex, constant.character.escape.tex, constant.character.math.tex, keyword.control.equation.newline.latex | #61f385 | — |
| support.function.be.latex, meta.function.environment.math.latex, meta.function.begin-document.latex, variable.parameter.function.latex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex | #a960f2 | — |
| support.function.general.tex, constant.character.latex, keyword.control.newline.tex, keyword.other.item.latex, support.function.textbf.latex, keyword.control.preamble.latex | #61ccf2 | — |
| keyword.control.equation.align.latex | #194ef3 | — |
| constant.numeric, constant.language.numeric | #ce9057 | — |
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}!`;
}