Core
Publisher: TiberiuMunteanuThemes in package: 3
NOT a Christmas tree
NOT a Christmas tree
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 |
|---|---|---|
| keyword, keyword.type, keyword.type.zig, keyword.control, keyword.operator.delete, keyword - keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike, keyword.operator.sizeof.cpp, keyword.operator.sizeof.c, keyword.operator.noexcept, keyword.operator.expression, keyword.operator.expression.typeof, keyword.operation.graphql, keyword.operator.new.ts, keyword.operator.new.tsx, keyword.on.graphql, keyword.directive.preprocessor.glsl, keyword.fragment.graphql, keyword.other.important.css, keyword.other.new.cs, keyword.other.typedef.c, keyword.other.using, keyword.other.directive.using, keyword.other.operator, variable.language, variable.language.wildcard.java, variable.language.this.ts, variable.language.this.tsx, storage, storage.type, storage.modifier, storage.modifier.glsl, storage.modifier.c, storage.modifier.import.java, storage.modifier.package.java, entity.name.operator, support.variable.property.importmeta.tsx, support.variable.jai, this.self | #c56c86 | — |
| entity.name.function.preprocessor, entity.name.function.preprocessor.c, meta.preprocessor, meta.preprocessor.macro.c | #aa8d80 | — |
| entity.name.tag, entity.name.tag.css, entity.name.tag.less, entity.name.section.markdown, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.scss, source.css entity.other.attribute-name.class, source.css entity.other.attribute-name.pseudo-class, source.css.less entity.other.attribute-name.id, meta.selector.css, keyword.operator.expression.void, variable.language.relations.prisma | #609bbf | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.enum.jai, entity.name.struct.jai, entity.other.attribute, entity.name.scope-resolution, entity.other.inherited-class, support.type, support.class, support.constant.math, support.constant.dom, support.constant.json, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.jai, storage.type.struct.jai, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy, meta.type.cast.expr, meta.type.new.expr | #609bbf | — |
| entity.name.function, entity.name.function.c, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal, keyword.other.main.jai | #a8b499 | — |
| variable, variable.css, variable.other.constant, entity.name.variable, entity.other.attribute-name, entity.name.fragment.graphql, entity.name.label, source.glsl, source.css variable, source.coffee.embedded, meta.function.c, meta.object-literal.key, meta.definition.variable.name, meta.structure.dictionary.key.python, support.type.property-name, support.type.vendored.property-name, support.variable, support.variable.property.ts, support.variable.glsl, support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, support.constant.color, constant.other.color.rgb-value, constant.other.rgb-value, constant.character.escape, constant.character, constant.other.option | #878787 | — |
| variable.other.enummember, variable.enum.jai, meta.property-value.css, support.constant.property-value.css, support.constant.font-name.css, support.constant.constant.prisma | #c48b4e | — |
| string, string.tag, string.value, constant.numeric, constant.language, constant.language.null, constant.language.undefined, constant.language.boolean, constant.language.json, constant.language.json.comments, constant.regexp, meta.jsx.children.tsx, meta.embedded.assembly, meta.preprocessor.string, meta.preprocessor.numeric, punctuation.definition.constant.css, keyword.other.unit, punctuation.definition.string.import.begin.jai | #b5647d | — |
| comment, punctuation.definition.comment, punctuation.definition.heading.markdown, meta.paragraph.markdown, text.html.markdown | #5c605c | — |
| punctuation, punctuation.section.embedded, punctuation.accessor.optional, punctuation.definition.parameters, punctuation.definition.binding-pattern, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.tag, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, meta.parens.block, meta.brace.round, meta.brace.square, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator, keyword.operator.comparison, keyword.operator.logical, keyword.operator.increment, keyword.operator.assignment, keyword.operator.jai, keyword.declaration.jai, storage.modifier.array.bracket.square, storage.type.function.arrow, constant.other.placeholder, constant.language.import-export-all, source.zig, source.prisma.array, source.prisma.attribute.with_arguments, punctuation.section.braces.start.jai, punctuation.section.braces.end.jai | #656f6b | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #569cd6 | bold |
| markup.heading | #569cd6 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #b5647d | — |
| markup.changed | #569cd6 | — |
| punctuation.definition.quote.begin.markdown | #6a9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #b5647d | — |
| meta.diff.header | #569cd6 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| variable.parameter.jai | #b3a178 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}