Zed One Dark
Publisher: NaroZeolThemes in package: 1
A community-maintained VS Code port of Zed's built-in One Dark theme, with matching file icons.
A community-maintained VS Code port of Zed's built-in One Dark theme, with matching file icons.
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, comment punctuation.definition.comment, comment.line.rem.batchfile keyword.command.rem.batchfile, string.comment.buffered.block.pug | #5d636fff | — |
| comment.block.documentation, comment.line.documentation, comment.block.documentation punctuation.definition.comment | #878e98ff | — |
| keyword, storage.modifier, storage.type.function, storage.type.class, storage.type.interface, storage.type.struct, storage.type.enum, storage.type.namespace, storage.type.typedef, storage.type.js, storage.type.jsx, storage.type.ts, storage.type.tsx, storage.type.modifier, meta.function.powershell storage.type.powershell, meta.function.perl storage.type.sub.perl, meta.function.section.section.latex support.function.section.latex, meta.commit-command.git-rebase support.function.git-rebase, storage.type.structure.shaderlab, storage.type.declare.routine.perl, storage.type.asp, meta.preprocessor, entity.name.function.preprocessor, keyword.control.directive, keyword.other.directive | #b477cfff | — |
| keyword.operator, storage.type.function.arrow, storage.type.function.coffee | #6eb4bfff | — |
| punctuation | #acb2beff | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.definition.array, punctuation.definition.dictionary, punctuation.definition.group, punctuation.definition.character-class, punctuation.definition.tag, punctuation.definition.typeparameters, punctuation.definition.entity.css, punctuation.definition.entity.scss, punctuation.section, punctuation.separator, punctuation.terminator, punctuation.accessor | #b2b9c6ff | — |
| punctuation.definition.template-expression, punctuation.definition.interpolation, punctuation.definition.decorator, punctuation.definition.variable.shell, punctuation.section.bracket.curly.variable.begin.shell, punctuation.section.bracket.curly.variable.end.shell, punctuation.definition.evaluation.backticks.shell | #b1574bff | — |
| string, string.quoted, string.template, string.interpolated, string.quoted.raw, entity.name.import.go, constant.other.rune.go, punctuation.definition.string, meta.key-assignment.bibtex | #a1c181ff | — |
| constant.character.escape, constant.character.entity, string.escape | #878e98ff | — |
| string.regexp, string.regex, string.regexp punctuation.definition.string, constant.other.character-class, constant.character.numeric.regexp, keyword.operator.quantifier.regexp, constant.other.placeholder, constant.other.symbol, constant.other.color.rgb-value.hex.css, constant.other.color.rgb-value.hex.scss, constant.other.color.rgb-value.less, constant.other.color.rgb-value.less punctuation.definition.constant.less, constant.other.color.rgb-value.css, constant.other.color.rgb-value.hex.css punctuation.definition.constant.css, string.other.link | #bf956aff | — |
| constant.numeric, constant.language.boolean, punctuation.separator.constant.numeric | #bf956aff | — |
| entity.name.constant, constant.language.null, constant.language.undefined, constant.language.iota, support.constant, entity.name.other.preprocessor.macro.predefined, constant.other, string.interpolated.makefile variable.other.makefile | #dfc184ff | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum, entity.name.trait, entity.name.type.parameter, entity.other.inherited-class, support.type, support.class, keyword.type, keyword.other.type, storage.type.powershell, storage.type, storage.type.numeric, storage.type.string, storage.type.boolean, storage.type.primitive, entity.name.section.group-title.ini | #6eb4bfff | — |
| entity.name.function.constructor, entity.name.type.variant, variable.other.enummember, entity.name.variable.enum-member | #73ade9ff | — |
| entity.name.function, support.function, variable.function, meta.function-call entity.name.function, meta.function-call variable.function, meta.method-call entity.name.function, meta.method-call variable.function, meta.function-call.python, binding.fsharp variable.fsharp, meta.definition.global.clojure entity.global.clojure | #73ade9ff | — |
| variable, meta.function.inline.other.handlebars variable.parameter.handlebars | #acb2beff | — |
| variable.parameter, entity.name.variable.parameter, meta.function.parameters variable, meta.function.definition variable.parameter | #acb2beff | — |
| variable.other.property, variable.other.field, variable.object.property, variable.other.object.property, variable.other.constant.property, variable.other.constant.object.property, entity.name.variable.field, entity.name.variable.property, entity.name.variable.tuple-element, entity.other.attribute.lua, meta.attribute.python, support.variable.property, support.type.property-name, punctuation.support.type.property-name, keyword.other.definition.ini, entity.name.tag.yaml, entity.name.tag.yaml punctuation.definition.string, meta.object-literal.key, meta.object-binding-pattern-variable meta.definition.variable, string.json support.type.property-name.json, support.variable.declaration.shaderlab, support.function.key.bibtex | #d07277ff | — |
| entity.other.attribute-name, entity.name.function.decorator, meta.decorator entity.name.function, meta.attribute entity.name | #74ade8ff | — |
| entity.name.tag, meta.tag support.class.component | #74ade8ff | — |
| entity.name.namespace, entity.name.type.namespace, entity.name.type.package, variable.other.import.go, support.other.namespace, variable.other.namespace, entity.name.scope-resolution.cpp, entity.scope.name.objcpp | #dce0e5ff | — |
| entity.name.label, entity.name.section, variable.other.label.go, variable.other.label | #74ade8ff | — |
| variable.language, variable.other.this, variable.other.super, variable.other.object.self | #bf956aff | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss, entity.name.tag.css, entity.name.tag.scss | #dfc184ff | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-element.scss | #74ade8ff | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown, meta.function.section.section.latex entity.name.section.latex | #d07277ff | — |
| markup.bold | #bf956aff | bold |
| markup.italic | #74ade8ff | — |
| string.other.link.description, meta.link.inline.markdown string.other.link.title, meta.link.inline.markdown punctuation.definition.link.title | #73ade9ff | italic |
| markup.underline.link, markup.underline.link.image, meta.link.inline.markdown string.other.link, meta.link.inline.markdown punctuation.definition.metadata | #6eb4bfff | — |
| markup.inline.raw, markup.inline.raw.string.markdown, markup.raw.block.markdown, markup.fenced_code.block.markdown, markup.fenced_code, markup.raw | #a1c181ff | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.table.markdown, punctuation.separator.table.markdown | #d07277ff | — |
| punctuation.definition.list, markup.list punctuation.definition.list | #d07277ff | — |
| markup.inserted, meta.diff.header.to-file | #98c379ff | — |
| markup.deleted, meta.diff.header.from-file | #e06c75ff | — |
| invalid, invalid.illegal | #d07277ff | — |
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}!`;
}