Atom One Dark - Green
Publisher: Pierce MartinThemes in package: 1
A fork of the VSCode Atom One Dark theme, with green accents and darker, softer colors for reduced eye strain
A fork of the VSCode Atom One Dark theme, with green accents and darker, softer colors for reduced eye strain
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 | #5C6370 | italic |
| comment markup.link | #5C6370 | — |
| entity.name.type | #E5C07B | — |
| entity.other.inherited-class | #E5C07B | — |
| keyword | #bf75c9 | — |
| keyword.control | #bf75c9 | — |
| keyword.operator | #bf75c9 | — |
| keyword.other.special-method | #65b0de | — |
| keyword.other.unit | #D19A66 | — |
| storage | #bf75c9 | — |
| storage.type.annotation, storage.type.primitive | #bf75c9 | — |
| storage.modifier.package, storage.modifier.import | #C8C3BE | — |
| constant | #D19A66 | — |
| constant.variable | #D19A66 | — |
| constant.character.escape | #56B6C2 | — |
| constant.numeric | #D19A66 | — |
| constant.other.color | #56B6C2 | — |
| constant.other.symbol | #56B6C2 | — |
| variable | #E06C75 | — |
| variable.interpolation | #BE5046 | — |
| variable.parameter | #C8C3BE | — |
| string | #98C379 | — |
| string > source, string embedded | #C8C3BE | — |
| string.regexp | #56B6C2 | — |
| string.regexp source.ruby.embedded | #E5C07B | — |
| string.other.link | #E06C75 | — |
| punctuation.definition.comment | #5C6370 | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters, punctuation.definition.separator, punctuation.definition.seperator, punctuation.definition.array | #C8C3BE | — |
| punctuation.definition.heading, punctuation.definition.identity | #65b0de | — |
| punctuation.definition.bold | #E5C07B | bold |
| punctuation.definition.italic | #bf75c9 | italic |
| punctuation.section.embedded | #BE5046 | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #C8C3BE | — |
| support.class | #E5C07B | — |
| support.type | #56B6C2 | — |
| support.function | #56B6C2 | — |
| support.function.any-method | #65b0de | — |
| entity.name.function | #65b0de | — |
| entity.name.class, entity.name.type.class | #E5C07B | — |
| entity.name.section | #65b0de | — |
| entity.name.tag | #E06C75 | — |
| entity.other.attribute-name | #D19A66 | — |
| entity.other.attribute-name.id | #65b0de | — |
| meta.class | #E5C07B | — |
| meta.class.body | #C8C3BE | — |
| meta.method-call, meta.method | #C8C3BE | — |
| meta.definition.variable | #E06C75 | — |
| meta.link | #D19A66 | — |
| meta.require | #65b0de | — |
| meta.selector | #bf75c9 | — |
| meta.separator | #C8C3BE | — |
| meta.tag | #C8C3BE | — |
| underline | — | — |
| none | #C8C3BE | — |
| invalid.deprecated | #523D14 | — |
| invalid.illegal | #a74e40 | — |
| markup.bold | #D19A66 | bold |
| markup.changed | #bf75c9 | — |
| markup.deleted | #E06C75 | — |
| markup.italic | #bf75c9 | italic |
| markup.heading | #E06C75 | — |
| markup.heading punctuation.definition.heading | #65b0de | — |
| markup.link | #56B6C2 | — |
| markup.inserted | #98C379 | — |
| markup.quote | #D19A66 | — |
| markup.raw | #98C379 | — |
| source.c keyword.operator | #bf75c9 | — |
| source.cpp keyword.operator | #bf75c9 | — |
| source.cs keyword.operator | #bf75c9 | — |
| source.css property-name, source.css property-value | #828997 | — |
| source.css property-name.support, source.css property-value.support | #C8C3BE | — |
| source.elixir source.embedded.source | #C8C3BE | — |
| source.elixir constant.language, source.elixir constant.numeric, source.elixir constant.definition | #65b0de | — |
| source.elixir variable.definition, source.elixir variable.anonymous | #bf75c9 | — |
| source.elixir parameter.variable.function | #D19A66 | italic |
| source.elixir quoted | #98C379 | — |
| source.elixir keyword.special-method, source.elixir embedded.section, source.elixir embedded.source.empty | #E06C75 | — |
| source.elixir readwrite.module punctuation | #E06C75 | — |
| source.elixir regexp.section, source.elixir regexp.string | #BE5046 | — |
| source.elixir separator, source.elixir keyword.operator | #D19A66 | — |
| source.elixir variable.constant | #E5C07B | — |
| source.elixir array, source.elixir scope, source.elixir section | #828997 | — |
| source.gfm link entity | #65b0de | — |
| source.go storage.type.string | #bf75c9 | — |
| source.ini keyword.other.definition.ini | #E06C75 | — |
| source.java storage.modifier.import | #E5C07B | — |
| source.java storage.type | #E5C07B | — |
| source.java keyword.operator.instanceof | #bf75c9 | — |
| source.java-properties meta.key-pair | #E06C75 | — |
| source.java-properties meta.key-pair > punctuation | #C8C3BE | — |
| source.js keyword.operator | #56B6C2 | — |
| source.js keyword.operator.delete, source.js keyword.operator.in, source.js keyword.operator.of, source.js keyword.operator.instanceof, source.js keyword.operator.new, source.js keyword.operator.typeof, source.js keyword.operator.void | #bf75c9 | — |
| source.ts keyword.operator | #56B6C2 | — |
| source.flow keyword.operator | #56B6C2 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #E06C75 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #E06C75 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structure.array.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #98C379 | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #56B6C2 | — |
| ng.interpolation | #E06C75 | — |
| ng.interpolation.begin, ng.interpolation.end | #65b0de | — |
| ng.interpolation function | #E06C75 | — |
| ng.interpolation function.begin, ng.interpolation function.end | #65b0de | — |
| ng.interpolation bool | #D19A66 | — |
| ng.interpolation bracket | #C8C3BE | — |
| ng.pipe, ng.operator | #C8C3BE | — |
| ng.tag | #56B6C2 | — |
| ng.attribute-with-value attribute-name | #E5C07B | — |
| ng.attribute-with-value string | #bf75c9 | — |
| ng.attribute-with-value string.begin, ng.attribute-with-value string.end | #C8C3BE | — |
| source.php class.bracket | #C8C3BE | — |
| source.python keyword.operator.logical.python | #bf75c9 | — |
| source.python variable.parameter | #D19A66 | — |
| customrule | #C8C3BE | — |
| support.type.property-name | #C8C3BE | — |
| string.quoted.double punctuation | #98C379 | — |
| support.constant | #D19A66 | — |
| support.type.property-name.json | #E06C75 | — |
| support.type.property-name.json punctuation | #E06C75 | — |
| punctuation.separator.key-value.ts, punctuation.separator.key-value.js, punctuation.separator.key-value.tsx | #56B6C2 | — |
| source.js.embedded.html keyword.operator, source.ts.embedded.html keyword.operator | #56B6C2 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.tsx | #C8C3BE | — |
| support.variable.dom.js, support.variable.dom.ts | #E06C75 | — |
| support.variable.property.dom.js, support.variable.property.dom.ts | #E06C75 | — |
| meta.template.expression.js punctuation.definition, meta.template.expression.ts punctuation.definition | #BE5046 | — |
| source.ts punctuation.definition.typeparameters, source.js punctuation.definition.typeparameters, source.tsx punctuation.definition.typeparameters | #C8C3BE | — |
| source.ts punctuation.definition.block, source.js punctuation.definition.block, source.tsx punctuation.definition.block | #C8C3BE | — |
| source.ts punctuation.separator.comma, source.js punctuation.separator.comma, source.tsx punctuation.separator.comma | #C8C3BE | — |
| support.variable.property.js, support.variable.property.ts, support.variable.property.tsx | #E06C75 | — |
| keyword.control.default.js, keyword.control.default.ts, keyword.control.default.tsx | #E06C75 | — |
| keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #bf75c9 | — |
| keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.of.tsx | #bf75c9 | — |
| meta.brace.round.js, meta.array-binding-pattern-variable.js, meta.brace.square.js, meta.brace.round.ts, meta.array-binding-pattern-variable.ts, meta.brace.square.ts, meta.brace.round.tsx, meta.array-binding-pattern-variable.tsx, meta.brace.square.tsx | #C8C3BE | — |
| source.js punctuation.accessor, source.ts punctuation.accessor, source.tsx punctuation.accessor | #C8C3BE | — |
| punctuation.terminator.statement.js, punctuation.terminator.statement.ts, punctuation.terminator.statement.tsx | #C8C3BE | — |
| meta.array-binding-pattern-variable.js variable.other.readwrite.js, meta.array-binding-pattern-variable.ts variable.other.readwrite.ts, meta.array-binding-pattern-variable.tsx variable.other.readwrite.tsx | #D19A66 | — |
| source.js support.variable, source.ts support.variable, source.tsx support.variable | #E06C75 | — |
| variable.other.constant.property.js, variable.other.constant.property.ts, variable.other.constant.property.tsx | #D19A66 | — |
| keyword.operator.new.ts, keyword.operator.new.j, keyword.operator.new.tsx | #bf75c9 | — |
| source.ts keyword.operator, source.tsx keyword.operator | #56B6C2 | — |
| punctuation.separator.parameter.js, punctuation.separator.parameter.ts, punctuation.separator.parameter.tsx | #C8C3BE | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #E06C75 | — |
| constant.language.import-export-all.jsx, constant.language.import-export-all.tsx | #56B6C2 | — |
| keyword.control.as.js, keyword.control.as.ts, keyword.control.as.jsx, keyword.control.as.tsx | #C8C3BE | — |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.tsx | #E06C75 | — |
| variable.other.constant.js, variable.other.constant.ts, variable.other.constant.jsx, variable.other.constant.tsx | #D19A66 | — |
| meta.export.default.js variable.other.readwrite.js, meta.export.default.ts variable.other.readwrite.ts | #E06C75 | — |
| source.js meta.template.expression.js punctuation.accessor, source.ts meta.template.expression.ts punctuation.accessor, source.tsx meta.template.expression.tsx punctuation.accessor | #98C379 | — |
| source.js meta.import-equals.external.js keyword.operator, source.jsx meta.import-equals.external.jsx keyword.operator, source.ts meta.import-equals.external.ts keyword.operator, source.tsx meta.import-equals.external.tsx keyword.operator | #C8C3BE | — |
| entity.name.type.module.js,entity.name.type.module.ts,entity.name.type.module.jsx,entity.name.type.module.tsx | #98C379 | — |
| meta.class.js,meta.class.ts,meta.class.jsx,meta.class.tsx | #C8C3BE | — |
| meta.definition.property.js variable, meta.definition.property.ts variable, meta.definition.property.jsx variable, meta.definition.property.tsx variable | #C8C3BE | — |
| meta.type.parameters.js support.type, meta.type.parameters.jsx support.type, meta.type.parameters.ts support.type, meta.type.parameters.tsx support.type | #C8C3BE | — |
| source.js meta.tag.js keyword.operator, source.jsx meta.tag.jsx keyword.operator, source.ts meta.tag.ts keyword.operator, source.tsx meta.tag.tsx keyword.operator | #C8C3BE | — |
| meta.tag.js punctuation.section.embedded, meta.tag.jsx punctuation.section.embedded, meta.tag.ts punctuation.section.embedded, meta.tag.tsx punctuation.section.embedded | #C8C3BE | — |
| meta.array.literal.js variable, meta.array.literal.jsx variable, meta.array.literal.ts variable, meta.array.literal.tsx variable | #E5C07B | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #E06C75 | — |
| constant.language.json | #56B6C2 | — |
| variable.other.constant.object.js, variable.other.constant.object.jsx, variable.other.constant.object.ts, variable.other.constant.object.tsx | #D19A66 | — |
| storage.type.property.js, storage.type.property.jsx, storage.type.property.ts, storage.type.property.tsx | #56B6C2 | — |
| meta.template.expression.js string.quoted punctuation.definition, meta.template.expression.jsx string.quoted punctuation.definition, meta.template.expression.ts string.quoted punctuation.definition, meta.template.expression.tsx string.quoted punctuation.definition | #98C379 | — |
| meta.template.expression.js string.template punctuation.definition.string.template, meta.template.expression.jsx string.template punctuation.definition.string.template, meta.template.expression.ts string.template punctuation.definition.string.template, meta.template.expression.tsx string.template punctuation.definition.string.template | #98C379 | — |
| keyword.operator.expression.in.js, keyword.operator.expression.in.jsx, keyword.operator.expression.in.ts, keyword.operator.expression.in.tsx | #bf75c9 | — |
| variable.other.object.js, variable.other.object.ts | #C8C3BE | — |
| meta.object-literal.key.js, meta.object-literal.key.ts | #E06C75 | — |
| source.python constant.other | #C8C3BE | — |
| source.python constant | #D19A66 | — |
| constant.character.format.placeholder.other.python storage | #D19A66 | — |
| support.variable.magic.python | #E06C75 | — |
| meta.function.parameters.python | #D19A66 | — |
| punctuation.separator.annotation.python | #C8C3BE | — |
| punctuation.separator.parameters.python | #C8C3BE | — |
| entity.name.variable.field.cs | #E06C75 | — |
| source.cs keyword.operator | #C8C3BE | — |
| variable.other.readwrite.cs | #C8C3BE | — |
| variable.other.object.cs | #C8C3BE | — |
| variable.other.object.property.cs | #C8C3BE | — |
| entity.name.variable.property.cs | #65b0de | — |
| storage.type.cs | #E5C07B | — |
| keyword.other.unsafe.rust | #bf75c9 | — |
| entity.name.type.rust | #56B6C2 | — |
| storage.modifier.lifetime.rust | #C8C3BE | — |
| entity.name.lifetime.rust | #D19A66 | — |
| storage.type.core.rust | #56B6C2 | — |
| meta.attribute.rust | #D19A66 | — |
| storage.class.std.rust | #56B6C2 | — |
| markup.raw.block.markdown | #C8C3BE | — |
| punctuation.definition.variable.shell | #E06C75 | — |
| support.constant.property-value.css | #C8C3BE | — |
| punctuation.definition.constant.css | #D19A66 | — |
| punctuation.separator.key-value.scss | #E06C75 | — |
| punctuation.definition.constant.scss | #D19A66 | — |
| meta.property-list.scss punctuation.separator.key-value.scss | #C8C3BE | — |
| storage.type.primitive.array.java | #E5C07B | — |
| entity.name.section.markdown | #E06C75 | — |
| punctuation.definition.heading.markdown | #E06C75 | — |
| markup.heading.setext | #C8C3BE | — |
| punctuation.definition.bold.markdown | #D19A66 | — |
| markup.inline.raw.markdown | #98C379 | — |
| beginning.punctuation.definition.list.markdown | #E06C75 | — |
| markup.quote.markdown | #5C6370 | italic |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #C8C3BE | — |
| punctuation.definition.metadata.markdown | #bf75c9 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #bf75c9 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #65b0de | — |
| punctuation.separator.variable.ruby | #E06C75 | — |
| variable.other.constant.ruby | #D19A66 | — |
| keyword.operator.other.ruby | #98C379 | — |
| punctuation.definition.variable.php | #E06C75 | — |
| meta.class.php | #C8C3BE | — |
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}!`;
}