Maple Theme
Publisher: subframe7536Themes in package: 2
A colorful editor theme, support light or dark mode, with medium brightness and low saturation.
A colorful editor theme, support light or dark mode, with medium brightness and low saturation.
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, string.comment, comment.line, punctuation.definition.comment | #999999 | — |
| delimiter.bracket, delimiter, invalid.illegal.character-not-allowed-here.html, keyword.operator.rest, keyword.operator.spread, keyword.operator.type.annotation, keyword.operator.relational, keyword.operator.assignment, meta.tag.block.any.html, meta.tag.inline.any.html, meta.tag.structure.input.void.html, meta.type.annotation, meta.embedded.block.github-actions-expression, storage.type.function.arrow, keyword.operator.type, meta.objectliteral.ts | #b8d7f9 | — |
| punctuation, meta.brace, meta.attribute punctuation.separator | #b8d7f9 | — |
| punctuation.terminator, punctuation.separator | #b8d7f9cc | — |
| constant, support.constant, entity.name.constant, variable.language, meta.definition.variable | #f0c0a8 | — |
| entity, entity.name, variable.parameter.function, meta.body.function.definition.special, support.function, meta.function, meta.function-call.python | #8fc7ff | — |
| entity.name.tag, tag.html | #edabab | — |
| entity.name.function | #8fc7ff | — |
| keyword, storage.type.java, entity.name.package, entity.name.import, keyword.operator.expression.infer, keyword.control.satisfies, keyword.control.as.ts | #d2ccff | — |
| storage.type.annotation.java | #8fc7ff | |
| storage, storage.type, support.type.builtin | #d2ccff | — |
| constant.language.undefined, constant.language.null, constant.language.nullptr | #e3cbeb | italic |
| support.type.primitive, support.type.builtin | — | bold |
| string, string punctuation.section.embedded source, attribute.value, meta.attribute-selector.scss, entity.name.import.go | #a4dfae | — |
| punctuation.definition.string, punctuation.support.type.property-name | #a4dfaeb3 | — |
| entity.name.tag.yaml, meta.attribute entity, source.rust meta.attribute, entity.other.attribute-name, source.css support.type.property-name.media, entity.other.attribute-name.tsx, entity.other.attribute-name.js, entity.other.attribute-name.xml | #eecfa0 | — |
| support | #ded6cf | — |
| property, meta.property-name, meta.member.access, meta.object-literal.key, attribute.name, variable.other.object.property, variable.other.property | #ded6cf | — |
| source.css support.type.property-name | #ded6cf | — |
| variable, identifier, constant.other.table-name, invalid.deprecated.entity.other.attribute-name.html, support.type.property-name.json, support.type.property-name.toml, support.type.property-name.array.toml, keyword.other.definition.ini, variable.other.normal.shell, meta.var | #eecfa0 | — |
| support.type.primitive, entity.name.type.instance.jsdoc | #d2ccff | — |
| entity.name.type.parameter | #eecfa0 | bold |
| entity.name.type.parameter.cpp, entity.name.type.ts | #f0c0a8 | — |
| meta.type keyword.operator.expression.typeof, meta.type keyword.operator.expression.keyof | #d2ccff | italic |
| namespace | #e3cbeb | — |
| meta.type.annotation, support.type | #f0c0a8 | — |
| keyword.operator, keyword.operator.assignment.compound, meta.var.expr.ts | #b8d7f9 | — |
| invalid | #edabab | strikethrough |
| message.error | #edabab | — |
| string variable | #eecfa0 | — |
| source.regexp, string.regexp | #a4dfae | — |
| string.regexp punctuation.definition.string | — | bold |
| keyword.control.anchor.regexp, keyword.control.flow.block-scalar.literal.yaml, storage.modifier.reference | — | |
| punctuation.definition.character-class.regexp | #b8d7f9 | — |
| string.regexp.character-class, constant.character.escape, constant.other.character-class.regexp, string.regexp string.regexp.arbitrary-repitition, string.regexp constant.character.escape, constant.other.placeholder | #8fc7ff | — |
| constant.numeric, constant.numeric.hex storage.type.number, number | #d5f288 | |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, punctuation.definition.entity.css | #8fc7ff | — |
| source.css variable | #a1e8e5 | — |
| keyword.other.unit, punctuation.definition.constant.css | #8fc7ff | — |
| source.css support.function | #d2ccff | — |
| constant.language.boolean, constant.language | #d2ccff | — |
| meta.module-reference | #8fc7ff | — |
| entity.name.section | #d2ccff | — |
| punctuation.definition.list.begin.markdown | #b8d7f9 | — |
| markup.heading, markup.heading entity.name | #d2ccff | bold |
| markup.quote | #a1e8e5 | — |
| markup.italic | #f0c0a8 | italic |
| markup.bold | #f0c0a8 | bold |
| markup.inline.raw, fenced_code.block.language.markdown, fenced_code.block.language | #edabab | — |
| markup.deleted, punctuation.definition.deleted | #edabab | — |
| markup.inserted, punctuation.definition.inserted | #a4dfae | — |
| markup.changed, punctuation.definition.changed | #eecfa0 | — |
| markup.ignored, markup.untracked | #999999 | — |
| meta.diff.range | #d2ccff | bold |
| meta.diff.header | #8fc7ff | — |
| meta.separator | #8fc7ff | bold |
| meta.output | #8fc7ff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #b8d7f9 | — |
| brackethighlighter.unmatched | #edabab | — |
| constant.other.reference.link, string.other.link, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, markup.heading.setext | #8fc7ff | — |
| string.other.link.description, string.other.link.title | #a4dfae | — |
| variable.other.link.underline | — | underline |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #8fc7ff | underline |
| variable.parameter, variable.other.jsdoc, meta.import variable | #eecfa0 | — |
| type.identifier, entity.other.inherited-class, entity.name.type.class, entity.name.type.module, meta.parameter.initialization | #f0c0a8 | — |
| entity.name.section.group-title, support.type.property-name.table.toml | #d2ccff | — |
| support.class.component.js, support.class.component.ts, support.class.component.jsx, support.class.component.tsx, support.class.component.vue, support.class.component.svelte, support.class.component.astro | #a1e8e5 | — |
| meta.fstring.python constant.character.format.placeholder | #a1e8e5 | — |
| string.quoted.docstring.multi.python keyword.control | — | |
| invalid.illegal.unrecognized-tag.html | — | |
| source.vue meta.tag.other.unrecognized.html | #b8d7f9 | |
| keyword.control.directive, keyword.control.import, keyword.control.from, keyword.control.export, keyword.package, keyword.other.package, keyword.import, meta.use.rust keyword, variable.language.this, variable.language.super, keyword.operator.new, keyword.control.trycatch, storage.modifier.package, storage.modifier.import, keyword.operator.expression.import, keyword.operator.expression.infer, source.css keyword.other.important, keyword.other.using, keyword.control.at-rule.import.css, keyword.control.at-rule.import.scss, keyword.control.at-rule.import.less | #e3cbeb | — |
| source.css keyword.other.important, source.sass keyword.other.important, source.less keyword.other.important | — | bold |
| keyword.control.import.python | #d2ccff | — |
| keyword.control.ternary.java | #e3cbeb | |
| keyword.control, keyword.function, keyword.operator.new, keyword.operator.borrow.and.rust, storage.type, storage.modifier, variable.language.this | — | italic |
| meta.decorator entity.name.function, meta.decorator variable.other.readwrite, meta.declaration storage.type.annotation.java | — | bold |
| source.go storage.type | — | |
| keyword.channel.go | — | bold |
| storage.type.function.arrow | — | |
| storage.type.java, punctuation.definition.string.template | — | bold |
| source.java storage.type.primitive | — | bold |
| source.java variable.parameter | — | underline |
| storage.type.object.array.java, meta.class.java storage.type.java, entity.name.type.class.java | #f0c0a8 | — |
| entity.name.namespace | #eecfa0 | — |
| meta.jsx.children | #cbd5e1 | — |
| invalid.illegal.character-not-allowed-here.html, invalid.deprecated.entity.other.attribute-name.html | — | |
| source.nix invalid | #b8d7f9 | |
| source.nix invalid.illegal.reserved | #d2ccff | |
| entity.name.type.rust | #f0c0a8 | |
| log.error | #edabab | — |
| log.warning | #eecfa0 | — |
| log.info | #a4dfae | — |
| log.debug | #8fc7ff | — |
| log.verbose | #b8d7f9 | — |
| log.date | #999999 | — |
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}!`;
}