Gruvbox Modern
Publisher: SaffageThemes in package: 1
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 |
|---|---|---|
| invalid | #F4261B | — |
| invalid.deprecated | #F4261B | strikethrough |
| punctuation, keyword.operator.namespace.rust, keyword.operator.range.rust, keyword.operator.access.dot.rust, keyword.operator.key-value.rust | #928374 | — |
| keyword, keyword.operator.new, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, keyword.other.debugger, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.property, storage.type.extends, keyword.operator.arrow.fat.rust, keyword.operator.arrow.skinny.rust | #f0554d | — |
| keyword.control, keyword.operator, keyword.control.case, keyword.control.switch, entity.name.tag, storage, modifier | #ed843e | — |
| string | #806283 | — |
| entity.other.attribute, entity.other.attribute-name, punctuation.pragma, punctuation.definition.attribute, punctuation.brackets.attribute | #D96A82 | — |
| punctuation.definition.string.end, punctuation.definition.string.begin, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, punctuation.definition.string.begin.haskell, punctuation.definition.string.begin.fsharp, punctuation.definition.string.end.haskell, punctuation.definition.string.end.fsharp | #A170A9 | — |
| constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded | #D3869B | — |
| meta.interpolation, variable.interpolation, storage.type.format, keyword.format.specifier, constant.other.placeholder, constant.other.caps.rust | #CCCCCC | — |
| entity.name.function, support.function, meta.function, meta.function-call, meta.definition.method | #AFC63C | — |
| entity.name.type | — | bold |
| keyword.control.at-rule, keyword.control.import, keyword.control.export, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.scope-resolution, entity.name.type.interface, keyword.other.using, keyword.package, keyword.import, keyword.map | #6bb55f | — |
| storage.type.annotation | #6bb55f | — |
| entity.name.label, constant.other.label, punctuation.definition.label | #6bb55f | — |
| support.module, support.node, support.other.module, support.type.object.module, entity.name.type.module, entity.name.type.class.module, keyword.control.module | #80a0a2 | — |
| storage.type, storage.class, support.type, support.class, entity.name.type, entity.name.type.class, entity.name.class, entity.other.inherited-class | #68C2CB | — |
| keyword.other.this, constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, variable.language, variable.language.this, variable.language.self, variable.language.super, variable.language.special, entity.name.function.preprocessor | #D3869B | — |
| constant.language, support.constant | #D3869B | — |
| variable, support.variable, meta.definition.variable | #CCCCCC | — |
| variable.object.property, support.variable.property, variable.other.property, variable.other.object.property, variable.other.enummember, variable.other.member, meta.object-literal.key | #D4BE98 | — |
| meta.brace, meta.delimiter, meta.bracket | #D4BE98 | — |
| punctuation | #928374 | — |
| heading.1.markdown, markup.heading.setext.1.markdown | #f0554d | bold |
| heading.2.markdown, markup.heading.setext.2.markdown | #ed843e | bold |
| heading.3.markdown | #806283 | bold |
| heading.4.markdown | #aabd4a | bold |
| heading.5.markdown | #68C2CB | bold |
| heading.6.markdown | #D3869B | bold |
| punctuation.definition.heading.markdown | #928374 | |
| string.other.link.title.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown | #D3869B | |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #aabd4a | underline |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.italic.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.metadata.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.markdown | #928374 | — |
| punctuation.definition.bold.markdown | #928374 | |
| meta.separator.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown | #928374 | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.bold markup.italic, markup.italic markup.bold | — | italic bold |
| punctuation.definition.markdown, punctuation.definition.raw.markdown | #806283 | — |
| fenced_code.block.language | #806283 | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #aabd4a | — |
| punctuation.definition.list.begin.markdown | #f0554d | — |
| punctuation.definition.heading.restructuredtext | #ed843e | bold |
| punctuation.definition.field.restructuredtext, punctuation.separator.key-value.restructuredtext, punctuation.definition.directive.restructuredtext, punctuation.definition.constant.restructuredtext, punctuation.definition.italic.restructuredtext, punctuation.definition.table.restructuredtext | #928374 | — |
| punctuation.definition.bold.restructuredtext | #928374 | |
| entity.name.tag.restructuredtext, punctuation.definition.link.restructuredtext, punctuation.definition.raw.restructuredtext, punctuation.section.raw.restructuredtext | #6bb55f | — |
| constant.other.footnote.link.restructuredtext | #D3869B | — |
| support.directive.restructuredtext | #f0554d | — |
| entity.name.directive.restructuredtext, markup.raw.restructuredtext, markup.raw.inner.restructuredtext, string.other.link.title.restructuredtext | #aabd4a | — |
| punctuation.definition.function.latex, punctuation.definition.function.tex, punctuation.definition.keyword.latex, constant.character.newline.tex, punctuation.definition.keyword.tex | #928374 | — |
| support.function.be.latex | #f0554d | — |
| support.function.section.latex, keyword.control.table.cell.latex, keyword.control.table.newline.latex | #ed843e | — |
| support.class.latex, variable.parameter.latex, variable.parameter.function.latex, variable.parameter.definition.label.latex, constant.other.reference.label.latex | #806283 | — |
| keyword.control.preamble.latex | #D3869B | — |
| punctuation.separator.namespace.xml | #928374 | — |
| entity.name.tag.html, entity.name.tag.xml, entity.name.tag.localname.xml | #ed843e | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #806283 | — |
| string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html, punctuation.separator.key-value.html, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, string.quoted.double.xml, string.quoted.single.xml, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.xml, meta.tag.xml, meta.tag.preprocessor.xml, meta.tag.other.html, meta.tag.block.any.html, meta.tag.inline.any.html | #aabd4a | — |
| variable.language.documentroot.xml, meta.tag.sgml.doctype.xml | #D3869B | — |
| storage.type.proto | #806283 | — |
| string.quoted.double.proto.syntax, string.quoted.single.proto.syntax, string.quoted.double.proto, string.quoted.single.proto | #aabd4a | — |
| entity.name.class.proto, entity.name.class.message.proto | #6bb55f | — |
| punctuation.definition.entity.css, punctuation.separator.key-value.css, punctuation.terminator.rule.css, punctuation.separator.list.comma.css | #928374 | — |
| entity.other.attribute-name.class.css | #f0554d | — |
| keyword.other.unit | #d96a82 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #806283 | — |
| string.quoted.single.css, string.quoted.double.css, support.constant.property-value.css, meta.property-value.css, punctuation.definition.string.begin.css, punctuation.definition.string.end.css, constant.numeric.css, support.constant.font-name.css, variable.parameter.keyframe-list.css | #aabd4a | — |
| support.type.property-name.css | #6bb55f | — |
| support.type.vendored.property-name.css | #68C2CB | — |
| entity.name.tag.css, entity.other.keyframe-offset.css, punctuation.definition.keyword.css, keyword.control.at-rule.keyframes.css, meta.selector.css | #D3869B | — |
| punctuation.definition.entity.scss, punctuation.separator.key-value.scss, punctuation.terminator.rule.scss, punctuation.separator.list.comma.scss | #928374 | — |
| keyword.control.at-rule.keyframes.scss | #ed843e | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #806283 | — |
| punctuation.definition.string.begin.scss, punctuation.definition.string.end.scss, string.quoted.double.scss, string.quoted.single.scss, constant.character.css.sass, meta.property-value.scss | #aabd4a | — |
| keyword.control.at-rule.include.scss, keyword.control.at-rule.use.scss, keyword.control.at-rule.mixin.scss, keyword.control.at-rule.extend.scss, keyword.control.at-rule.import.scss | #D3869B | — |
| meta.function.stylus | #D4BE98 | — |
| entity.name.function.stylus | #806283 | — |
| string.unquoted.js | #D4BE98 | — |
| punctuation.accessor.js, punctuation.separator.key-value.js, punctuation.separator.label.js, keyword.operator.accessor.js | #928374 | — |
| punctuation.definition.block.tag.jsdoc | #f0554d | — |
| storage.type.js, storage.type.function.arrow.js | #ed843e | — |
| JSXNested | #D4BE98 | — |
| punctuation.definition.tag.jsx, entity.other.attribute-name.jsx, punctuation.definition.tag.begin.js.jsx, punctuation.definition.tag.end.js.jsx, entity.other.attribute-name.js.jsx | #aabd4a | — |
| entity.name.type.module.ts | #D4BE98 | — |
| keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.separator.key-value.ts | #928374 | — |
| punctuation.definition.tag.directive.ts, entity.other.attribute-name.directive.ts | #aabd4a | — |
| entity.name.type.ts, entity.name.type.interface.ts, entity.other.inherited-class.ts, entity.name.type.alias.ts, entity.name.type.class.ts, entity.name.type.enum.ts | #6bb55f | — |
| storage.type.ts, storage.type.function.arrow.ts, storage.type.type.ts | #ed843e | — |
| entity.name.type.module.ts | #68C2CB | — |
| keyword.control.import.ts, keyword.control.export.ts, storage.type.namespace.ts | #D3869B | — |
| entity.name.type.module.tsx | #D4BE98 | — |
| keyword.operator.type.annotation.tsx, punctuation.accessor.tsx, punctuation.separator.key-value.tsx | #928374 | — |
| punctuation.definition.tag.directive.tsx, entity.other.attribute-name.directive.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, entity.other.attribute-name.tsx | #aabd4a | — |
| entity.name.type.tsx, entity.name.type.interface.tsx, entity.other.inherited-class.tsx, entity.name.type.alias.tsx, entity.name.type.class.tsx, entity.name.type.enum.tsx | #6bb55f | — |
| entity.name.type.module.tsx | #68C2CB | — |
| keyword.control.import.tsx, keyword.control.export.tsx, storage.type.namespace.tsx | #D3869B | — |
| storage.type.tsx, storage.type.function.arrow.tsx, storage.type.type.tsx, support.class.component.tsx | #ed843e | — |
| storage.type.function.coffee | #ed843e | — |
| meta.type-signature.purescript | #D4BE98 | — |
| keyword.other.double-colon.purescript, keyword.other.arrow.purescript, keyword.other.big-arrow.purescript | #ed843e | — |
| entity.name.function.purescript | #806283 | — |
| string.quoted.single.purescript, string.quoted.double.purescript, punctuation.definition.string.begin.purescript, punctuation.definition.string.end.purescript, string.quoted.triple.purescript, entity.name.type.purescript | #aabd4a | — |
| support.other.module.purescript | #D3869B | — |
| punctuation.dot.dart | #928374 | — |
| storage.type.primitive.dart | #ed843e | — |
| support.class.dart | #806283 | — |
| entity.name.function.dart, string.interpolated.single.dart, string.interpolated.double.dart | #aabd4a | — |
| variable.language.dart | #68C2CB | — |
| keyword.other.import.dart, storage.type.annotation.dart | #D3869B | — |
| entity.other.attribute-name.class.pug | #f0554d | — |
| storage.type.function.pug | #ed843e | — |
| entity.other.attribute-name.tag.pug | #6bb55f | — |
| entity.name.tag.pug, storage.type.import.include.pug | #D3869B | — |
| meta.function-call.c, storage.modifier.array.bracket.square.c, meta.function.definition.parameters.c | #D4BE98 | — |
| punctuation.separator.dot-access.c, constant.character.escape.line-continuation.c | #928374 | — |
| keyword.control.directive.include.c, punctuation.definition.directive.c, keyword.control.directive.pragma.c, keyword.control.directive.line.c, keyword.control.directive.define.c, keyword.control.directive.conditional.c, keyword.control.directive.diagnostic.error.c, keyword.control.directive.undef.c, keyword.control.directive.conditional.ifdef.c, keyword.control.directive.endif.c, keyword.control.directive.conditional.ifndef.c, keyword.control.directive.conditional.if.c, keyword.control.directive.else.c | #f0554d | — |
| punctuation.separator.pointer-access.c | #ed843e | — |
| variable.other.member.c | #6bb55f | — |
| meta.function-call.cpp, storage.modifier.array.bracket.square.cpp, meta.function.definition.parameters.cpp, meta.body.function.definition.cpp | #D4BE98 | — |
| punctuation.separator.dot-access.cpp, constant.character.escape.line-continuation.cpp | #928374 | — |
| keyword.control.directive.include.cpp, punctuation.definition.directive.cpp, keyword.control.directive.pragma.cpp, keyword.control.directive.line.cpp, keyword.control.directive.define.cpp, keyword.control.directive.conditional.cpp, keyword.control.directive.diagnostic.error.cpp, keyword.control.directive.undef.cpp, keyword.control.directive.conditional.ifdef.cpp, keyword.control.directive.endif.cpp, keyword.control.directive.conditional.ifndef.cpp, keyword.control.directive.conditional.if.cpp, keyword.control.directive.else.cpp, storage.type.namespace.definition.cpp, keyword.other.using.directive.cpp, storage.type.struct.cpp | #f0554d | — |
| punctuation.separator.pointer-access.cpp, punctuation.section.angle-brackets.begin.template.call.cpp, punctuation.section.angle-brackets.end.template.call.cpp | #ed843e | — |
| variable.other.member.cpp | #6bb55f | — |
| keyword.other.using.cs | #f0554d | — |
| keyword.type.cs, constant.character.escape.cs, punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs | #806283 | — |
| string.quoted.double.cs, string.quoted.single.cs, punctuation.definition.string.begin.cs, punctuation.definition.string.end.cs | #aabd4a | — |
| variable.other.object.property.cs | #6bb55f | — |
| entity.name.type.namespace.cs | #D3869B | — |
| keyword.symbol.fsharp, constant.language.unit.fsharp | #D4BE98 | — |
| string.quoted.double.fsharp, string.quoted.single.fsharp, punctuation.definition.string.begin.fsharp, punctuation.definition.string.end.fsharp | #aabd4a | — |
| support.function.attribute.fsharp | #D96A82 | — |
| punctuation.separator.java, punctuation.separator.period.java | #928374 | — |
| keyword.other.import.java, keyword.other.package.java | #f0554d | — |
| storage.type.function.arrow.java, keyword.control.ternary.java | #ed843e | — |
| variable.other.property.java | #6bb55f | — |
| variable.language.wildcard.java, storage.modifier.import.java, storage.type.annotation.java, punctuation.definition.annotation.java, storage.modifier.package.java, entity.name.type.module.java | #D3869B | — |
| keyword.other.import.kotlin | #f0554d | — |
| storage.type.kotlin | #ed843e | — |
| constant.language.kotlin | #6bb55f | — |
| entity.name.package.kotlin, storage.type.annotation.kotlin | #D3869B | — |
| entity.name.package.scala | #D3869B | — |
| constant.language.scala | #68C2CB | — |
| entity.name.import.scala | #6bb55f | — |
| string.quoted.double.scala, string.quoted.single.scala, punctuation.definition.string.begin.scala, punctuation.definition.string.end.scala, string.quoted.double.interpolated.scala, string.quoted.single.interpolated.scala, string.quoted.triple.scala | #aabd4a | — |
| entity.other.inherited-class.scala | #806283 | — |
| keyword.declaration.stable.scala, keyword.other.arrow.scala | #ed843e | — |
| keyword.other.import.scala | #f0554d | — |
| keyword.operator.navigation.groovy, meta.method.body.java, meta.definition.method.groovy, meta.definition.method.signature.java | #D4BE98 | — |
| punctuation.separator.groovy | #928374 | — |
| keyword.other.import.groovy, keyword.other.package.groovy, keyword.other.import.static.groovy | #f0554d | — |
| storage.type.def.groovy | #ed843e | — |
| variable.other.interpolated.groovy, meta.method.groovy | #aabd4a | — |
| storage.modifier.import.groovy, storage.modifier.package.groovy | #6bb55f | — |
| storage.type.annotation.groovy | #D3869B | — |
| keyword.type.go | #f0554d | — |
| entity.name.package.go | #6bb55f | — |
| keyword.import.go, keyword.package.go | #D3869B | — |
| entity.name.type.mod.rust | #D4BE98 | — |
| keyword.operator.path.rust, keyword.operator.member-access.rust | #928374 | — |
| storage.type.rust | #ed843e | — |
| support.constant.core.rust | #6bb55f | — |
| meta.attribute.rust, variable.language.rust, storage.type.module.rust | #D3869B | — |
| meta.function-call.swift, support.function.any-method.swift | #D4BE98 | — |
| support.variable.swift | #6bb55f | — |
| keyword.operator.class.php | #D4BE98 | — |
| storage.type.trait.php | #ed843e | — |
| constant.language.php, support.other.namespace.php | #6bb55f | — |
| storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp | #68C2CB | — |
| keyword.control.import.include.php, storage.type.php | #D3869B | — |
| meta.function-call.arguments.python | #D4BE98 | — |
| punctuation.definition.decorator.python, punctuation.separator.period.python | #928374 | — |
| constant.language.python | #6bb55f | — |
| keyword.control.import.python, keyword.control.import.from.python | #D3869B | — |
| constant.language.lua | #6bb55f | — |
| entity.name.class.lua | #68C2CB | — |
| meta.function.method.with-arguments.ruby | #D4BE98 | — |
| punctuation.separator.method.ruby | #928374 | — |
| keyword.control.pseudo-method.ruby, storage.type.variable.ruby | #ed843e | — |
| keyword.other.special-method.ruby | #aabd4a | — |
| keyword.control.module.ruby, punctuation.definition.constant.ruby | #D3869B | — |
| string.regexp.character-class.ruby,string.regexp.interpolated.ruby,punctuation.definition.character-class.ruby,string.regexp.group.ruby, punctuation.section.regexp.ruby, punctuation.definition.group.ruby | #806283 | — |
| variable.other.constant.ruby | #68C2CB | — |
| keyword.other.arrow.haskell, keyword.other.big-arrow.haskell, keyword.other.double-colon.haskell | #ed843e | — |
| storage.type.haskell | #806283 | — |
| constant.other.haskell, string.quoted.double.haskell, string.quoted.single.haskell, punctuation.definition.string.begin.haskell, punctuation.definition.string.end.haskell | #aabd4a | — |
| entity.name.function.haskell | #68C2CB | — |
| entity.name.namespace, entity.name.type.namespace, storage.type.namespace, meta.preprocessor.haskell, entity.name.section.fsharp | #80a0a2 | — |
| keyword.control.import.julia, keyword.control.export.julia | #f0554d | — |
| keyword.storage.modifier.julia | #ed843e | — |
| constant.language.julia | #6bb55f | — |
| support.function.macro.julia | #D3869B | — |
| keyword.other.period.elm | #D4BE98 | — |
| storage.type.elm | #806283 | — |
| keyword.other.r | #ed843e | — |
| entity.name.function.r, variable.function.r | #aabd4a | — |
| constant.language.r | #6bb55f | — |
| entity.namespace.r | #D3869B | — |
| punctuation.separator.module-function.erlang, punctuation.section.directive.begin.erlang | #928374 | — |
| keyword.control.directive.erlang, keyword.control.directive.define.erlang | #f0554d | — |
| entity.name.type.class.module.erlang | #806283 | — |
| string.quoted.double.erlang, string.quoted.single.erlang, punctuation.definition.string.begin.erlang, punctuation.definition.string.end.erlang | #aabd4a | — |
| keyword.control.directive.export.erlang, keyword.control.directive.module.erlang, keyword.control.directive.import.erlang, keyword.control.directive.behaviour.erlang | #D3869B | — |
| variable.other.readwrite.module.elixir, punctuation.definition.variable.elixir | #6bb55f | — |
| constant.language.elixir | #68C2CB | — |
| keyword.control.module.elixir | #D3869B | — |
| entity.name.type.value-signature.ocaml | #D4BE98 | — |
| keyword.other.ocaml | #ed843e | — |
| constant.language.variant.ocaml | #6bb55f | — |
| storage.type.sub.perl, storage.type.declare.routine.perl | #f0554d | — |
| meta.function.lisp | #D4BE98 | — |
| storage.type.function-type.lisp | #f0554d | — |
| keyword.constant.lisp | #aabd4a | — |
| entity.name.function.lisp | #6bb55f | — |
| constant.keyword.clojure, support.variable.clojure, meta.definition.variable.clojure | #aabd4a | — |
| entity.global.clojure | #D3869B | — |
| entity.name.function.clojure | #68C2CB | — |
| meta.scope.if-block.shell, meta.scope.group.shell | #D4BE98 | — |
| support.function.builtin.shell, entity.name.function.shell | #806283 | — |
| string.quoted.double.shell, string.quoted.single.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.unquoted.heredoc.shell | #aabd4a | — |
| keyword.control.heredoc-token.shell, variable.other.normal.shell, punctuation.definition.variable.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell | #D3869B | — |
| support.function.builtin.fish | #f0554d | — |
| support.function.unix.fish | #ed843e | — |
| variable.other.normal.fish, punctuation.definition.variable.fish, variable.other.fixed.fish, variable.other.special.fish | #68C2CB | — |
| string.quoted.double.fish, punctuation.definition.string.end.fish, punctuation.definition.string.begin.fish, string.quoted.single.fish | #aabd4a | — |
| constant.character.escape.single.fish | #D3869B | — |
| punctuation.definition.variable.powershell | #928374 | — |
| entity.name.function.powershell, support.function.attribute.powershell, support.function.powershell | #806283 | — |
| string.quoted.single.powershell, string.quoted.double.powershell, punctuation.definition.string.begin.powershell, punctuation.definition.string.end.powershell, string.quoted.double.heredoc.powershell | #aabd4a | — |
| variable.other.member.powershell | #6bb55f | — |
| string.unquoted.alias.graphql | #D4BE98 | — |
| keyword.type.graphql | #f0554d | — |
| entity.name.fragment.graphql | #D3869B | — |
| entity.name.function.target.makefile | #ed843e | — |
| variable.other.makefile | #806283 | — |
| meta.scope.prerequisites.makefile | #aabd4a | — |
| string.source.cmake | #aabd4a | — |
| entity.source.cmake | #6bb55f | — |
| storage.source.cmake | #D3869B | — |
| punctuation.definition.map.viml | #928374 | — |
| storage.type.map.viml | #ed843e | — |
| constant.character.map.viml, constant.character.map.key.viml | #aabd4a | — |
| constant.character.map.special.viml | #68C2CB | — |
| constant.language.tmux, constant.numeric.tmux | #aabd4a | — |
| entity.name.function.package-manager.dockerfile | #ed843e | — |
| keyword.operator.flag.dockerfile | #806283 | — |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #aabd4a | — |
| constant.character.escape.dockerfile | #6bb55f | — |
| entity.name.type.base-image.dockerfile, entity.name.image.dockerfile | #D3869B | — |
| punctuation.definition.separator.diff | #928374 | — |
| markup.deleted.diff, punctuation.definition.deleted.diff | #f0554d | — |
| meta.diff.range.context, punctuation.definition.range.diff | #ed843e | — |
| meta.diff.header.from-file | #806283 | — |
| markup.inserted.diff, punctuation.definition.inserted.diff | #aabd4a | — |
| markup.changed.diff, punctuation.definition.changed.diff | #68C2CB | — |
| punctuation.definition.from-file.diff | #D3869B | — |
| entity.name.section.group-title.ini, punctuation.definition.entity.ini | #f0554d | — |
| punctuation.separator.key-value.ini | #ed843e | — |
| string.quoted.double.ini, string.quoted.single.ini, punctuation.definition.string.begin.ini, punctuation.definition.string.end.ini | #aabd4a | — |
| keyword.other.definition.ini | #6bb55f | — |
| support.function.aggregate.sql | #806283 | — |
| string.quoted.single.sql, punctuation.definition.string.end.sql, punctuation.definition.string.begin.sql, string.quoted.double.sql | #aabd4a | — |
| support.type.graphql | #806283 | — |
| variable.parameter.graphql | #68C2CB | — |
| constant.character.enum.graphql | #6bb55f | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.separator.dictionary.key-value.json, punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.separator.dictionary.pair.json, punctuation.separator.array.json | #928374 | — |
| support.type.property-name.json | #ed843e | — |
| punctuation.definition.annotation, support.other.annotation, support.other.annotation-name, support.function.builtin, meta.annotation, meta.builtin, entity.name.function.macro | #DFC059 | — |
| meta.attribute | #D3869B | — |
| string.quoted.double.json | #aabd4a | — |
| punctuation.separator.key-value.mapping.yaml | #928374 | — |
| string.unquoted.plain.out.yaml, string.quoted.single.yaml, string.quoted.double.yaml, punctuation.definition.string.begin.yaml, punctuation.definition.string.end.yaml, string.unquoted.plain.in.yaml, string.unquoted.block.yaml | #aabd4a | — |
| punctuation.definition.anchor.yaml, punctuation.definition.block.sequence.item.yaml | #6bb55f | — |
| keyword.key.toml | #ed843e | — |
| string.quoted.single.basic.line.toml, string.quoted.single.literal.line.toml, punctuation.definition.keyValuePair.toml | #aabd4a | — |
| support.type.property-name.table.toml | #D96A82 | — |
| support.type.property-name.array.toml | #D3869B | — |
| constant.other.time.toml | #806283 | — |
| constant.other.boolean.toml | #68C2CB | — |
| entity.other.attribute-name.table.toml, punctuation.definition.table.toml, entity.other.attribute-name.table.array.toml, punctuation.definition.table.array.toml | #D3869B | — |
| punctuation.definition.lifetime.rust, entity.name.type.lifetime.rust | #ED843E | |
| comment, string.comment, punctuation.definition.comment | #6d655e | — |
| comment.block.documentation | — | bold |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}