Citruszest
Publisher: kmchmThemes in package: 2
A dark theme with bright, juicy citrus colors — vibrant oranges, zesty yellows and refreshing greens. Ported from citruszest.nvim.
A dark theme with bright, juicy citrus colors — vibrant oranges, zesty yellows and refreshing greens. Ported from citruszest.nvim.
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 | #007122 | — |
| comment.block.documentation, comment.line.documentation, string.quoted.docstring, string.quoted.docstring.multi | #007ABB | — |
| keyword.codetag, comment keyword.other.documentation, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #9D4F00 | — |
| variable.other.jsdoc, entity.name.type.instance.jsdoc | #726000 | — |
| string, string.quoted, string.template, punctuation.definition.string | #0A7600 | — |
| constant.character, string.quoted.single.character | #735F00 | — |
| constant.character.escape, constant.other.placeholder, punctuation.definition.template-expression, punctuation.section.embedded | #CA0050 | — |
| string.regexp, string.regexp punctuation.definition.string, constant.other.character-class.regexp, constant.other.character-class.set.regexp, keyword.other.back-reference.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #9D4F00 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, keyword.other.unit | #726000 | — |
| constant, constant.other, variable.other.constant, support.constant, entity.name.constant | #BA3D00 | — |
| constant.language | #D70000 | — |
| constant.language.boolean, constant.language.true, constant.language.false | #9D4F00 | — |
| variable, variable.other, variable.other.readwrite, meta.definition.variable.name, support.variable | #1A1A1A | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #626200 | italic |
| variable.parameter, meta.parameter, meta.function.parameters variable | #007AA4 | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property.object | #007576 | — |
| variable.other.member, meta.object-literal.key, variable.object.property | #9D4F00 | — |
| entity.name.function, meta.function-call, meta.function-call.generic, support.function, variable.function | #00844F | — |
| support.function.builtin, support.function.magic, entity.name.function.preprocessor | #007AA4 | — |
| entity.name.function.macro, meta.preprocessor.macro, entity.name.function.macro.rules | #007AA4 | — |
| entity.name.function.constructor, meta.function-call.constructor, variable.other.class.js | #626200 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.decorator punctuation.decorator | #00844F | — |
| meta.attribute, entity.name.attribute, meta.attribute.rust, storage.type.annotation | #BA3D00 | — |
| keyword, keyword.other, keyword.control | #007AA4 | — |
| keyword.control.conditional, keyword.control.switch, keyword.control.case, keyword.control.default | #007576 | bold |
| keyword.control.loop, keyword.control.repeat | #626200 | bold |
| keyword.control.return, keyword.control.flow.return | #626200 | bold |
| storage.type.function, keyword.declaration.function, keyword.other.fn | #CA0050 | bold |
| keyword.control.async, keyword.control.flow.await, storage.modifier.async | #CA0050 | bold |
| keyword.control.import, keyword.control.from, keyword.control.require, keyword.other.import, keyword.package | #007AA4 | — |
| keyword.control.export | #007576 | — |
| keyword.control.trycatch, keyword.control.exception, keyword.control.throw, keyword.control.try, keyword.control.catch | #007AA4 | bold |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.ternary, storage.type.operator | #626200 | — |
| storage.modifier, storage.modifier.visibility, keyword.other.static | #735F00 | bold |
| meta.preprocessor, keyword.control.directive, keyword.preprocessor, punctuation.definition.directive | #735F00 | bold |
| entity.name.type, support.type, storage.type, entity.name.type.parameter, meta.type.annotation | #9D4F00 | — |
| support.type.primitive, support.type.builtin, keyword.type | #9D4F00 | italic |
| entity.name.type.class, entity.name.class, entity.name.type.interface, entity.name.type.struct, entity.name.type.module, entity.other.inherited-class, support.class, storage.type.class | #007AA4 | — |
| entity.name.type.enum | #9D4F00 | — |
| variable.other.enummember, entity.name.type.enum-member | #BA3D00 | — |
| entity.name.namespace, entity.name.module, entity.name.scope-resolution, support.other.namespace, meta.namespace | #626200 | italic |
| entity.name.label, constant.other.label | #00844F | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.parameters, punctuation.definition.arguments | #9D4F00 | — |
| meta.brace, punctuation.section.brackets, punctuation.section.parens, punctuation.section.block | #BA3D00 | — |
| entity.name.tag, meta.tag, support.class.component | #007AA4 | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #735F00 | italic |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #D70000 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string | #00844F | — |
| support.type.property-name.toml, variable.other.key.toml | #007576 | — |
| entity.name.section.toml, punctuation.definition.table.toml | #9D4F00 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #007AA4 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml | #626200 | — |
| keyword.other.definition.ini | #007576 | — |
| entity.name.section.group-title.ini | #9D4F00 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #9D4F00 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id | #007576 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #735F00 | — |
| entity.name.tag.css, entity.name.tag.reference.scss | #9D4F00 | — |
| support.constant.property-value.css, support.constant.font-name, constant.numeric.css, keyword.other.unit.css | #735F00 | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #007AA4 | — |
| variable.scss, variable.other.scss, variable.sass | #626200 | — |
| markup.heading.1, markup.heading.setext.1 | #D70000 | — |
| markup.heading.2, markup.heading.setext.2 | #007AA4 | — |
| markup.heading.3 | #726000 | — |
| markup.heading.4 | #0A7600 | — |
| markup.heading.5 | #BA3D00 | — |
| markup.heading.6 | #007576 | — |
| punctuation.definition.heading | #9D4F00 | — |
| markup.bold, markup.bold string | #181818 | bold |
| markup.italic, markup.italic string | #181818 | italic |
| markup.strikethrough | #181818 | strikethrough |
| markup.inline.raw, markup.raw.inline | #726000 | — |
| markup.fenced_code.block, markup.raw.block | #007ABB | — |
| punctuation.definition.markdown, fenced_code.block.language | #007576 | — |
| string.other.link.title, string.other.link.description, markup.link | #007576 | underline |
| markup.underline.link, markup.underline.link.image | #9D4F00 | underline |
| markup.list, punctuation.definition.list.begin, punctuation.definition.list | #9D4F00 | — |
| markup.quote, punctuation.definition.quote.begin | #007122 | italic |
| meta.separator | #535353 | — |
| markup.math, string.other.math | #007AA4 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #007D4B | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #D70000 | — |
| markup.changed, punctuation.definition.changed | #626200 | — |
| meta.diff.header, meta.diff.index | #007576 | — |
| meta.diff.range, punctuation.definition.range.diff | #007576 | — |
| support.function.builtin.shell, keyword.other.builtin.shell | #007AA4 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #1A1A1A | — |
| source.regexp | #9D4F00 | — |
| invalid, invalid.illegal | #D70000 | — |
| invalid.deprecated | #535353 | strikethrough |
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}!`;
}