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 |
|---|---|---|
| comment, punctuation.definition.comment, string.comment | #85828F | italic |
| keyword.codetag, comment keyword.other, storage.type.class.jsdoc | #6E90FA | italic bold |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, string constant.other.placeholder | #D4D1DC | — |
| variable.parameter, meta.parameter, variable.other.jsdoc | #D4D1DC | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name, variable.other.member | #D4D1DC | — |
| variable.language, variable.language.this, variable.language.super, keyword.other.this | #6E90FA | italic |
| variable.other.constant, variable.other.enummember, constant.other.caps, entity.name.constant | #F46469 | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, keyword.other.unit, support.constant, constant | #F46469 | — |
| constant.character, constant.character.escape, constant.other.character-class.regexp | #F46469 | — |
| string, string.quoted, string.template, punctuation.definition.string | #20D12E | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded | #F976E7 | — |
| string.regexp, constant.regexp | #F2B486 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #6E90FA | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.logical.python | #F976E7 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #F976E7 | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, meta.brace, punctuation.accessor, meta.separator, meta.resultLinePrefix.contextLinePrefix.search | #9B98A4 | — |
| storage.type.function.arrow, keyword.operator.arrow, storage.type.function.lambda | #6E90FA | — |
| entity.name.function, meta.function-call.generic, support.function, meta.require, variable.function, entity.name.method, entity | #12B6E8 | — |
| meta.definition.method entity.name.function, meta.definition.function entity.name.function | #12B6E8 | bold |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.decorator variable.other | #12B6E8 | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution, support.type, support.class, entity.other.inherited-class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, meta.type.declaration entity.name.type | #F2B486 | — |
| support.type.primitive, keyword.type, storage.type.primitive, support.type.builtin, support | #F2B486 | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #6E90FA | — |
| support.class.component, entity.name.tag.jsx-component, entity.name.tag.namespace | #F2B486 | — |
| entity.other.attribute-name, meta.attribute, entity.other.attribute-name.html | #F46469 | 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 | #F976E7 | — |
| support.type.property-name.css, meta.property-name.css | #12B6E8 | — |
| support.constant.property-value.css, support.constant.color, constant.other.color | #20D12E | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double.json | #12B6E8 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #20D12E | — |
| entity.name.tag.yaml, punctuation.definition.map.key.yaml, punctuation.separator.key-value | #12B6E8 | — |
| entity.name.type.lifetime, punctuation.definition.lifetime, storage.modifier.lifetime | #6E90FA | italic |
| entity.name.function.macro.rust, support.function.macro | #6E90FA | — |
| string.quoted.raw.go, meta.struct-tag.go | #F46469 | — |
| meta.fstring.python constant.character.format.placeholder, constant.character.format.placeholder.other.python | #F46469 | — |
| keyword.control.directive, meta.preprocessor, entity.name.function.preprocessor | #6E90FA | italic |
| variable.other.php, punctuation.definition.variable.php, variable.other.normal.shell, punctuation.definition.variable.shell | #F46469 | — |
| keyword.other.DML, keyword.other.DDL, keyword.other.sql | #F976E7 | — |
| keyword.other.block.graphql, entity.name.type.graphql, entity.name.type.terraform, storage.type.function.terraform | #F2B486 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #F976E7 | bold |
| markup.bold, punctuation.definition.bold | #F46469 | bold |
| markup.italic, punctuation.definition.italic | #6E90FA | italic |
| markup.strikethrough | #85828F | strikethrough |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #20D12E | underline |
| string.other.link.title.markdown, meta.link.inline.markdown | #12B6E8 | — |
| markup.inline.raw, markup.fenced_code, markup.raw.block, fenced_code.block.language | #F2B486 | — |
| markup.quote, punctuation.definition.quote.begin, blockquote | #9B98A4 | italic |
| punctuation.definition.list.begin, punctuation.definition.list.end | #6E90FA | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #20D12E | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #F46469 | — |
| markup.changed, punctuation.definition.changed | #F2B486 | — |
| meta.diff.header, meta.diff.range | #F976E7 | — |
| support.function.builtin.shell, entity.name.command.shell, meta.function-call.shell | #12B6E8 | — |
| heading, heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown | #12B6E8 | bold |
| markup.list.unnumbered, markup.list.numbered, markup.table, markup.list, markup.underline | #9B98A4 | — |
| log.error, log.exception, log.exceptiontype | #F46469 | — |
| log.warning | #F2B486 | — |
| log.info, log.date, log.verbose, log.debug | #9B98A4 | italic |
| log.constant, log.string | #20D12E | — |
| entity.name.operator, entity.name.operator.type, entity.name.operator.custom-literal, punctuation.vararg-ellipses | #9B98A4 | — |
| entity.name.other.preprocessor, entity.name.other.preprocessor.macro, entity.name.other.preprocessor.macro.include | #6E90FA | — |
| entity.name.label, entity.name.label.call, support.other.attribute, entity.other.attribute | #F2B486 | — |
| entity.name.variable, entity.name.variable.local, entity.name.variable.property, entity.name.variable.field, entity.name.variable.parameter | #D4D1DC | — |
| entity.name.section, entity.name.section.group-title | #12B6E8 | bold |
| constant.other.description.jsdoc, constant.other.email.link.underline.jsdoc, entity.name.type.instance.jsdoc | #85828F | italic |
| constant.other.character-class, constant.other.character-class.set, constant.other.character-class.range | #F2B486 | — |
| constant.other.general.math, constant.other.math, line.separator.math | #F46469 | — |
| constant.keyword, entity.global | #F976E7 | — |
| constant.other, constant.sha, constant.global, constant.other.symbol, constant.other.option | #F46469 | — |
| markup.raw, markup.raw.texttt, markup.raw.verbatim, markup.raw.verb, markup.raw.yaml.front-matter | #20D12E | — |
| entity.other.attribute-value, property.value, constant.other.inline-data | #20D12E | — |
| constant.other.reference.citation, constant.other.reference.label, entity.name.footnote | #6E90FA | — |
| char, constant.character.character-class, constant.character.control | #F46469 | — |
| function.anonymous, name.generic.filter, args.mixin | #12B6E8 | — |
| tag.inline, tag.case.control.flow, inline | #6E90FA | — |
| custom.punctuation, custom.variable, punctuation.section.insertion | #9B98A4 | — |
| expression.group | #9B98A4 | — |
| entity.other.keyframe-offset, entity.other.counter-style-name, entity.other.counter-name, entity.other.namespace-prefix, entity.name.namespace-prefix, support.keyword.repetitions, support.other.variable, support.unicode-range, constant.codepoint-range | #F2B486 | — |
| constant.enum, constant.variable, entity.name.import, entity.name.module, support.other.namespace, support.namespace, entity.other.alias | #F46469 | — |
| support.other.protocol, support.attribute, support.other.php, entity.scope, entity.name.pragma.name, constant.name.attribute.tag | #6E90FA | — |
| entity.name.goto-label, entity.other.document.begin, entity.other.document.end | #9B98A4 | — |
| support.other.match, support.other.parenthesis.regexp, support.other.escape.special.regexp | #6E90FA | — |
| markup.math.block, markup.math.inline | #F46469 | — |
| constant.string.documentation | #20D12E | italic |
| entity.name.fragment, entity.scalar, keyword.fragment, keyword.interface, keyword.enum, keyword.input, keyword.implements, keyword.directive, keyword.on, keyword.union, keyword.scalar, keyword.type | #F976E7 | — |
| constant.object.key, scalar.field | #D4D1DC | — |
| storage.type.function.hcl, support.function.builtin.hcl, support.function.namespaced.hcl, support.function.builtin.terraform | #12B6E8 | — |
| entity.name.package, entity.name.namespace.package | #F2B486 | — |
| entity.name.error, entity.name.type.error | #F46469 | — |
| operator.go.mod, keyword.operator.go.mod | #9B98A4 | — |
| invalid, invalid.illegal | #F46469 | italic underline |
| invalid.deprecated | #F2B486 | strikethrough |
| token.info-token | #6E90FA | — |
| token.warn-token | #F2B486 | — |
| token.error-token | #F46469 | — |
| token.debug-token | #9B98A4 | — |
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}!`;
}