Caligo Dark+ Theme
Publisher: Anselm HahnThemes in package: 50
Perceptual dark themes with OKLCH-based harmony variants — 50 professionally crafted color schemes
Perceptual dark themes with OKLCH-based harmony variants — 50 professionally crafted color schemes
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, string.comment | #9a8d9cbf | italic |
| comment.block.documentation keyword, comment.block.documentation storage.type | #88ce5d | — |
| comment.block.documentation entity.name.type, comment.block.documentation entity.name.class, comment.block.documentation entity.name.interface | #ff95b2 | italic |
| comment.block.documentation variable, comment.block.documentation entity.name.variable | #59c1c1 | italic |
| comment.block.documentation entity.name.type punctuation.definition.bracket | #ff95b2 | — |
| string | #e0a0fd | — |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string | #e0a0fdd9 | — |
| string variable, variable.other.interpolation | #59c1c1 | — |
| constant.character.escape, constant.character.escape.regexp | #52d2ff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #00cbce | — |
| string.quoted.docstring.multi, string.quoted.docstring | #9a8d9cbf | — |
| source.regexp, string.regexp | #e0a0fd | — |
| string.regexp.character-class, constant.other.character-class.regexp | #ff95b2 | — |
| string.regexp constant.character.escape, constant.character.escape.regexp | #e0a0fd | bold |
| punctuation.definition.group.regexp | #52d2ff | — |
| punctuation.definition.group.assertion.regexp | #4dec95 | — |
| punctuation.definition.character-class.regexp | #ff95b2 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #4dec95 | — |
| meta.assertion.look-ahead.regexp, meta.assertion.look-behind.regexp | #e0a0fd | — |
| constant.numeric, constant.character.numeric | #00cbaf | — |
| keyword, keyword.control, keyword.other, keyword.operator, storage.type, storage.modifier, storage.class, storage.type.class, storage.type.function, storage.type.struct, storage.type.enum | #88ce5d | — |
| keyword.control.new, keyword.operator.new | #88ce5d | bold |
| storage.modifier.package, storage.modifier.import | #dacbde | — |
| entity.name.function, entity.name.method, support.function, support.method, variable.function, meta.function-call, meta.function-call.generic | #ffaf56 | — |
| variable.parameter, variable.parameter.function, entity.name.variable.parameter | #59c1c1 | italic |
| meta.decorator variable.other.readwrite, meta.decorator variable.other.property, meta.decorator punctuation.definition | #88ce5d | italic |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, entity.name.trait | #ff95b2 | — |
| entity.other.inherited-class | #ff95b2 | italic |
| entity.name.type.type-parameter | #43b2b1 | — |
| storage.type.annotation, meta.type.annotation, meta.return-type | #ff95b2 | italic |
| variable, variable.other.readwrite, meta.definition.variable, entity.name.variable | #59c1c1 | — |
| variable.language, keyword.other.this | #88ce5d | italic |
| constant, constant.language, constant.character, variable.other.constant, variable.other.enummember, support.constant | #52d2ff | — |
| support, support.type, support.class, support.other.namespace | #ff95b2 | italic |
| support.function, support.method, support.function.any-method | #ffaf56 | — |
| support.constant | #52d2ff | — |
| support.variable | #59c1c1 | — |
| keyword.operator, punctuation.accessor, punctuation.terminator, punctuation.section | #dacbded9 | — |
| punctuation.separator, punctuation.separator.key-value, punctuation.separator.namespace | #00cbce | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx, meta.tag | #4dec95 | — |
| entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, meta.attribute | #88ce5d | — |
| support.type.property-name, support.type.property-name.json, meta.property-name, meta.property-name.css, meta.property-name.scss, meta.module-reference | #88ce5d | — |
| markup.heading, entity.name.section | #00cbce | bold |
| markup.bold, punctuation.definition.bold | #00cbaf | bold |
| markup.italic, punctuation.definition.italic | #52d2ff | italic |
| markup.underline | #dacbde | underline |
| markup.strikethrough | #dacbde | strikethrough |
| markup.underline.link, markup.underline.link.image | #ff95b2 | underline |
| markup.inline.raw, markup.raw.inline | #e0a0fd | — |
| markup.quote | #52d2ff | italic |
| markup.inserted, markup.inserted.diff, markup.inserted.git_gutter | #e0a0fd | — |
| markup.deleted, markup.deleted.diff, markup.deleted.git_gutter | #4dec95 | — |
| markup.changed, markup.changed.diff, markup.changed.git_gutter | #00cbaf | — |
| markup.ignored, markup.untracked | #9a8d9c | — |
| punctuation.definition.list.begin.markdown | #ff95b2 | — |
| constant.other.reference.link, string.other.link | #ff95b2 | underline |
| entity.name.tag.yaml, variable.other.key.toml | #ff95b2 | — |
| constant.other.date, constant.other.timestamp | #00cbaf | — |
| variable.other.alias.yaml | #e0a0fd | italic underline |
| entity.name.function.target.makefile | #ffaf56 | — |
| invalid | #fff4f1 | italic underline |
| invalid.broken | #fff4f1 | italic |
| invalid.deprecated | #9a8d9c | italic underline |
| invalid.illegal | #fff4f1 | italic underline |
| invalid.unimplemented | #fff6eb | italic |
| message.error | #fff4f1 | — |
| carriage-return | #fff4f1 | bold underline |
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}!`;
}