Gruvbox Material Mix
Publisher: nd2204Themes in package: 3
My own personal touch of gruvbox material palette
My own personal touch of gruvbox material palette
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 markup.link | #7c6f64 | — |
| punctuation.section.block.begin.bracket, punctuation.section.block.end.bracket, punctuation.section.arguments.begin.bracket, punctuation.section.arguments.end.bracket, punctuation.section.parens.begin.bracket, punctuation.section.parens.end.bracket, punctuation.section.block.begin.bracket, punctuation.section.block.end.bracket, punctuation.section.parameters.begin.bracket, punctuation.section.parameters.end.bracket, punctuation.separator, punctuation.separator.delimiter.comma, punctuation.definition.begin.bracket.square, punctuation.definition.end.bracket.square, punctuation.section.angle-brackets.begin.template, punctuation.section.angle-brackets.end.template, punctuation.definition.capture.begin.lambda, punctuation.definition.capture.end.lambda, punctuation.definition.parameters.begin.lambda, punctuation.definition.parameters.end.lambda, punctuation.definition.parameters.begin.lambda.cpp, punctuation.definition.parameters.end.lambda.cpp, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, punctuation.separator.arguments.python, punctuation.separator.period.python, punctuation.separator.element.python, punctuation.parenthesis.close, punctuation.parenthesis.open, punctuation.curlybrace.close, punctuation.curlybrace.open, punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end, punctuation.definition.parameters.begin.preprocessor, punctuation.definition.parameters.end.preprocessor, punctuation.definition.logical-expression.shell, punctuation.accessor.cs, punctuation.terminator.statement, meta.template.call.cpp | #7c6f64 | — |
| support.constant.math, support.module.node, support.type.vendored.property-name.css, support.type.object.module, support.type.object.dom, support.type.posix-reserved.c, support.type.posix-reserved.cpp, support.type.python, support.type.swift, support.type.vb.asp, support.type.primitive, support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx, support.type.prelude.elm, support.other.namespace.use.php, support.other.namespace.use-as.php, support.other.namespace.php, support.token.decorator.python, support.function, support.variable.semantic.hlsl, variable.other.class.js, variable.other.class.ts, variable.other.constant, variable.language, variable.parameter.function.language.special.self.python, storage.type.annotation.java, storage.type.object.array.java, storage.type.java, storage.type.generic.java, storage.type.cs, storage.type.php, storage.modifier.import.java, storage.modifier.import.groovy, storage.modifier.reference, keyword.other.type.php, keyword.other.array.phpdoc.php, keyword.control.xi, keyword.operator, entity.name.namespace, entity.name.type.namespace, entity.name.class.identifier.namespace.type, entity.name.class, entity.name.type, entity.name.type.module, entity.name.tag.html, entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition, entity.name.function.operator.member.cpp, entity.name.function.xi, entity.name.function.operator.cpp, entity.name.class.xi, entity.name.package.go, entity.name.lifetime.rust, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class, entity.other.alias.php, entity.other.inherited-class, entity.global.clojure, entity.name.function.destructor.cpp, entity.name.operator.type.pointer.cpp, constant.other.symbol, constant.other.color.rgb-value.xi, constant.language.symbol.elixir, constant.keyword.clojure, constant.character.escape, constant.language.symbol.ruby, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.function.pointer.dereference.cpp, punctuation.definition.bold, punctuation.separator.pointer-access, source.makefile, source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json, meta.method.groovy, meta.function.decorator.identifier.python, meta.interface.php, meta.other.type.phpdoc.php, import.storage.java, token.storage.type.java, rgb-value, markup.changed.diff, string.regexp | #fe8019 | — |
| support.type.type.flowtype, support.function.std.rust, support.other.php, keyword.operator.expression.import, keyword.other.special-method, keyword.operator.sizeof.c, keyword.operator.sizeof.cpp, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff, punctuation.definition.tag.xi, markup.heading punctuation.definition.heading, markup.quote.markdown, entity.name.section, entity.other.attribute-name.id, entity.name.goto-label.php, string.other.link.title.markdown, string.other.link.description.markdown, meta.function.decorator.python, meta.diff.header.from-file, meta.diff.header.to-file, meta.method.java, meta.function-call.generic.python, accent.xi, constant.character.xi | #8ec07c | — |
| support.class, storage.type, storage.type.built-in, storage.type.function.python, entity.name.type.class, entity.name.scope-resolution, entity.name.type, meta.body.class, token.storage | #fabd2f | — |
| keyword, keyword.control, keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.void, keyword.operator.arithmetic.go, keyword.operator.address.go, keyword.operator.module, keyword.operator.regexp.php, keyword.operator.error-control.php, keyword.operator.type.php, keyword.operator.heredoc.php, keyword.operator.nowdoc.php, keyword.operator.assignment.compound, keyword.operator.logical.python, keyword.operator.instanceof.java, support.constant.edge, support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, punctuation.section.embedded.begin,punctuation.section.embedded.end, punctuation.definition.italic,todo.emphasis, punctuation.quasi.element, punctuation.separator.c, punctuation.separator.cpp, token.debug-token, token.package.keyword, storage.type.template, storage.type.template.argument.class, storage.modifier, storage.modifier.specifier.functional.pre-parameters, storage.modifier.specifier.functional.post-parameters, storage.type.enum.cpp, storage.type.class, storage.modifier.const.cpp, storage.modifier.specifier.const.cpp, storage.modifier.constexpr.cpp, storage.type.modifier.access.control, storage.type.modifier.access, storage.type.struct.cpp, storage.modifier.specifier.const, storage.type.function.shell, storage.modifier.inline, storage.modifier.static, storage.modifier.specifier.static, text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade, texthtml.laravel-blade source.php.embedded.line.html support.constant.laravel-blade, markup.italic, markup.underline.link.markdown, markup.underline.link.image.markdown, emphasis md, meta.selector, constant.regexp.xi, variable.language.this.cpp, variable.other.generic-type.haskell | #fb4934 | — |
| punctuation.separator.key-value, punctuation.definition.list.begin.markdown, punctuation.definition.heading.markdown, punctuation.definition.list.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.metadata.markdown, punctuation.section.embedded, variable.interpolation, punctuation.section.array.begin.php, punctuation.section.array.end.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.separator.delimiter.php, punctuation.section.scope.begin.php, punctuation.section.scope.end.php, punctuation.terminator.expression.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.storage-type.begin.bracket.round.php, punctuation.definition.storage-type.end.bracket.round.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.begin.bracket.curly.php, punctuation.definition.end.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php, punctuation.definition.section.switch-block.start.bracket.curly.php, punctuation.definition.section.switch-block.begin.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php, punctuation.definition.block.sequence.item.yaml, punctuation.squarebracket.open.cs, punctuation.squarebracket.close.cs, punctuation.accessor.cs, punctuation.bracket.angle.java, punctuation.section.block.begin.java, punctuation.section.block.end.java, punctuation.definition.method-parameters.begin.java, punctuation.definition.method-parameters.end.java, punctuation.section.method.begin.java, punctuation.section.method.end.java, punctuation.terminator.java, punctuation.section.class.begin.java, punctuation.section.class.end.java, punctuation.section.inner-class.begin.java, punctuation.section.inner-class.end.java, punctuation.section.class.begin.bracket.curly.java, punctuation.section.class.end.bracket.curly.java, punctuation.section.method.begin.bracket.curly.java, punctuation.section.method.end.bracket.curly.java, punctuation.definition.annotation.java, punctuation.separator.delimiter, punctuation.separator.period.java, punctuation.separator.list.comma.css, punctuation.definition.delayed.unison, punctuation.definition.list.begin.unison, punctuation.definition.list.end.unison, punctuation.definition.ability.begin.unison, punctuation.definition.ability.end.unison, punctuation.operator.assignment.as.unison, punctuation.separator.pipe.unison, punctuation.separator.delimiter.unison, punctuation.definition.hash.unison, support.type.property-name, support.constant.property-value, support.type.property-name.json, support.type.property-name.json punctuation, support.variable.property, support.variable.object.process, support.variable.object.node, support.variable.dom, support.variable.property.dom, support.type.object.console, entity.name.tag, entity.name.section.markdown, entity.name.variable.local.cs, markup.heading, markup.heading.setext, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown, meta.tag, meta.template.expression, meta.property.object, meta.definition.variable.name.groovy, meta.scope.prerequisites.makefile, meta.symbol.clojure, meta.arguments.coffee, meta.brace.square, meta.method.body.java, meta.definition.variable.name.java, meta.method-call.java, meta.method.identifier.java, meta.function.c, meta.function.cpp, meta.object-literal.key, function.parameter, function.brace, function.parameter.ruby, function.parameter.cs, keyword.operator.misc.rust, token.variable.parameter.java, source.json meta.structure.dictionary.json > string.quoted.json, source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string, token.package, invalid.illegal.bad-ampersand.html, beginning.punctuation.definition.list.markdown, block.scope.end, block.scope.begin, entity.name.label.cs, text.variable, text.bracketed, variable, variable.c, variable.parameter.function, variable.language.rust, variable.other.class.php, variable.other.readwrite, variable.parameter.function.coffee, variable.parameter.function.js, constant.character.entity, constant.character.character-class.regexp.xi, constant.other.character-class.regexp, selector.sass, invalid.xi, source.java, support.variable.magic.python, storage.modifier.lifetime.rust, markup.deleted.diff | #ebdbb2 | — |
| string, keyword.other.template.end, keyword.other.template.begin, keyword.other.substitution.begin, keyword.other.substitution.end, source.json meta.structure.dictionary.json > value.json > string.quoted.json, source.json meta.structurekarray.json > value.json > string.quoted.json, source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation, source.json meta.structure.array.json > value.json > string.quoted.json > punctuation, markup.inserted.diff, markup.inline.raw.markdown, markup.inline.raw.string.markdown, meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php, meta.definition.class.inherited.classes.groovy, meta.require, entity.name.function, entity.name.function.call.cpp, entity.name.function,support.function.console, source.ini, punctuation.definition.string.begin,punctuation.definition.string.end, beginning.punctuation.definition.quote.markdown.xi, variable.function, support.function.any-method | #b8bb26 | — |
| constant.numeric, constant, constant.character.format.placeholder.other.python, entity.other.attribute-name, entity.other.attribute-name.class.css, entity.name.function.preprocessor.cpp, punctuation.definition.bold.markdown, punctuation.definition.constant, support.constant.property.math, support.constant.property-value.scss,support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss, support.constant.color.w3c-standard-color-name.css, support.constant.json, support.variable.property.process, support.constant.font-name, support.constant.elm, support.constant.core.rust, support.constant.ext.php, support.constant.std.php, support.constant.core.php, support.constant.parser-token.php, variable.parameter.function.python, variable.parameter.function.language.python, storage.type.haskell, keyword.operator.quantifier.regexp, keyword.other.unit, keyword.operator.less, inline-color-decoration rgb-value, token.warn-token, control.elements, wikiword.xi, less rgb-value, markup.bold, todo.bold | #d3869b | — |
| variable.other.object.property, variable.other.property.cpp, entity.name.variable.property | #8AA98A | — |
| invalid.illegal | #ebdbb2 | — |
| invalid.broken | #ebdbb2 | — |
| invalid.deprecated | #ebdbb2 | — |
| invalid.unimplemented | #ebdbb2 | — |
| invalid.illegal.non-null-typehinted.php | #f44747 | — |
| token.error-token | #f44747 | — |
| beginning.punctuation.definition.list.markdown.xi | #7c6f64 | — |
| comment, punctuation.definition.comment | #7c6f64 | italic |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super | — | italic |
| comment.line.double-slash,comment.block.documentation | — | italic |
| keyword.control.import.python,keyword.control.flow.python | — | italic |
| markup.italic.markdown | — | italic |
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}!`;
}