Cita Theme
Publisher: Silvestar BistrovićThemes in package: 2
Light and dark themes in mint, pink, and navy, based on the colors of silvestar.codes.
Light and dark themes in mint, pink, and navy, based on the colors of silvestar.codes.
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 |
|---|---|---|
| Default | #043A73 | — |
| comment, punctuation.definition.comment, string.comment | #5A7394 | italic |
| storage.type.class.jsdoc, keyword.other.phpdoc, comment.block.documentation storage.type | #5A7394 | bold italic |
| keyword, keyword.control, storage, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, keyword.operator.wordlike, variable.language.this, variable.language.self, variable.language.super | #D1124A | — |
| keyword.operator, punctuation.accessor, punctuation.separator.key-value | #4F6A8C | — |
| punctuation, meta.brace, punctuation.definition.tag, punctuation.separator, punctuation.terminator | #4F6A8C | — |
| string, punctuation.definition.string, string.template, markup.inline.raw.string | #08805A | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression | #D1124A | — |
| string.regexp, constant.character.escape, constant.other.character-class | #945A00 | — |
| constant.numeric, constant.language, constant.character, constant.other, variable.other.constant, support.constant, keyword.other.unit | #B3336B | — |
| entity.name.function, meta.function-call entity.name.function, support.function, variable.function, meta.function-call.generic, entity.name.method | #0B5CAD | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.other.inherited-class, support.type, support.class, storage.type.primitive, storage.type.built-in, entity.name.type.module | #945A00 | — |
| variable, variable.other.readwrite, meta.definition.variable | #043A73 | — |
| variable.parameter, meta.parameter | #043A73 | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property, entity.name.tag.yaml | #1C6FA8 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #945A00 | italic |
| entity.name.tag | #D1124A | — |
| support.class.component, entity.name.tag.component | #945A00 | — |
| entity.other.attribute-name | #945A00 | italic |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #0B5CAD | |
| support.type.property-name, support.type.vendored.property-name, meta.property-name | #1C6FA8 | — |
| support.constant.property-value, support.constant.font-name, support.constant.color, constant.other.color | #08805A | — |
| variable.css, variable.argument.css, variable.scss, variable.other.less | #B3336B | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #D1124A | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #1C6FA8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #0B5CAD | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #945A00 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #D1124A | bold |
| markup.bold, punctuation.definition.bold | #945A00 | bold |
| markup.italic, punctuation.definition.italic | #B3336B | italic |
| markup.strikethrough | — | strikethrough |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #08805A | — |
| meta.link.inline.markdown string.other.link.title.markdown, string.other.link.description | #0B5CAD | — |
| markup.inline.raw, markup.fenced_code.block.markdown, markup.raw | #1C6FA8 | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #5A7394 | italic |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #D1124A | — |
| markup.inserted | #08805A | — |
| markup.deleted | #D1124A | — |
| markup.changed | #0B5CAD | — |
| variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable.shell | #B3336B | — |
| support.function.magic.python, support.variable.magic.python | #0B5CAD | italic |
| invalid, invalid.illegal | #D1124A | — |
| invalid.deprecated | #945A00 | 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}!`;
}