Forest All-Nighter
Publisher: huytdThemes in package: 1
Based on Forest Night with higher constrast
Based on Forest Night with higher constrast
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 |
|---|---|---|
| storage.type.function.arrow, keyword.other.arrow | — | regular |
| keyword, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.property, keyword.operator.new, keyword.operator.expression, keyword.operator.new, keyword.operator.delete, storage.type.extends | #E68183 | — |
| keyword.other.debugger | #E68183 | — |
| storage, modifier, keyword.var, entity.name.tag, keyword.control.case, keyword.control.switch | #E39B7B | — |
| keyword.operator | #E39B7B | — |
| string, punctuation.definition.string.end, punctuation.definition.string.begin, punctuation.definition.string.template.begin, punctuation.definition.string.template.end | #D9BB80 | — |
| entity.other.attribute-name | #D9BB80 | — |
| constant.character.escape, punctuation.quasi.element, punctuation.definition.template-expression, punctuation.section.embedded, storage.type.format, constant.other.placeholder, constant.other.placeholder, variable.interpolation | #A7C080 | — |
| entity.name.function, support.function, meta.function, meta.function-call, entity.name.function, meta.definition.method | #A7C080 | — |
| keyword.control.at-rule, keyword.control.import, keyword.control.export, storage.type.namespace, punctuation.decorator, keyword.control.directive, keyword.preprocessor, punctuation.definition.preprocessor, punctuation.definition.directive, keyword.other.import, keyword.other.package, entity.name.type.namespace, entity.name.scope-resolution, keyword.other.using, keyword.package, keyword.import, keyword.map | #87C095 | — |
| storage.type.annotation | #87C095 | — |
| entity.name.label, constant.other.label | #87C095 | — |
| support.module, support.node, support.other.module, support.type.object.module, entity.name.type.module, entity.name.type.class.module, keyword.control.module | #87C095 | — |
| storage.type, support.type, entity.name.type, keyword.type | #83B6AF | — |
| entity.name.type.class, support.class, entity.name.class, entity.other.inherited-class, storage.class | #83B6AF | — |
| constant.numeric | #D39BB6 | — |
| constant.language.boolean | #D39BB6 | — |
| entity.name.function.preprocessor | #D39BB6 | — |
| variable.language.this, variable.language.self, variable.language.super, keyword.other.this, variable.language.special, constant.language.null, constant.language.undefined, constant.language.nan | #D39BB6 | — |
| constant.language, support.constant | #D39BB6 | — |
| variable, support.variable, meta.definition.variable | #D8CAAC | — |
| variable.object.property, support.variable.property, variable.other.property, variable.other.object.property, variable.other.enummember, variable.other.member, meta.object-literal.key | #D8CAAC | — |
| punctuation, meta.brace, meta.delimiter, meta.bracket | #D8CAAC | — |
| heading.1.markdown, markup.heading.setext.1.markdown | #E68183 | bold |
| heading.2.markdown, markup.heading.setext.2.markdown | #E39B7B | bold |
| heading.3.markdown | #D9BB80 | bold |
| heading.4.markdown | #A7C080 | bold |
| heading.5.markdown | #83B6AF | bold |
| heading.6.markdown | #D39BB6 | bold |
| punctuation.definition.heading.markdown | #868D80 | regular |
| string.other.link.title.markdown, constant.other.reference.link.markdown, string.other.link.description.markdown | #D39BB6 | regular |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #A7C080 | 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 | #868D80 | — |
| punctuation.definition.bold.markdown | #868D80 | regular |
| meta.separator.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown | #868D80 | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.bold markup.italic, markup.italic markup.bold | — | italic bold |
| punctuation.definition.markdown, punctuation.definition.raw.markdown | #D9BB80 | — |
| fenced_code.block.language | #D9BB80 | — |
| markup.fenced_code.block.markdown, markup.inline.raw.string.markdown | #A7C080 | — |
| punctuation.definition.list.begin.markdown | #E68183 | — |
| punctuation.definition.function.latex, punctuation.definition.function.tex, punctuation.definition.keyword.latex, constant.character.newline.tex, punctuation.definition.keyword.tex | #868D80 | — |
| support.function.be.latex | #E68183 | — |
| support.function.section.latex, keyword.control.table.cell.latex, keyword.control.table.newline.latex | #E39B7B | — |
| support.class.latex, variable.parameter.latex, variable.parameter.function.latex, variable.parameter.definition.label.latex, constant.other.reference.label.latex | #D9BB80 | — |
| keyword.control.preamble.latex | #D39BB6 | — |
| punctuation.separator.namespace.xml | #868D80 | — |
| entity.name.tag.html, entity.name.tag.xml, entity.name.tag.localname.xml | #E39B7B | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.localname.xml | #D9BB80 | — |
| 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 | #A7C080 | — |
| variable.language.documentroot.xml, meta.tag.sgml.doctype.xml | #D39BB6 | — |
| storage.type.proto | #D9BB80 | — |
| string.quoted.double.proto.syntax, string.quoted.single.proto.syntax, string.quoted.double.proto, string.quoted.single.proto | #A7C080 | — |
| entity.name.class.proto, entity.name.class.message.proto | #87C095 | — |
| punctuation.definition.entity.css, punctuation.separator.key-value.css, punctuation.terminator.rule.css, punctuation.separator.list.comma.css | #868D80 | — |
| entity.other.attribute-name.class.css | #E68183 | — |
| keyword.other.unit | #E39B7B | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #D9BB80 | — |
| 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 | #A7C080 | — |
| support.type.property-name.css | #87C095 | — |
| support.type.vendored.property-name.css | #83B6AF | — |
| entity.name.tag.css, entity.other.keyframe-offset.css, punctuation.definition.keyword.css, keyword.control.at-rule.keyframes.css, meta.selector.css | #D39BB6 | — |
| punctuation.definition.keyword.scss, punctuation.separator.key-value.scss | #868D80 | — |
| keyword.control.at-rule.keyframes.scss | #E39B7B | — |
| punctuation.definition.interpolation.begin.bracket.curly.scss, punctuation.definition.interpolation.end.bracket.curly.scss | #D9BB80 | — |
| 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 | #A7C080 | — |
| 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 | #D39BB6 | — |
| meta.function.stylus | #D8CAAC | — |
| entity.name.function.stylus | #D9BB80 | — |
| string.unquoted.js | #D8CAAC | — |
| punctuation.accessor.js, punctuation.separator.key-value.js, punctuation.separator.label.js | #868D80 | — |
| punctuation.definition.block.tag.jsdoc | #E68183 | — |
| storage.type.js, storage.type.function.arrow.js | #E39B7B | — |
| JSXNested | #D8CAAC | — |
| 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 | #A7C080 | — |
| entity.name.type.module.ts | #D8CAAC | — |
| keyword.operator.type.annotation.ts, punctuation.accessor.ts, punctuation.separator.key-value.ts | #868D80 | — |
| punctuation.definition.tag.directive.ts, entity.other.attribute-name.directive.ts | #A7C080 | — |
| 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 | #87C095 | — |
| storage.type.ts, storage.type.function.arrow.ts, storage.type.type.ts | #E39B7B | — |
| entity.name.type.module.ts | #83B6AF | — |
| keyword.control.import.ts, keyword.control.export.ts, storage.type.namespace.ts | #D39BB6 | — |
| entity.name.type.module.tsx | #D8CAAC | — |
| keyword.operator.type.annotation.tsx, punctuation.accessor.tsx, punctuation.separator.key-value.tsx | #868D80 | — |
| 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 | #A7C080 | — |
| 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 | #87C095 | — |
| entity.name.type.module.tsx | #83B6AF | — |
| keyword.control.import.tsx, keyword.control.export.tsx, storage.type.namespace.tsx | #D39BB6 | — |
| storage.type.tsx, storage.type.function.arrow.tsx, storage.type.type.tsx, support.class.component.tsx | #E39B7B | — |
| storage.type.function.coffee | #E39B7B | — |
| meta.type-signature.purescript | #D8CAAC | — |
| keyword.other.double-colon.purescript, keyword.other.arrow.purescript, keyword.other.big-arrow.purescript | #E39B7B | — |
| entity.name.function.purescript | #D9BB80 | — |
| 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 | #A7C080 | — |
| support.other.module.purescript | #D39BB6 | — |
| punctuation.dot.dart | #868D80 | — |
| storage.type.primitive.dart | #E39B7B | — |
| support.class.dart | #D9BB80 | — |
| entity.name.function.dart, string.interpolated.single.dart, string.interpolated.double.dart | #A7C080 | — |
| variable.language.dart | #83B6AF | — |
| keyword.other.import.dart, storage.type.annotation.dart | #D39BB6 | — |
| entity.other.attribute-name.class.pug | #E68183 | — |
| storage.type.function.pug | #E39B7B | — |
| entity.other.attribute-name.tag.pug | #87C095 | — |
| entity.name.tag.pug, storage.type.import.include.pug | #D39BB6 | — |
| meta.function-call.c, storage.modifier.array.bracket.square.c, meta.function.definition.parameters.c | #D8CAAC | — |
| keyword.control.switch.c, keyword.control.case.c | #E68183 | — |
| storage.type.built-in.primitive.c, storage.type.built-in.c, storage.type.struct.c | #E39B7B | — |
| keyword.operator.sizeof.c, string.quoted.other.lt-gt.include.c, string.quoted.double.include.c | #A7C080 | — |
| keyword.operator.logical.c, keyword.operator.increment.c, keyword.operator.c, keyword.operator.decrement.c, keyword.operator.assignment.c, keyword.operator.bitwise.shift.c, keyword.operator.comparison.c, keyword.operator.assignment.compound.c, keyword.operator.ternary.c, variable.other.member.c | #87C095 | — |
| constant.language.c, storage.modifier.c | #83B6AF | — |
| 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 | #D39BB6 | — |
| meta.function-call.cpp, storage.modifier.array.bracket.square.cpp, meta.body.function.definition.cpp | #D8CAAC | — |
| punctuation.separator.scope-resolution.function.call.cpp, punctuation.separator.scope-resolution.cpp, punctuation.separator.scope-resolution.parameter.cpp, punctuation.separator.scope-resolution.constructor.cpp, punctuation.separator.scope-resolution.function.definition.cpp, punctuation.separator.scope-resolution.destructor.cpp, punctuation.separator.scope-resolution.template.call.cpp | #868D80 | — |
| keyword.control.switch.cpp, keyword.control.case.cpp | #E68183 | — |
| storage.type.built-in.primitive.cpp, storage.type.built-in.cpp, storage.type.struct.cpp, entity.name.type.cpp, entity.name.type.parameter.cpp | #E39B7B | — |
| entity.name.type.cpp, entity.name.type.parameter.cpp, storage.type.built-in.cpp, storage.type.built-in.primitive.cpp, constant.other.placeholder.cpp, constant.character.escape.cpp | #D9BB80 | — |
| keyword.operator.sizeof.cpp, string.quoted.other.lt-gt.include.cpp, string.quoted.double.include.cpp, string.quoted.double.cpp, string.quoted.single.cpp, punctuation.definition.string.begin.cpp, punctuation.definition.string.end.cpp | #A7C080 | — |
| entity.name.scope-resolution, entity.name.namespace.cpp | #87C095 | — |
| storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp | #83B6AF | — |
| entity.name.type.class.cpp, keyword.control.directive.include.cpp, punctuation.definition.directive.cpp, keyword.control.directive.pragma.cpp, keyword.control.directive.line.cpp, storage.type.namespace.definition.cpp, keyword.other.using.directive.cpp, storage.type.namespace.directive.cpp, entity.name.label.cpp, keyword.control.directive.diagnostic.error.cpp, keyword.control.directive.define.cpp | #D39BB6 | — |
| keyword.other.using.cs | #E68183 | — |
| keyword.type.cs, constant.character.escape.cs, punctuation.definition.interpolation.begin.cs, punctuation.definition.interpolation.end.cs | #D9BB80 | — |
| string.quoted.double.cs, string.quoted.single.cs, punctuation.definition.string.begin.cs, punctuation.definition.string.end.cs | #A7C080 | — |
| variable.other.object.property.cs | #87C095 | — |
| entity.name.type.namespace.cs | #D39BB6 | — |
| keyword.symbol.fsharp, constant.language.unit.fsharp | #D8CAAC | — |
| keyword.format.specifier.fsharp, entity.name.type.fsharp | #D9BB80 | — |
| string.quoted.double.fsharp, string.quoted.single.fsharp, punctuation.definition.string.begin.fsharp, punctuation.definition.string.end.fsharp | #A7C080 | — |
| entity.name.section.fsharp | #83B6AF | — |
| support.function.attribute.fsharp | #D39BB6 | — |
| punctuation.separator.java, punctuation.separator.period.java | #868D80 | — |
| keyword.other.import.java, keyword.other.package.java | #E68183 | — |
| storage.type.function.arrow.java, keyword.control.ternary.java | #E39B7B | — |
| variable.other.property.java | #87C095 | — |
| 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 | #D39BB6 | — |
| keyword.other.import.kotlin | #E68183 | — |
| storage.type.kotlin | #E39B7B | — |
| constant.language.kotlin | #87C095 | — |
| entity.name.package.kotlin, storage.type.annotation.kotlin | #D39BB6 | — |
| entity.name.package.scala | #D39BB6 | — |
| constant.language.scala | #83B6AF | — |
| entity.name.import.scala | #87C095 | — |
| 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 | #A7C080 | — |
| entity.name.class, entity.other.inherited-class.scala | #D9BB80 | — |
| keyword.declaration.stable.scala, keyword.other.arrow.scala | #E39B7B | — |
| keyword.other.import.scala | #E68183 | — |
| keyword.operator.navigation.groovy, meta.method.body.java, meta.definition.method.groovy, meta.definition.method.signature.java | #D8CAAC | — |
| punctuation.separator.groovy | #868D80 | — |
| keyword.other.import.groovy, keyword.other.package.groovy, keyword.other.import.static.groovy | #E68183 | — |
| storage.type.def.groovy | #E39B7B | — |
| variable.other.interpolated.groovy, meta.method.groovy | #A7C080 | — |
| storage.modifier.import.groovy, storage.modifier.package.groovy | #87C095 | — |
| storage.type.annotation.groovy | #D39BB6 | — |
| keyword.type.go | #E68183 | — |
| entity.name.package.go | #87C095 | — |
| keyword.import.go, keyword.package.go | #D39BB6 | — |
| entity.name.type.mod.rust | #D8CAAC | — |
| keyword.operator.path.rust, keyword.operator.member-access.rust | #868D80 | — |
| storage.type.rust | #E39B7B | — |
| support.constant.core.rust | #87C095 | — |
| meta.attribute.rust, variable.language.rust, storage.type.module.rust | #D39BB6 | — |
| meta.function-call.swift, support.function.any-method.swift | #D8CAAC | — |
| support.variable.swift | #87C095 | — |
| keyword.operator.class.php | #D8CAAC | — |
| storage.type.trait.php | #E39B7B | — |
| constant.language.php, support.other.namespace.php | #87C095 | — |
| storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.private.cpp | #83B6AF | — |
| keyword.control.import.include.php, storage.type.php | #D39BB6 | — |
| meta.function-call.arguments.python | #D8CAAC | — |
| punctuation.definition.decorator.python, punctuation.separator.period.python | #868D80 | — |
| constant.language.python | #87C095 | — |
| keyword.control.import.python, keyword.control.import.from.python | #D39BB6 | — |
| constant.language.lua | #87C095 | — |
| entity.name.class.lua | #83B6AF | — |
| punctuation.separator.method.ruby | #868D80 | — |
| keyword.control.pseudo-method.ruby | #E39B7B | — |
| keyword.other.special-method.ruby | #A7C080 | — |
| keyword.control.module.ruby | #D39BB6 | — |
| keyword.other.arrow.haskell, keyword.other.big-arrow.haskell, keyword.other.double-colon.haskell | #E39B7B | — |
| storage.type.haskell | #D9BB80 | — |
| constant.other.haskell, string.quoted.double.haskell, string.quoted.single.haskell, punctuation.definition.string.begin.haskell, punctuation.definition.string.end.haskell | #A7C080 | — |
| entity.name.function.haskell | #83B6AF | — |
| entity.name.namespace, meta.preprocessor.haskell | #87C095 | — |
| keyword.other.r | #E39B7B | — |
| entity.name.function.r, variable.function.r | #A7C080 | — |
| constant.language.r | #87C095 | — |
| entity.namespace.r | #D39BB6 | — |
| punctuation.separator.module-function.erlang, punctuation.section.directive.begin.erlang | #868D80 | — |
| keyword.control.directive.erlang, keyword.control.directive.define.erlang | #E68183 | — |
| entity.name.type.class.module.erlang | #D9BB80 | — |
| string.quoted.double.erlang, string.quoted.single.erlang, punctuation.definition.string.begin.erlang, punctuation.definition.string.end.erlang | #A7C080 | — |
| keyword.control.directive.export.erlang, keyword.control.directive.module.erlang, keyword.control.directive.import.erlang, keyword.control.directive.behaviour.erlang | #D39BB6 | — |
| variable.other.readwrite.module.elixir, punctuation.definition.variable.elixir | #87C095 | — |
| constant.language.elixir | #83B6AF | — |
| keyword.control.module.elixir | #D39BB6 | — |
| entity.name.type.value-signature.ocaml | #D8CAAC | — |
| keyword.other.ocaml | #E39B7B | — |
| constant.language.variant.ocaml | #87C095 | — |
| meta.function.lisp | #D8CAAC | — |
| storage.type.function-type.lisp | #E68183 | — |
| keyword.constant.lisp | #A7C080 | — |
| entity.name.function.lisp | #87C095 | — |
| constant.keyword.clojure | #A7C080 | — |
| entity.global.clojure | #D39BB6 | — |
| entity.name.function.clojure | #83B6AF | — |
| meta.scope.if-block.shell, meta.scope.group.shell | #D8CAAC | — |
| support.function.builtin.shell, entity.name.function.shell | #D9BB80 | — |
| string.quoted.double.shell, string.quoted.single.shell, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell, string.unquoted.heredoc.shell | #A7C080 | — |
| 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 | #D39BB6 | — |
| punctuation.definition.variable.powershell | #868D80 | — |
| entity.name.function.powershell, support.function.attribute.powershell, support.function.powershell | #D9BB80 | — |
| string.quoted.single.powershell, string.quoted.double.powershell, punctuation.definition.string.begin.powershell, punctuation.definition.string.end.powershell, string.quoted.double.heredoc.powershell | #A7C080 | — |
| variable.other.member.powershell | #87C095 | — |
| string.unquoted.alias.graphql | #D8CAAC | — |
| keyword.type.graphql | #E68183 | — |
| entity.name.fragment.graphql | #D39BB6 | — |
| entity.name.function.target.makefile | #E39B7B | — |
| variable.other.makefile | #D9BB80 | — |
| meta.scope.prerequisites.makefile | #A7C080 | — |
| string.source.cmake | #A7C080 | — |
| entity.source.cmake | #87C095 | — |
| storage.source.cmake | #D39BB6 | — |
| entity.name.function.package-manager.dockerfile | #E39B7B | — |
| keyword.operator.flag.dockerfile | #D9BB80 | — |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #A7C080 | — |
| constant.character.escape.dockerfile | #87C095 | — |
| entity.name.type.base-image.dockerfile, entity.name.image.dockerfile | #D39BB6 | — |
| punctuation.definition.separator.diff | #868D80 | — |
| markup.deleted.diff, punctuation.definition.deleted.diff | #E68183 | — |
| meta.diff.range.context, punctuation.definition.range.diff | #E39B7B | — |
| meta.diff.header.from-file | #D9BB80 | — |
| markup.inserted.diff, punctuation.definition.inserted.diff | #A7C080 | — |
| markup.changed.diff, punctuation.definition.changed.diff | #83B6AF | — |
| punctuation.definition.from-file.diff | #D39BB6 | — |
| entity.name.section.group-title.ini, punctuation.definition.entity.ini | #E68183 | — |
| punctuation.separator.key-value.ini | #E39B7B | — |
| string.quoted.double.ini, string.quoted.single.ini, punctuation.definition.string.begin.ini, punctuation.definition.string.end.ini | #A7C080 | — |
| keyword.other.definition.ini | #87C095 | — |
| 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 | #868D80 | — |
| support.type.property-name.json | #E39B7B | — |
| string.quoted.double.json | #A7C080 | — |
| punctuation.separator.key-value.mapping.yaml | #868D80 | — |
| 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 | #A7C080 | — |
| punctuation.definition.anchor.yaml, punctuation.definition.block.sequence.item.yaml | #87C095 | — |
| keyword.key.toml | #E39B7B | — |
| string.quoted.single.basic.line.toml, string.quoted.single.literal.line.toml, punctuation.definition.keyValuePair.toml | #A7C080 | — |
| constant.other.boolean.toml | #83B6AF | — |
| entity.other.attribute-name.table.toml, punctuation.definition.table.toml, entity.other.attribute-name.table.array.toml, punctuation.definition.table.array.toml | #D39BB6 | — |
| comment, string.comment, punctuation.definition.comment | #868D80 | — |
| 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}!`;
}