Warm Darkness
Publisher: Eduard ZoriciThemes in package: 1
A deep night-dark theme with warm golden accents. Rich per-language syntax coloring for HTML, CSS/SCSS, JavaScript, TypeScript, PHP, SQL, Markdown and more.
A deep night-dark theme with warm golden accents. Rich per-language syntax coloring for HTML, CSS/SCSS, JavaScript, TypeScript, PHP, SQL, Markdown and more.
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 |
|---|---|---|
| text, meta.paragraph | #8fa9ba | — |
| comment, comment.line, comment.block, comment.block.documentation, punctuation.definition.comment | #3d5166 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, string.other | #98c379 | — |
| string.template, string.quoted.template | #98c379 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #89ddff | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.numeric.decimal | #f78c6c | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #c792ea | — |
| constant.other, constant.other.color, constant.other.symbol, constant.other.key, constant.character, constant.character.escape | #f78c6c | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, keyword.control.new, keyword.control.return, keyword.control.if, keyword.control.else, keyword.control.switch, keyword.control.case, keyword.control.break, keyword.control.continue, keyword.control.throw, keyword.control.try, keyword.control.catch, keyword.control.finally, keyword.control.for, keyword.control.while, keyword.control.do, keyword.control.of, keyword.control.in, keyword.other, keyword.other.special-method | #c792ea | italic |
| storage, storage.type, storage.type.js, storage.type.ts, storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.arrow, storage.type.property, storage.modifier, storage.modifier.async, storage.modifier.static, storage.modifier.abstract, storage.modifier.public, storage.modifier.private, storage.modifier.protected, storage.modifier.readonly, storage.modifier.export, storage.modifier.import | #c792ea | italic |
| entity.name.function, entity.name.function.js, entity.name.function.ts, entity.name.function.php, entity.name.function.python, entity.name.function.ruby | #82cfff | — |
| meta.function-call, meta.function-call.generic, variable.function, support.function, support.function.builtin | #82cfff | — |
| entity.name.method, entity.name.method.js, entity.name.method.ts, meta.method.declaration entity.name.function | #82cfff | — |
| entity.name.class, entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.alias, entity.name.type.enum, entity.name.type.module, entity.name.type.namespace, support.class, support.type | #82aaff | — |
| entity.other.inherited-class | #82aaff | italic |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.object.property, variable.other.property | #c8d3e0 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #f07178 | italic |
| variable.parameter, variable.parameter.function, variable.parameter.function.language.special | #f78c6c | italic |
| variable.other.constant, variable.other.enummember | #f78c6c | — |
| meta.object-literal.key, support.type.property-name.json | #a0b0c0 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.optional, keyword.operator.nullish, keyword.operator.type, keyword.operator.relational, keyword.operator.instanceof, keyword.operator.typeof, keyword.operator.void, keyword.operator.delete | #89ddff | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor | #7a8899 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.binding-pattern, meta.brace.round, meta.brace.square, meta.brace.curly | #a0b0c0 | — |
| meta.decorator, meta.decorator punctuation.decorator, entity.name.function.decorator, punctuation.definition.decorator, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #f1bb39 | — |
| string.regexp, string.regexp.character-class, string.regexp.group, constant.regexp | #e06c75 | — |
| invalid, invalid.illegal, invalid.broken, invalid.deprecated, invalid.unimplemented | #e06c75 | strikethrough |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.tag.sgml | #5e7a8a | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.block.any.html, entity.name.tag.inline.any.html, entity.name.tag.other.html | #d4909a | bold |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.event.html | #f1bb39 | — |
| string.quoted.double.html, string.quoted.single.html | #98c379 | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html | #4a5568 | — |
| meta.tag.sgml.doctype, entity.name.tag.doctype | #4a5568 | italic |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #f07178 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.class.less | #f1bb39 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss, entity.other.attribute-name.id.less | #f1bb39 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-element.css | #89ddff | — |
| support.type.property-name, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.postcss support.type.property-name, source.stylus support.type.property-name | #82aaff | — |
| support.constant.property-value, support.constant.property-value.css | #98c379 | — |
| keyword.other.unit, keyword.other.unit.css, constant.numeric.css | #f78c6c | — |
| constant.other.color, constant.other.color.rgb-value.css, constant.other.color.rgb-value.hex.css | #f78c6c | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes, keyword.control.at-rule.import, keyword.control.at-rule.include, keyword.control.at-rule.mixin, punctuation.definition.keyword.css, punctuation.definition.entity.css | #c792ea | — |
| keyword.other.important, keyword.other.important.css | #e06c75 | bold |
| variable.scss, variable.sass, variable.other.less, entity.name.variable.scss, punctuation.definition.variable.scss, punctuation.definition.variable.sass, punctuation.definition.variable.less | #c8d3e0 | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss, entity.name.tag.reference.scss | #89ddff | — |
| entity.name.module.js, entity.name.type.module.js, variable.other.class.js, variable.import.parameter.js | #82aaff | — |
| meta.object-literal.key, string.unquoted.label.js, constant.other.object.key.js | #a0b0c0 | — |
| meta.type.annotation, meta.return.type, meta.type.parameters, entity.name.type.ts, entity.name.type.tsx, entity.name.type.interface.ts, entity.name.type.interface.tsx | #82aaff | — |
| entity.name.tag.js, entity.name.tag.tsx, entity.name.tag.jsx | #d4909a | bold |
| support.class.component, support.class.component.tsx, support.class.component.jsx | #82aaff | — |
| entity.other.attribute-name.js, entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #f1bb39 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.end.js, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #89ddff | — |
| storage.type.function.arrow, storage.type.function.arrow.js, storage.type.function.arrow.ts | #89ddff | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, meta.embedded.line.php punctuation.section.embedded, meta.embedded.block.php punctuation.section.embedded | #f78c6c | bold |
| keyword.control.php, keyword.control.if.php, keyword.control.else.php, keyword.control.elseif.php, keyword.control.foreach.php, keyword.control.for.php, keyword.control.while.php, keyword.control.do.php, keyword.control.switch.php, keyword.control.case.php, keyword.control.break.php, keyword.control.continue.php, keyword.control.return.php, keyword.control.try.php, keyword.control.catch.php, keyword.control.finally.php, keyword.control.throw.php, keyword.control.match.php | #c792ea | italic |
| keyword.other.php, keyword.operator.string.php | #c792ea | italic |
| storage.type.function.php, storage.type.class.php, storage.type.interface.php, storage.type.trait.php, storage.type.enum.php, storage.modifier.php | #c792ea | italic |
| entity.name.function.php, meta.function.php entity.name.function | #82cfff | — |
| entity.name.class.php, entity.name.interface.php, entity.name.trait.php, entity.name.enum.php, entity.name.type.class.php | #82aaff | — |
| entity.other.inherited-class.php, meta.class.php entity.other.inherited-class | #82aaff | italic |
| variable.other.php, variable.other.global.php, variable.other.global.safer.php, variable.other.property.php | #c8d3e0 | — |
| variable.language.this.php | #f07178 | italic |
| punctuation.definition.variable.php | #c792ea | — |
| support.function.construct.php, support.function.construct.output.php, keyword.other.echo.php | #82cfff | — |
| support.function.builtin.php, support.function.php | #82cfff | — |
| support.class.php, support.class.builtin.php | #82aaff | — |
| constant.language.php | #c792ea | — |
| constant.other.php, entity.name.constant.php | #f78c6c | — |
| entity.name.namespace.php, support.other.namespace.php, meta.use.php entity.name.namespace, support.orther.namespace.use.php, keyword.other.namespace.php, storage.type.namespace.php | #82aaff | — |
| punctuation.separator.inheritance.php, keyword.other.use.php, meta.use.php | #c792ea | italic |
| keyword.operator.class.php, punctuation.accessor.php, keyword.operator.type.php | #89ddff | — |
| keyword.operator.double-colon.php, punctuation.separator.double-colon.php | #89ddff | — |
| variable.other.php string.interpolated, meta.string-contents.quoted.double.php variable | #f07178 | — |
| keyword.other.DML.sql, keyword.other.alias.sql, keyword.other.order.sql, keyword.other.sql | #c792ea | bold |
| keyword.other.DDL.sql, keyword.other.create.sql, keyword.other.drop.sql, keyword.other.alter.sql | #e5c07b | bold |
| keyword.other.data-integrity.sql, keyword.other.not-null.sql, keyword.other.unique.sql, keyword.other.primary-key.sql, keyword.other.foreign-key.sql, keyword.other.cascade.sql, keyword.other.default.sql, keyword.other.constraint.sql, storage.modifier.sql, support.other.sql | #f1bb39 | — |
| storage.type.sql, support.type.sql | #82aaff | — |
| entity.name.table.sql, entity.name.table, variable.other.table.sql | #82cfff | — |
| entity.name.column.sql, variable.other.column.sql, source.sql variable | #e8f0f5 | — |
| keyword.operator.comparison.sql, keyword.operator.arithmetic.sql, keyword.operator.star.sql, keyword.operator.logical.sql | #89ddff | — |
| support.function.aggregate.sql, support.function.string.sql, support.function.math.sql, support.function.date.sql, support.function.sql | #82cfff | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #f1bb39 | bold |
| markup.bold, markup.bold.markdown | #c8d3e0 | bold |
| markup.italic, markup.italic.markdown | #c8d3e0 | italic |
| markup.inline.raw, markup.inline.raw.string.markdown, text.html.markdown markup.inline.raw.markdown | #98c379 | — |
| markup.fenced_code.block, markup.fenced_code.block.markdown, markup.raw.block | #98c379 | — |
| variable.language.fenced.markdown, fenced_code.block.language | #f1bb39 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown, punctuation.definition.heading.markdown | #3d5166 | — |
| markup.quote, markup.quote.markdown | #4a5568 | italic |
| markup.quote punctuation.definition.blockquote.markdown | #3d5166 | — |
| markup.underline.link, markup.underline.link.markdown, markup.underline.link.image.markdown | #f1bb39 | underline |
| string.other.link.title.markdown, string.other.link.description.title.markdown | #82aaff | — |
| constant.other.reference.link.markdown | #f1bb39 | — |
| punctuation.definition.list_item.markdown, beginning.punctuation.definition.list.markdown | #4a5568 | — |
| text.html.markdown, meta.paragraph.markdown | #7a8899 | — |
| meta.separator, meta.separator.markdown | #3d5166 | bold |
| markup.strikethrough, markup.strikethrough.markdown | #4a5568 | strikethrough |
| markup.table, markup.table.markdown | #7a8899 | — |
| markup.underline | #c8d3e0 | underline |
| url, link, uri | #f1bb39 | underline |
| token.info-token | #61afef | — |
| token.warn-token | #e5c07b | — |
| token.error-token | #e06c75 | — |
| token.debug-token | #c792ea | — |
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}!`;
}