cicero-lino-theme
Publisher: cicero-linoThemes in package: 1
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #0000A0 | — |
| comment | #A0A0A0 | italic |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc | #70A0FF | — |
| constant.language | #FF0000 | — |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #FF80FF | — |
| constant.regexp | #A000A0 | — |
| constant.character | #FF80FF | — |
| entity.name.tag | #FF8800 | — |
| entity.name.tag.css | #FFFF00 | — |
| entity.other.attribute-name | #70A0FF | italic |
| source.css entity.other.attribute-name, source.css.less entity.other.attribute-name.id, source.scss entity.other.attribute-name | #FFFF00 | — |
| invalid | #FF0000 | — |
| invalid.deprecated | #A00000 | strikethrough |
| markup.underline | — | underline |
| markup.bold | #FFFFFF | bold |
| markup.heading | #FFFF00 | bold |
| markup.italic | — | italic |
| markup.inline.raw | #00FF00 | — |
| markup.fenced_code.block | #00FF00 | — |
| markup.underline.link, string.other.link | #70A0FF | underline |
| markup.list | #FF8800 | — |
| markup.quote | #A0A0A0 | italic |
| markup.inserted | #00FF00 | — |
| markup.deleted | #FF0000 | — |
| markup.changed | #0000FF | — |
| meta.selector | #FFFF00 | — |
| punctuation.definition.tag | #A0A0A0 | — |
| entity.other.attribute-name.pseudo-class.css | #FF8800 | — |
| entity.other.attribute-name.pseudo-element.css | #FF8800 | — |
| meta.preprocessor | #A000A0 | — |
| meta.preprocessor.string | #FFFFFF | — |
| meta.preprocessor.numeric | #FF80FF | — |
| meta.structure.dictionary.key.python | #70A0FF | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #FFFF00 | — |
| variable.parameter.function.language.special.self.python | #A000A0 | italic |
| support.function.magic.python | #FF8800 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #A000A0 | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #FFFF00 | — |
| variable.language.this.java | #A000A0 | italic |
| variable.language.super.java | #A000A0 | italic |
| storage.modifier.pointer.c, storage.modifier.reference.c | #FF8800 | — |
| keyword.operator.new | #FF0000 | — |
| storage | #0000FF | — |
| storage.type | #0000FF | — |
| storage.modifier | #A000A0 | — |
| string | #FFFFFF | — |
| string.tag | #FFFFFF | — |
| string.value | #FFFFFF | — |
| string.regexp | #FF80FF | — |
| constant.character.escape | #FF8800 | bold |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #0000FF | — |
| meta.template.expression | #70A0FF | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #70A0FF | — |
| keyword.other.unit | #FF80FF | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #A000A0 | — |
| keyword | #00FF00 | — |
| keyword.control | #00FF00 | — |
| keyword.operator | #FFFFFF | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, keyword.operator.wordlike | #0000FF | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #A000A0 | — |
| entity.name.function, support.function, support.constant.handlebars | #FFFF00 | — |
| support.function.builtin, support.function.console | #FF8800 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, entity.name.type.class, source.cs storage.type | #00FF00 | bold |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #00FF00 | — |
| support.type.primitive, support.type.builtin, keyword.type | #0000FF | — |
| entity.name.type.parameter, meta.type.parameters | #70A0FF | — |
| variable, meta.definition.variable.name, support.variable | #70A0FF | — |
| variable.parameter | #FF80FF | italic |
| variable.language.this | #A000A0 | italic |
| variable.language, variable.language.super | #A000A0 | italic |
| variable.other.constant | #FF0000 | bold |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #70A0FF | — |
| variable.other.property, variable.other.object.property | #70A0FF | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #FFFFFF | — |
| constant.other.color, constant.color | #FF80FF | — |
| keyword.other.important.css | #FF0000 | bold |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.section.embedded | #FFFFFF | — |
| punctuation.separator, punctuation.terminator | #A0A0A0 | — |
| storage.type.function.arrow | #00FF00 | — |
| support.function.git-rebase | #FFFF00 | — |
| constant.sha.git-rebase | #FF80FF | — |
| meta.tag.sgml.doctype, punctuation.definition.tag.html | #A000A0 | — |
| constant.character.entity.html | #FF8800 | — |
| string.interpolated.python, punctuation.definition.interpolation.begin.python, punctuation.definition.interpolation.end.python | #0000FF | — |
| punctuation.bracket.angle.java, storage.type.generic.java | #70A0FF | — |
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}!`;
}