Atom One Dark (Material)
Publisher: uriencedricThemes in package: 2
Atom One Dark color theme ported from IntelliJ Material Theme
Atom One Dark color theme ported from IntelliJ Material 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 | #59626f | italic |
| comment.block.documentation, comment.line.documentation | #59626f | italic |
| keyword.other.documentation, storage.type.annotation, punctuation.definition.annotation | #c679dd | bold italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage, storage.type, storage.modifier | #c679dd | italic |
| string, string.quoted, string.template | #98c379 | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.raw.multi.python | #7f848e | italic |
| constant.character.escape, string.regexp | #98c379 | — |
| constant.numeric, constant.other.color | #d19a66 | — |
| constant, constant.language, variable.language.this, variable.language.self | #c679dd | — |
| entity.name.type, entity.name.class | #e5c17c | — |
| support.class, support.class.builtin | #61aeef | italic |
| entity.other.inherited-class | #98c379 | italic |
| entity.name.type.class, entity.name.namespace, meta.type-alias entity.name.type | #abb2bf | — |
| support.type | #61aeef | italic |
| entity.name.function, support.function, meta.function-call entity.name.function | #61aeef | — |
| entity.name.function.static, meta.static entity.name.function | #61aeef | italic |
| variable.parameter, meta.function.parameters variable | #abb2bf | — |
| variable, variable.other.readwrite | #d19a66 | — |
| variable.other.property, variable.other.object.property, support.variable.property, variable.other.member | #e06c75 | — |
| variable.other.static, variable.other.constant | #e06c75 | italic |
| variable.other.global | #d19a66 | — |
| entity.name.function.decorator, meta.decorator, punctuation.decorator | #61aeef | — |
| keyword.operator | #61aeef | — |
| punctuation, meta.brace, punctuation.definition.block, punctuation.definition.parameters, punctuation.separator.delimiter | #a6b2c0 | — |
| entity.name.tag, meta.tag | #f07178 | — |
| entity.other.attribute-name, meta.tag.attributes entity.other.attribute-name | #e5c17c | italic |
| meta.attribute string | #98c379 | — |
| support.type.property-name.css, meta.property-name | #57b6c2 | — |
| support.constant.property-value.css, meta.property-value | #d19a66 | — |
| entity.name.tag.css | #f07178 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #e5c17c | — |
| keyword.other.important.css, keyword.other.unit.css | #c679dd | italic |
| constant.other.color.rgb-value.css | #ffea7d | — |
| support.function.transform.css, support.function.misc.css | #61aeef | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #eeffff | — |
| invalid, invalid.illegal | #e06c75 | — |
| invalid.deprecated | #59626f | — |
| keyword.control.import, keyword.control.export, keyword.other.import | #c679dd | italic |
| entity.name.module, support.module | #e5c17c | — |
| support.type.property-name.json | #e06c75 | — |
| string.quoted.double.json, string.quoted.single.json | #98c379 | — |
| markup.heading, entity.name.section | #61aeef | bold |
| markup.bold | #abb2bf | bold |
| markup.italic | #abb2bf | italic |
| markup.inline.raw, markup.fenced_code.block | #98c379 | — |
| markup.underline.link, string.other.link | #56b6c2 | — |
| markup.quote | #59626f | italic |
| markup.inserted | #98c379 | — |
| markup.deleted | #e06c75 | — |
| markup.changed | #61aeef | — |
| variable.language.special.self.python, variable.language.special.cls.python | #e06c75 | italic |
| support.function.builtin.python | #61aeef | — |
| support.function.magic.python | #61aeef | italic |
| meta.object-literal.key, meta.objectliteral string | #e06c75 | — |
| variable.language.this.js, variable.language.this.ts | #e06c75 | italic |
| meta.type.annotation, meta.return.type, meta.type.parameters | #c679dd | — |
| support.function.builtin.shell, entity.name.function.shell | #4babb8 | italic |
| string.regexp | #98c379 | — |
| keyword.control.anchor.regexp, punctuation.definition.group.regexp, keyword.operator.quantifier.regexp | #61aeef | — |
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}!`;
}