Duskbox
Publisher: Hugo CedanoThemes in package: 16
A calm, richly detailed theme family with tiered attention (16 variants incl. high-contrast, neon & signature accents) for editors and terminals.
A calm, richly detailed theme family with tiered attention (16 variants incl. high-contrast, neon & signature accents) for editors and terminals.
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 |
|---|---|---|
| keyword, keyword.control, storage.type, storage.modifier.import, storage.modifier.package, meta.class.identifier storage.modifier, meta.record.identifier storage.modifier | #fe7f76 | bold |
| keyword.operator | #83e9ff | — |
| entity.name.function | #fcce62 | bold |
| meta.function-call, support.function, meta.function-call entity.name.function | #fcce62 | |
| entity.name.function.constructor, entity.name.type.constructor | #fc9d51 | bold |
| entity.name.type, support.type, entity.name.class, support.class | #fdb07b | bold |
| variable.language, support.type.builtin, constant.language | #fc9d51 | italic |
| variable.parameter | #c6e8f7 | italic |
| string, string.quoted, string.template | #85eba3 | — |
| constant.character.escape | #83e9ff | — |
| constant.numeric | #8ec2fe | — |
| constant.language.boolean | #c5aefe | — |
| constant.other | #c5aefe | — |
| variable.other.constant | #c9dbfd | — |
| variable.other.property, support.variable.property, meta.object-literal.key | #39ebd8 | — |
| variable, variable.other.readwrite | #ededfd | — |
| meta.preprocessor | #fe7f76 | — |
| comment, punctuation.definition.comment | #b2b8c2 | italic |
| punctuation, meta.brace | #9ba4bd | — |
| entity.name.tag | #fe7f76 | — |
| support.class.component, entity.name.tag.namespace | #fdb07b | — |
| entity.other.attribute-name | #6ceae0 | — |
| punctuation.definition.tag | #cbd1dc | — |
| markup.inserted, markup.inserted punctuation.definition.inserted | #94e282 | — |
| markup.changed, markup.changed punctuation.definition.changed | #8ec2fe | — |
| markup.deleted, markup.deleted punctuation.definition.deleted | #fe7f76 | — |
| heading.1.markdown, heading.1.markdown punctuation.definition.heading, markup.heading.setext.1.markdown | #a9cefd | bold |
| heading.2.markdown, heading.2.markdown punctuation.definition.heading, markup.heading.setext.2.markdown | #84d7fe | bold |
| heading.3.markdown, heading.3.markdown punctuation.definition.heading | #11e4f6 | bold |
| heading.4.markdown, heading.4.markdown punctuation.definition.heading, heading.5.markdown, heading.5.markdown punctuation.definition.heading, heading.6.markdown, heading.6.markdown punctuation.definition.heading | #17eace | bold |
| markup.bold | #e2e8f3 | bold |
| markup.italic | #e2e8f3 | italic |
| markup.inline.raw, markup.raw.inline, fenced_code.block.language, entity.name.language.markdown | #39ebd8 | — |
| markup.underline.link, string.other.link.title.markdown, string.other.link.description.markdown, constant.other.reference.link.markdown | #83e9ff | underline |
| markup.quote | #b2b8c2 | italic |
| punctuation.definition.list.begin.markdown, markup.list.numbered.bullet | #fdb07b | — |
| meta.separator.markdown, entity.other.document.begin.yaml | #9ba4bd | — |
| markup.strikethrough | #b2b8c2 | strikethrough |
| support.type.property-name, support.type.property-name punctuation, entity.name.tag.yaml | #39ebd8 | — |
| variable.other.anchor.yaml, entity.name.type.anchor.yaml, variable.other.alias.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml | #c5aefe | — |
| keyword.other.unit | #fdb07b | — |
| constant.other.color | #c5aefe | — |
| keyword.other.important | #fe7f76 | bold |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #fcce62 | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #83e9ff | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp | #fdb07b | — |
| keyword.operator.quantifier.regexp | #fe7f76 | — |
| keyword.control.anchor.regexp | #fe7f76 | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, entity.name.type.instance.jsdoc | #c5aefe | — |
| variable.other.jsdoc | #e2e8f3 | italic |
| meta.diff.header, meta.diff.range, punctuation.definition.range.diff, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff | #8ec2fe | — |
| punctuation.definition.string | #85eba3 | — |
| keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.logical.python | #fe7f76 | bold |
| keyword.control.type, storage.type.type | #fdb07b | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #c4b4fe | bold |
| storage.modifier.attribute | #fc9d51 | |
| storage.modifier.pointer, storage.modifier.reference, storage.modifier.array.bracket.square | #83e9ff | bold |
| storage.modifier, storage.type.ts, storage.type.tsx, storage.type.js, storage.type.function.async | #87bafd | italic |
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}!`;
}