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 | #8F817D | italic |
| keyword.codetag, comment keyword.other, storage.type.class.jsdoc | #2AA2C8 | italic bold |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, string constant.other.placeholder | #DBD2CE | — |
| variable.parameter, meta.parameter, variable.other.jsdoc | #DBD2CE | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name, variable.other.member | #DBD2CE | — |
| variable.language, variable.language.this, variable.language.super, keyword.other.this | #2AA2C8 | italic |
| variable.other.constant, variable.other.enummember, constant.other.caps, entity.name.constant | #F46577 | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, keyword.other.unit, support.constant | #F46577 | — |
| constant.character, constant.character.escape, constant.other.character-class.regexp | #F46577 | — |
| string, string.quoted, string.template, punctuation.definition.string | #E4BF39 | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded | #0FCBB7 | — |
| string.regexp, constant.regexp | #41BF76 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #2AA2C8 | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.logical.python | #0FCBB7 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #0FCBB7 | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, meta.brace, punctuation.accessor | #A39894 | — |
| storage.type.function.arrow, keyword.operator.arrow, storage.type.function.lambda | #2AA2C8 | — |
| entity.name.function, meta.function-call.generic, support.function, meta.require, variable.function, entity.name.method | #B09BFA | — |
| meta.definition.method entity.name.function, meta.definition.function entity.name.function | #B09BFA | bold |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.decorator variable.other | #B09BFA | 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 | #41BF76 | — |
| support.type.primitive, keyword.type, storage.type.primitive, support.type.builtin | #41BF76 | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #2AA2C8 | — |
| support.class.component, entity.name.tag.jsx-component, entity.name.tag.namespace | #41BF76 | — |
| entity.other.attribute-name, meta.attribute, entity.other.attribute-name.html | #F46577 | 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 | #0FCBB7 | — |
| support.type.property-name.css, meta.property-name.css | #B09BFA | — |
| support.constant.property-value.css, support.constant.color, constant.other.color | #E4BF39 | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double.json | #B09BFA | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #E4BF39 | — |
| entity.name.tag.yaml, punctuation.definition.map.key.yaml, punctuation.separator.key-value | #B09BFA | — |
| entity.name.type.lifetime, punctuation.definition.lifetime, storage.modifier.lifetime | #2AA2C8 | italic |
| entity.name.function.macro.rust, support.function.macro | #2AA2C8 | — |
| string.quoted.raw.go, meta.struct-tag.go | #F46577 | — |
| meta.fstring.python constant.character.format.placeholder, constant.character.format.placeholder.other.python | #F46577 | — |
| keyword.control.directive, meta.preprocessor, entity.name.function.preprocessor | #2AA2C8 | italic |
| variable.other.php, punctuation.definition.variable.php, variable.other.normal.shell, punctuation.definition.variable.shell | #F46577 | — |
| keyword.other.DML, keyword.other.DDL, keyword.other.sql | #0FCBB7 | — |
| keyword.other.block.graphql, entity.name.type.graphql, entity.name.type.terraform, storage.type.function.terraform | #41BF76 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #0FCBB7 | bold |
| markup.bold, punctuation.definition.bold | #F46577 | bold |
| markup.italic, punctuation.definition.italic | #2AA2C8 | italic |
| markup.strikethrough | #8F817D | strikethrough |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #E4BF39 | underline |
| string.other.link.title.markdown, meta.link.inline.markdown | #B09BFA | — |
| markup.inline.raw, markup.fenced_code, markup.raw.block, fenced_code.block.language | #41BF76 | — |
| markup.quote, punctuation.definition.quote.begin, blockquote | #A39894 | italic |
| punctuation.definition.list.begin, punctuation.definition.list.end | #2AA2C8 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #41BF76 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #F46577 | — |
| markup.changed, punctuation.definition.changed | #E4BF39 | — |
| meta.diff.header, meta.diff.range | #0FCBB7 | — |
| support.function.builtin.shell, entity.name.command.shell, meta.function-call.shell | #B09BFA | — |
| heading, heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown | #B09BFA | bold |
| markup.list.unnumbered, markup.list.numbered, markup.table, markup.list, markup.underline | #A39894 | — |
| log.error, log.exception, log.exceptiontype | #F46577 | — |
| log.warning | #E4BF39 | — |
| log.info, log.date, log.verbose, log.debug | #A39894 | italic |
| log.constant, log.string | #E4BF39 | — |
| entity.name.operator, entity.name.operator.type, entity.name.operator.custom-literal, punctuation.vararg-ellipses | #A39894 | — |
| entity.name.other.preprocessor, entity.name.other.preprocessor.macro, entity.name.other.preprocessor.macro.include | #2AA2C8 | — |
| entity.name.label, entity.name.label.call, support.other.attribute, entity.other.attribute | #41BF76 | — |
| entity.name.variable, entity.name.variable.local, entity.name.variable.property, entity.name.variable.field, entity.name.variable.parameter | #DBD2CE | — |
| entity.name.section, entity.name.section.group-title | #B09BFA | bold |
| constant.other.description.jsdoc, constant.other.email.link.underline.jsdoc, entity.name.type.instance.jsdoc | #8F817D | italic |
| constant.other.character-class, constant.other.character-class.set, constant.other.character-class.range | #41BF76 | — |
| constant.other.general.math, constant.other.math, line.separator.math | #F46577 | — |
| constant.keyword, entity.global | #0FCBB7 | — |
| constant.other, constant.sha, constant.global, constant.other.symbol, constant.other.option | #F46577 | — |
| markup.raw, markup.raw.texttt, markup.raw.verbatim, markup.raw.verb, markup.raw.yaml.front-matter | #E4BF39 | — |
| entity.other.attribute-value, property.value, constant.other.inline-data | #E4BF39 | — |
| constant.other.reference.citation, constant.other.reference.label, entity.name.footnote | #2AA2C8 | — |
| char, constant.character.character-class, constant.character.control | #F46577 | — |
| function.anonymous, name.generic.filter, args.mixin | #B09BFA | — |
| tag.inline, tag.case.control.flow, inline | #2AA2C8 | — |
| custom.punctuation, custom.variable, punctuation.section.insertion | #A39894 | — |
| expression.group | #A39894 | — |
| 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 | #41BF76 | — |
| constant.enum, constant.variable, entity.name.import, entity.name.module, support.other.namespace, support.namespace, entity.other.alias | #F46577 | — |
| support.other.protocol, support.attribute, support.other.php, entity.scope, entity.name.pragma.name, constant.name.attribute.tag | #2AA2C8 | — |
| entity.name.goto-label, entity.other.document.begin, entity.other.document.end | #A39894 | — |
| support.other.match, support.other.parenthesis.regexp, support.other.escape.special.regexp | #2AA2C8 | — |
| markup.math.block, markup.math.inline | #F46577 | — |
| constant.string.documentation | #E4BF39 | 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 | #0FCBB7 | — |
| constant.object.key, scalar.field | #DBD2CE | — |
| storage.type.function.hcl, support.function.builtin.hcl, support.function.namespaced.hcl, support.function.builtin.terraform | #B09BFA | — |
| entity.name.package, entity.name.namespace.package | #41BF76 | — |
| entity.name.error, entity.name.type.error | #F46577 | — |
| operator.go.mod, keyword.operator.go.mod | #A39894 | — |
| invalid, invalid.illegal | #F46577 | italic underline |
| invalid.deprecated | #E4BF39 | strikethrough |
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 | #70635F | italic |
| keyword.codetag, comment keyword.other, storage.type.class.jsdoc | #0C728F | italic bold |
| variable, variable.other.readwrite, meta.definition.variable.name, support.variable, string constant.other.placeholder | #211B18 | — |
| variable.parameter, meta.parameter, variable.other.jsdoc | #211B18 | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name, variable.other.member | #211B18 | — |
| variable.language, variable.language.this, variable.language.super, keyword.other.this | #0C728F | italic |
| variable.other.constant, variable.other.enummember, constant.other.caps, entity.name.constant | #BE2A49 | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, keyword.other.unit, support.constant | #BE2A49 | — |
| constant.character, constant.character.escape, constant.other.character-class.regexp | #BE2A49 | — |
| string, string.quoted, string.template, punctuation.definition.string | #5F4E0B | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded | #0C6157 | — |
| string.regexp, constant.regexp | #0B6A3A | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #0C728F | — |
| keyword, keyword.control, keyword.other, storage, storage.type, storage.modifier, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.operator.logical.python | #0C6157 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #0C6157 | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, meta.brace, punctuation.accessor | #564C48 | — |
| storage.type.function.arrow, keyword.operator.arrow, storage.type.function.lambda | #0C728F | — |
| entity.name.function, meta.function-call.generic, support.function, meta.require, variable.function, entity.name.method | #6354B0 | — |
| meta.definition.method entity.name.function, meta.definition.function entity.name.function | #6354B0 | bold |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, meta.decorator variable.other | #6354B0 | 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 | #0B6A3A | — |
| support.type.primitive, keyword.type, storage.type.primitive, support.type.builtin | #0B6A3A | italic |
| entity.name.tag, punctuation.definition.tag, meta.tag | #0C728F | — |
| support.class.component, entity.name.tag.jsx-component, entity.name.tag.namespace | #0B6A3A | — |
| entity.other.attribute-name, meta.attribute, entity.other.attribute-name.html | #BE2A49 | 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 | #0C6157 | — |
| support.type.property-name.css, meta.property-name.css | #6354B0 | — |
| support.constant.property-value.css, support.constant.color, constant.other.color | #5F4E0B | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted.double.json | #6354B0 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #5F4E0B | — |
| entity.name.tag.yaml, punctuation.definition.map.key.yaml, punctuation.separator.key-value | #6354B0 | — |
| entity.name.type.lifetime, punctuation.definition.lifetime, storage.modifier.lifetime | #0C728F | italic |
| entity.name.function.macro.rust, support.function.macro | #0C728F | — |
| string.quoted.raw.go, meta.struct-tag.go | #BE2A49 | — |
| meta.fstring.python constant.character.format.placeholder, constant.character.format.placeholder.other.python | #BE2A49 | — |
| keyword.control.directive, meta.preprocessor, entity.name.function.preprocessor | #0C728F | italic |
| variable.other.php, punctuation.definition.variable.php, variable.other.normal.shell, punctuation.definition.variable.shell | #BE2A49 | — |
| keyword.other.DML, keyword.other.DDL, keyword.other.sql | #0C6157 | — |
| keyword.other.block.graphql, entity.name.type.graphql, entity.name.type.terraform, storage.type.function.terraform | #0B6A3A | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #0C6157 | bold |
| markup.bold, punctuation.definition.bold | #BE2A49 | bold |
| markup.italic, punctuation.definition.italic | #0C728F | italic |
| markup.strikethrough | #70635F | strikethrough |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #5F4E0B | underline |
| string.other.link.title.markdown, meta.link.inline.markdown | #6354B0 | — |
| markup.inline.raw, markup.fenced_code, markup.raw.block, fenced_code.block.language | #0B6A3A | — |
| markup.quote, punctuation.definition.quote.begin, blockquote | #564C48 | italic |
| punctuation.definition.list.begin, punctuation.definition.list.end | #0C728F | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #0B6A3A | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #BE2A49 | — |
| markup.changed, punctuation.definition.changed | #5F4E0B | — |
| meta.diff.header, meta.diff.range | #0C6157 | — |
| support.function.builtin.shell, entity.name.command.shell, meta.function-call.shell | #6354B0 | — |
| heading, heading.1.markdown, heading.2.markdown, heading.3.markdown, heading.4.markdown, heading.5.markdown, heading.6.markdown | #6354B0 | bold |
| markup.list.unnumbered, markup.list.numbered, markup.table, markup.list, markup.underline | #564C48 | — |
| log.error, log.exception, log.exceptiontype | #BE2A49 | — |
| log.warning | #5F4E0B | — |
| log.info, log.date, log.verbose, log.debug | #564C48 | italic |
| log.constant, log.string | #5F4E0B | — |
| entity.name.operator, entity.name.operator.type, entity.name.operator.custom-literal, punctuation.vararg-ellipses | #564C48 | — |
| entity.name.other.preprocessor, entity.name.other.preprocessor.macro, entity.name.other.preprocessor.macro.include | #0C728F | — |
| entity.name.label, entity.name.label.call, support.other.attribute, entity.other.attribute | #0B6A3A | — |
| entity.name.variable, entity.name.variable.local, entity.name.variable.property, entity.name.variable.field, entity.name.variable.parameter | #211B18 | — |
| entity.name.section, entity.name.section.group-title | #6354B0 | bold |
| constant.other.description.jsdoc, constant.other.email.link.underline.jsdoc, entity.name.type.instance.jsdoc | #70635F | italic |
| constant.other.character-class, constant.other.character-class.set, constant.other.character-class.range | #0B6A3A | — |
| constant.other.general.math, constant.other.math, line.separator.math | #BE2A49 | — |
| constant.keyword, entity.global | #0C6157 | — |
| constant.other, constant.sha, constant.global, constant.other.symbol, constant.other.option | #BE2A49 | — |
| markup.raw, markup.raw.texttt, markup.raw.verbatim, markup.raw.verb, markup.raw.yaml.front-matter | #5F4E0B | — |
| entity.other.attribute-value, property.value, constant.other.inline-data | #5F4E0B | — |
| constant.other.reference.citation, constant.other.reference.label, entity.name.footnote | #0C728F | — |
| char, constant.character.character-class, constant.character.control | #BE2A49 | — |
| function.anonymous, name.generic.filter, args.mixin | #6354B0 | — |
| tag.inline, tag.case.control.flow, inline | #0C728F | — |
| custom.punctuation, custom.variable, punctuation.section.insertion | #564C48 | — |
| expression.group | #564C48 | — |
| 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 | #0B6A3A | — |
| constant.enum, constant.variable, entity.name.import, entity.name.module, support.other.namespace, support.namespace, entity.other.alias | #BE2A49 | — |
| support.other.protocol, support.attribute, support.other.php, entity.scope, entity.name.pragma.name, constant.name.attribute.tag | #0C728F | — |
| entity.name.goto-label, entity.other.document.begin, entity.other.document.end | #564C48 | — |
| support.other.match, support.other.parenthesis.regexp, support.other.escape.special.regexp | #0C728F | — |
| markup.math.block, markup.math.inline | #BE2A49 | — |
| constant.string.documentation | #5F4E0B | 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 | #0C6157 | — |
| constant.object.key, scalar.field | #211B18 | — |
| storage.type.function.hcl, support.function.builtin.hcl, support.function.namespaced.hcl, support.function.builtin.terraform | #6354B0 | — |
| entity.name.package, entity.name.namespace.package | #0B6A3A | — |
| entity.name.error, entity.name.type.error | #BE2A49 | — |
| operator.go.mod, keyword.operator.go.mod | #564C48 | — |
| invalid, invalid.illegal | #BE2A49 | italic underline |
| invalid.deprecated | #5F4E0B | 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}!`;
}
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}!`;
}