cha theme
Publisher: cha-themeThemes in package: 1
Would you like to come in and have a cup of tea?
Would you like to come in and have a cup of tea?
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 | #666666 | italic |
| comment storage.type.class.jsdoc, comment punctuation.definition.block.tag.jsdoc, comment storage.type.class.jsdoc punctuation.definition.inline.tag.jsdoc, comment entity.name.type.instance.jsdoc, comment punctuation.definition.bracket.angle.begin.jsdoc, comment punctuation.definition.bracket.angle.end.jsdoc, comment punctuation.definition.bracket.curly.begin.jsdoc, comment punctuation.definition.bracket.curly.end.jsdoc, comment storage.type.class.javadoc, comment variable.other.jsdoc | #9B7E62 | italic |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.readwrite.ts, variable.other.readwrite.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.js, variable.other.object.ts, variable.other.object.js, meta.block variable.other, string constant.other.placeholder, meta.export.ts meta.block.ts variable.other.readwrite.ts | #B3A97F | — |
| variable.other.constant, variable.other.constant.ts, variable.other.constant.object | #B3A97F | — |
| variable.other.property, variable.other.object.property | #D7C483 | — |
| variable.parameter | #D5B56B | italic |
| variable.language | #947652 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete | #BB7744 | — |
| storage.type, storage.modifier | #BB7744 | — |
| keyword.operator | #B36D43 | — |
| punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #A38A45 | — |
| storage.type.type, storage.type.type.ts, storage.type.interface.ts, storage.type.class.ts, meta.export storage.type.type.ts, meta.block storage.type.type.ts, meta.export meta.block storage.type.type.ts, meta.export.ts storage.type.type.ts, meta.export.declaration.ts storage.type.type.ts, meta.block.ts storage.type.type.ts, meta.export.ts meta.block.ts storage.type.type.ts, keyword.other.type, keyword.control.type, storage.modifier.type, source.ts storage.type.type | #BB7744 | — |
| entity.name.type, entity.name.type.ts, entity.name.type.alias, entity.name.type.alias.ts, entity.name.type.class, entity.name.type.class.ts, entity.name.type.interface, entity.name.type.interface.ts, entity.name.type.module, entity.name.type.module.ts, meta.block.ts storage.type.type.ts + variable.other.readwrite.ts, meta.export.declaration.ts meta.block.ts storage.type.type.ts variable.other.readwrite.ts | #8DA26C | — |
| support.type, support.class, support.type.sys-types | #8DA26C | — |
| constant.numeric, keyword.other.unit | #C9A554 | — |
| constant.language, support.constant, constant.character, constant.escape, keyword.other | #C9A554 | — |
| constant.other.color | #D7C483 | — |
| string, constant.other.symbol, constant.other.key, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #5F875F | — |
| string.regexp | #C9A554 | — |
| constant.character.escape | #C9A554 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #78824B | — |
| entity.name.method.js, meta.class-method.js entity.name.function.js, variable.function.constructor | #78824B | italic |
| entity.name, entity.name.class, entity.name.type.class | #8DA26C | — |
| entity.other.inherited-class | #5F875F | — |
| support.other.namespace.use.php, meta.use.php, support.other.namespace.php | #8DA26C | — |
| entity.name.tag, meta.tag.sgml | #9B7E62 | — |
| entity.other.attribute-name, text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #D7C483 | italic |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #78824B | — |
| entity.other.attribute-name.class | #D7C483 | — |
| source.sass keyword.control, entity.other.attribute-name.id | #78824B | — |
| variable.other.readwrite.js, variable.other.object.js, variable.other.class.js | #B3A97F | — |
| entity.name.module.js, variable.import.parameter.js | #685742 | — |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #78824B | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #685742 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #BB7744 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #D7C483 | — |
| 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 | #C9A554 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.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 | #685742 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.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 | #B36D43 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.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 | #78824B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.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 | #B36D43 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.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 | #BB7744 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.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 | #5F875F | — |
| comment.line.number-sign.toml, punctuation.definition.comment.toml | #666666 | italic |
| entity.name.section.toml, entity.name.tag.toml | #5F875F | — |
| entity.name.section.array.table.toml | #5F875F | — |
| variable.other.key.toml | #BB7744 | — |
| string.quoted.double.toml, string.quoted.single.toml, string.literal.toml | #5F875F | — |
| constant.numeric.integer.toml, constant.numeric.float.toml | #C9A554 | — |
| constant.language.boolean.toml | #C9A554 | — |
| constant.other.time.datetime.offset.toml, constant.other.time.datetime.local.toml, constant.other.time.date.local.toml, constant.other.time.time.local.toml, constant.other.date, constant.other.timestamp | #C9A554 | — |
| punctuation.definition.table.toml, punctuation.definition.table.begin.toml, punctuation.definition.table.end.toml, punctuation.definition.array.table.begin.toml, punctuation.definition.array.table.end.toml, punctuation.definition.array.toml, punctuation.separator.key-value.toml | #A38A45 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #C2C2B0 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #5F875F | — |
| text.html.markdown markup.inline.raw.markdown | #BB7744 | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #666666 | — |
| markup.italic | #B36D43 | italic |
| markup.bold, markup.bold string | #B36D43 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #B36D43 | bold italic |
| markup.underline | #C9A554 | underline |
| markup.quote punctuation.definition.blockquote.markdown | #666666 | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #78824B | — |
| string.other.link.description.title.markdown | #BB7744 | — |
| constant.other.reference.link.markdown | #D7C483 | — |
| markup.raw.block | #BB7744 | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #C2C2B0 | — |
| variable.language.fenced.markdown | #666666 | — |
| meta.separator | #666666 | bold |
| markup.table | #C2C2B0 | — |
| markup.changed, markup.changed.git_gutter | #BB7744 | — |
| markup.deleted, markup.deleted.git_gutter | #685742 | — |
| markup.inserted, markup.inserted.git_gutter | #5F875F | — |
| invalid, invalid.illegal | #685742 | — |
| *url*, *link*, *uri* | — | 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}!`;
}