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 | #659B75 | — |
| comment.block.documentation, comment.line.documentation, string.quoted.docstring, string.quoted.docstring.multi | #9ADCFF | — |
| keyword.codetag, comment keyword.other.documentation, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #FFAA54 | — |
| variable.other.jsdoc, entity.name.type.instance.jsdoc | #FFF2B3 | — |
| string, string.quoted, string.template, punctuation.definition.string | #B2F3AC | — |
| constant.character, string.quoted.single.character | #FFD700 | — |
| constant.character.escape, constant.other.placeholder, punctuation.definition.template-expression, punctuation.section.embedded | #FF1A75 | — |
| 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 | #FFAA54 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, keyword.other.unit | #FFF2B3 | — |
| constant, constant.other, variable.other.constant, support.constant, entity.name.constant | #FF7431 | — |
| constant.language | #FF5454 | — |
| constant.language.boolean, constant.language.true, constant.language.false | #FFAA54 | — |
| variable, variable.other, variable.other.readwrite, meta.definition.variable.name, support.variable | #F9F9F9 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #FFFF00 | italic |
| variable.parameter, meta.parameter, meta.function.parameters variable | #28C9FF | italic |
| variable.other.property, variable.other.object.property, support.variable.property, meta.property.object | #33FFFF | — |
| variable.other.member, meta.object-literal.key, variable.object.property | #FFAA54 | — |
| entity.name.function, meta.function-call, meta.function-call.generic, support.function, variable.function | #1AFFA3 | — |
| support.function.builtin, support.function.magic, entity.name.function.preprocessor | #00BFFF | — |
| entity.name.function.macro, meta.preprocessor.macro, entity.name.function.macro.rules | #00BFFF | — |
| entity.name.function.constructor, meta.function-call.constructor, variable.other.class.js | #FFFF00 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.decorator punctuation.decorator | #1AFFA3 | — |
| meta.attribute, entity.name.attribute, meta.attribute.rust, storage.type.annotation | #FF7431 | — |
| keyword, keyword.other, keyword.control | #28C9FF | — |
| keyword.control.conditional, keyword.control.switch, keyword.control.case, keyword.control.default | #33FFFF | bold |
| keyword.control.loop, keyword.control.repeat | #FFFF00 | bold |
| keyword.control.return, keyword.control.flow.return | #FFFF00 | bold |
| storage.type.function, keyword.declaration.function, keyword.other.fn | #FF1A75 | bold |
| keyword.control.async, keyword.control.flow.await, storage.modifier.async | #FF1A75 | bold |
| keyword.control.import, keyword.control.from, keyword.control.require, keyword.other.import, keyword.package | #00BFFF | — |
| keyword.control.export | #33FFFF | — |
| keyword.control.trycatch, keyword.control.exception, keyword.control.throw, keyword.control.try, keyword.control.catch | #00BFFF | bold |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.ternary, storage.type.operator | #FFFF00 | — |
| storage.modifier, storage.modifier.visibility, keyword.other.static | #FFD700 | bold |
| meta.preprocessor, keyword.control.directive, keyword.preprocessor, punctuation.definition.directive | #FFD700 | bold |
| entity.name.type, support.type, storage.type, entity.name.type.parameter, meta.type.annotation | #FFAA54 | — |
| support.type.primitive, support.type.builtin, keyword.type | #FFAA54 | 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 | #28C9FF | — |
| entity.name.type.enum | #FFAA54 | — |
| variable.other.enummember, entity.name.type.enum-member | #FF7431 | — |
| entity.name.namespace, entity.name.module, entity.name.scope-resolution, support.other.namespace, meta.namespace | #FFFF00 | italic |
| entity.name.label, constant.other.label | #1AFFA3 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.parameters, punctuation.definition.arguments | #FFAA54 | — |
| meta.brace, punctuation.section.brackets, punctuation.section.parens, punctuation.section.block | #FF7431 | — |
| entity.name.tag, meta.tag, support.class.component | #00BFFF | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #FFD700 | italic |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #FF5454 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string | #1AFFA3 | — |
| support.type.property-name.toml, variable.other.key.toml | #00FFFF | — |
| entity.name.section.toml, punctuation.definition.table.toml | #FFAA54 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #28C9FF | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml | #FFFF00 | — |
| keyword.other.definition.ini | #00FFFF | — |
| entity.name.section.group-title.ini | #FFAA54 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #FFAA54 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id | #00FFFF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #FFD700 | — |
| entity.name.tag.css, entity.name.tag.reference.scss | #FFAA54 | — |
| support.constant.property-value.css, support.constant.font-name, constant.numeric.css, keyword.other.unit.css | #FFD700 | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #00BFFF | — |
| variable.scss, variable.other.scss, variable.sass | #FFFF00 | — |
| markup.heading.1, markup.heading.setext.1 | #FF5454 | — |
| markup.heading.2, markup.heading.setext.2 | #00BFFF | — |
| markup.heading.3 | #FFF2B3 | — |
| markup.heading.4 | #B2F3AC | — |
| markup.heading.5 | #FF7431 | — |
| markup.heading.6 | #33FFFF | — |
| punctuation.definition.heading | #FFAA54 | — |
| markup.bold, markup.bold string | #BFBFBF | bold |
| markup.italic, markup.italic string | #BFBFBF | italic |
| markup.strikethrough | #BFBFBF | strikethrough |
| markup.inline.raw, markup.raw.inline | #FFF2B3 | — |
| markup.fenced_code.block, markup.raw.block | #9ADCFF | — |
| punctuation.definition.markdown, fenced_code.block.language | #33FFFF | — |
| string.other.link.title, string.other.link.description, markup.link | #00FFFF | underline |
| markup.underline.link, markup.underline.link.image | #FFAA54 | underline |
| markup.list, punctuation.definition.list.begin, punctuation.definition.list | #FFAA54 | — |
| markup.quote, punctuation.definition.quote.begin | #659B75 | italic |
| meta.separator | #767C77 | — |
| markup.math, string.other.math | #00BFFF | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #00CC7A | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FF5454 | — |
| markup.changed, punctuation.definition.changed | #FFFF00 | — |
| meta.diff.header, meta.diff.index | #00FFFF | — |
| meta.diff.range, punctuation.definition.range.diff | #33FFFF | — |
| support.function.builtin.shell, keyword.other.builtin.shell | #00BFFF | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #F9F9F9 | — |
| source.regexp | #FFAA54 | — |
| invalid, invalid.illegal | #FF5454 | — |
| invalid.deprecated | #767C77 | 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}!`;
}