Tapetum Theme
Publisher: Țugui Dragoș-ConstantinThemes in package: 58
Every colour placed by hand, then measured on the surface it sits on. 58 themes in 28 families, dark and light, plus a high contrast pair.
Every colour placed by hand, then measured on the surface it sits on. 58 themes in 28 families, dark and light, plus a high contrast pair.
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 |
|---|---|---|
| variable, variable.other, variable.other.readwrite, meta.definition.variable.name, variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name, variable.other.member, meta.function-call.generic, variable.function, entity.name.label, source, entity | #C6C8CC | — |
| variable.parameter, meta.parameter, variable.other.jsdoc | #C6C8CC | italic |
| entity.name.function, meta.definition.function, meta.definition.method, entity.name.method, entity.name.function.decorator | #F0B75A | bold |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, meta.type.declaration, entity.name.scope-resolution, entity.name.tag, entity.name.tag.jsx-component, support.class.component | #F0B75A | bold |
| support.function, support.class, support.type, support.type.builtin, support.type.primitive, support.variable, support.constant, support.module, keyword.type, storage.type.primitive, meta.require, variable.language, variable.language.this, variable.language.super, keyword.other.this, support | #6FC7E0 | italic |
| variable.other.constant, variable.other.enummember, constant.other.caps, entity.name.constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant | #B9A6E8 | — |
| string, string.quoted, string.template, punctuation.definition.string, constant.numeric, constant.character, constant.character.escape, keyword.other.unit, string.regexp, constant.regexp, constant.other.character-class.regexp, string.other.link | #9EB096 | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, storage.type.function.arrow, keyword.operator.arrow, storage.type.function.lambda, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default, keyword.operator.logical.python | #8E939E | — |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, meta.brace, punctuation.accessor, punctuation.definition.tag, punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded, keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, meta.separator, meta.resultLinePrefix.contextLinePrefix.search | #83888F | — |
| entity.other.attribute-name, meta.attribute, entity.other.inherited-class, meta.decorator, punctuation.decorator, entity.name.tag.namespace | #6FC7E0 | italic |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #F0B75A | — |
| support.type.property-name.css, meta.property-name.css | #C6C8CC | — |
| support.constant.property-value.css, support.constant.color, constant.other.color | #9EB096 | — |
| support.type.property-name.json, meta.structure.dictionary.json | #F0B75A | — |
| meta.structure.dictionary.value.json | #9EB096 | — |
| comment, punctuation.definition.comment, string.comment | #7C808A | italic |
| keyword.codetag, comment keyword.other, storage.type.class.jsdoc | #6FC7E0 | italic bold |
| markup.heading, entity.name.section | #F0B75A | bold |
| markup.underline.link | #6FC7E0 | underline |
| markup.italic | #C6C8CC | italic |
| markup.bold | #C6C8CC | bold |
| markup.quote | #7C808A | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #9EB096 | — |
| markup.list, punctuation.definition.list.begin | #83888F | — |
| markup.inserted, meta.diff.header.to-file | #9EB096 | — |
| markup.deleted, meta.diff.header.from-file | #B9A6E8 | — |
| meta.diff.header, meta.diff.range | #6FC7E0 | — |
| invalid, invalid.illegal | #B9A6E8 | underline |
| invalid.deprecated | #83888F | strikethrough |
| variable.other.normal.shell, punctuation.definition.variable.shell | #B9A6E8 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #F0B75A | — |
| token.info-token | #6FC7E0 | — |
| token.warn-token | #F0B75A | — |
| token.error-token | #EB786D | — |
| token.debug-token | #83888F | — |
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}!`;
}