Night Owl Colorful HTML
Publisher: SakataThemes in package: 4
A theme is based on Night Owl with more colors in the HTML tags.
A theme is based on Night Owl with more colors in the HTML tags.
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 |
|---|---|---|
| markup.changed, meta.diff.header.git, meta.diff.header.from-file, meta.diff.header.to-file | #a2bffc | italic |
| markup.deleted.diff | #EF535090 | italic |
| markup.inserted.diff | #4876d6ff | italic |
| Global settings | #403f53 | — |
| comment | #989fb1 | italic |
| string | #4876d6 | — |
| string.quoted, variable.other.readwrite.js | #c96765 | — |
| support.constant.math | #4876d6 | — |
| constant.numeric, constant.character.numeric | #aa0982 | |
| constant.language, punctuation.definition.constant, variable.other.constant | #4876d6 | — |
| constant.character, constant.other | #4876d6 | — |
| constant.character.escape | #aa0982 | — |
| string.regexp, string.regexp keyword.other | #5ca7e4 | — |
| meta.function punctuation.separator.comma | #5f7e97 | — |
| variable | #4876d6 | — |
| punctuation.accessor, keyword | #994cc3 | italic |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx | #994cc3 | italic |
| storage.type | #994cc3 | — |
| storage.type.function.arrow.js | — | |
| entity.name.class, meta.class entity.name.type.class | #111111 | — |
| entity.other.inherited-class | #4876d6 | — |
| entity.name.function | #994cc3 | italic |
| punctuation.definition.tag, meta.tag | #994cc3 | — |
| entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #994cc3 | |
| entity.other.attribute-name | #4876d6 | italic |
| entity.name.tag.custom | #4876d6 | — |
| support.function, support.constant | #4876d6 | — |
| support.constant.meta.property-value | #0c969b | — |
| support.type, support.class | #4876d6 | — |
| support.variable.dom | #4876d6 | — |
| invalid | #ff2c83 | — |
| invalid.deprecated | #d3423e | — |
| keyword.operator | #0c969b | |
| keyword.operator.relational | #994cc3 | italic |
| keyword.operator.assignment | #994cc3 | — |
| keyword.operator.arithmetic | #994cc3 | — |
| keyword.operator.bitwise | #994cc3 | — |
| keyword.operator.increment | #994cc3 | — |
| keyword.operator.ternary | #994cc3 | — |
| comment.line.double-slash | #939dbb | — |
| object | #cdebf7 | — |
| constant.language.null | #bc5454 | — |
| meta.brace | #403f53 | — |
| meta.delimiter.period | #994cc3 | italic |
| punctuation.definition.string | #111111 | — |
| punctuation.definition.string.begin.markdown | #bc5454 | — |
| constant.language.boolean | #bc5454 | — |
| object.comma | #ffffff | — |
| variable.parameter.function | #0c969b | |
| support.type.vendor.property-name, support.constant.vendor.property-value, support.type.property-name, meta.property-list entity.name.tag | #0c969b | |
| meta.property-list entity.name.tag.reference | #57eaf1 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #aa0982 | — |
| constant.other.color | #aa0982 | — |
| keyword.other.unit | #aa0982 | — |
| meta.selector | #994cc3 | italic |
| entity.other.attribute-name.id | #aa0982 | — |
| meta.property-name | #0c969b | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #994cc3 | italic |
| punctuation.definition.parameters | #111111 | — |
| keyword.control.operator | #0c969b | — |
| keyword.operator.logical | #994cc3 | |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #0c969b | — |
| variable.other.object.property | #111111 | italic |
| variable.other.object.js | — | |
| entity.name.function | #4876d6 | italic |
| keyword.operator.comparison, keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.import.js, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.ts, keyword.control.from.tsx, keyword.operator.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #994cc3 | italic |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.switch.js, keyword.control.switch.ts | #994cc3 | |
| support.constant, keyword.other.special-method, keyword.other.new, keyword.other.debugger, keyword.control | #0c969b | — |
| support.function | #4876d6 | — |
| invalid.broken | #aa0982 | — |
| invalid.unimplemented | #8BD649 | — |
| invalid.illegal | #c96765 | — |
| variable.language | #0c969b | — |
| support.variable.property | #0c969b | — |
| variable.function | #4876d6 | — |
| variable.interpolation | #ec5f67 | — |
| meta.function-call | #4876d6 | — |
| punctuation.section.embedded | #d3423e | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #403f53 | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #111111 | — |
| string.template meta.template.expression | #d3423e | — |
| string.template punctuation.definition.string | #403f53 | — |
| italic | #994cc3 | italic |
| bold | #4876d6 | bold |
| quote | #697098 | italic |
| raw | #0c969b | — |
| variable.assignment.coffee | #31e1eb | — |
| variable.parameter.function.coffee | #403f53 | — |
| variable.assignment.coffee | #0c969b | — |
| variable.other.readwrite.cs | #403f53 | — |
| entity.name.type.class.cs, storage.type.cs | #4876d6 | — |
| entity.name.type.namespace.cs | #0c969b | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css, support.constant.property-value.css | #c96765 | |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #0c969b | — |
| keyword.other.unit.css | #4876d6 | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute, variable.other.readwrite.js | #aa0982 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #4876d6 | — |
| source.elixir entity.name.function | #4876d6 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #4876d6 | — |
| source.elixir punctuation.definition.string | #4876d6 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #4876d6 | — |
| source.elixir .punctuation.binary.elixir | #994cc3 | italic |
| constant.keyword.clojure | #0c969b | — |
| source.go meta.function-call.go | #0c969b | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.struct.go, source.go keyword.interface.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #994cc3 | italic |
| source.go constant.language.go, source.go constant.other.placeholder.go | #bc5454 | — |
| entity.name.function.preprocessor.cpp, entity.scope.name.cpp | #0c969bff | — |
| meta.namespace-block.cpp | #111111 | — |
| storage.type.language.primitive.cpp | #bc5454 | — |
| meta.preprocessor.macro.cpp | #403f53 | — |
| variable.parameter | #111111 | — |
| variable.other.readwrite.powershell | #4876d6 | — |
| support.function.powershell | #0c969bff | — |
| entity.other.attribute-name.id.html | #4876d6 | — |
| punctuation.definition.tag.html | #994cc3 | — |
| meta.tag.sgml.doctype.html | #994cc3 | italic |
| meta.class entity.name.type.class.js | #111111 | — |
| meta.method.declaration storage.type.js | #4876d6 | — |
| terminator.js | #403f53 | — |
| meta.js punctuation.definition.js | #403f53 | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #5f7e97 | — |
| variable.other.jsdoc, variable.other.phpdoc | #78ccf0 | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #403f53 | — |
| variable.parameter.function.js | #7986E7 | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #403f53 | — |
| variable.js, variable.other.js | #403f53 | — |
| entity.name.type.js, entity.name.type.module.js | #111111 | |
| support.class.js | #403f53 | — |
| support.type.property-name.json | #0c969b | — |
| support.constant.json | #4876d6 | — |
| meta.structure.dictionary.value.json string.quoted.double | #c789d6 | — |
| string.quoted.double.json punctuation.definition.string.json | #0c969b | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #bc5454 | — |
| variable.other.object.js | #0c969b | italic |
| variable.other.ruby | #403f53 | — |
| entity.name.type.class.ruby | #c96765 | — |
| constant.language.symbol.hashkey.ruby | #0c969b | — |
| constant.language.symbol.ruby | #0c969b | — |
| entity.name.tag.less | #994cc3 | — |
| keyword.other.unit.css | #0c969b | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #aa0982 | — |
| markup.heading.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #4876d6 | — |
| markup.italic.markdown | #994cc3 | italic |
| markup.bold.markdown | #4876d6 | bold |
| markup.quote.markdown | #697098 | italic |
| markup.inline.raw.markdown | #0c969b | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #ff869a | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #403f53 | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #4876d6 | — |
| punctuation.definition.metadata.markdown | #0c969b | — |
| beginning.punctuation.definition.list.markdown | #4876d6 | — |
| markup.inline.raw.string.markdown | #4876d6 | — |
| variable.other.php, variable.other.property.php | #111111 | — |
| support.class.php | #111111 | — |
| meta.function-call.php punctuation | #403f53 | — |
| variable.other.global.php | #4876d6 | — |
| variable.other.global.php punctuation.definition.variable | #4876d6 | — |
| constant.language.python | #bc5454 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #4876d6 | — |
| meta.function-call.python, meta.function-call.generic.python | #0c969b | — |
| punctuation.python | #403f53 | — |
| entity.name.function.decorator.python | #4876d6 | — |
| source.python variable.language.special | #aa0982 | — |
| keyword.control | #994cc3 | italic |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #4876d6 | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #4876d6 | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #111111 | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #aa0982 | — |
| entity.name.tag.scss, entity.name.tag.sass | #0c969b | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #994cc3 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #403f53 | — |
| entity.name.type.ts, entity.name.type.tsx | #111111 | — |
| support.class.node.ts, support.class.node.tsx | #4876d6 | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #5f7e97 | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #403f53 | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #4876d6 | — |
| meta.tag.js meta.jsx.children.tsx | #4876d6 | — |
| entity.name.tag.yaml | #111111 | — |
| variable.other.readwrite.js, variable.parameter | #403f53 | — |
| support.class.component.js, support.class.component.tsx | #aa0982 | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #403f53 | — |
| meta.class entity.name.type.class.tsx | #111111 | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #111111 | — |
| meta.class.ts meta.var.expr.ts storage.type.ts, meta.class.tsx meta.var.expr.tsx storage.type.tsx | #994CC3 | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #4876d6 | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, meta.brace, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.relational, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.type, keyword.operator, keyword, punctuation.definintion.string, punctuation, variable.other.readwrite.js, storage.type, source.css, string.quoted | — | |
| meta.tag.metadata.link entity.name.tag, meta.tag.metadata.link punctuation.definition.tag, meta.tag.inline.a entity.name.tag, meta.tag.inline.a punctuation.definition.tag, meta.attribute.href entity.other.attribute-name, meta.attribute.target entity.other.attribute-name, meta.attribute.rel entity.other.attribute-name, meta.scope.tag.a entity.name.tag, meta.scope.tag.a punctuation.definition.tag | #008800 | — |
| meta.attribute.unrecognized.property entity.other.attribute-name, meta.tag.inline.br entity.name.tag, meta.tag.inline.br punctuation.definition.tag, meta.scope.tag.br entity.name.tag, meta.scope.tag.br punctuation.definition.tag, meta.tag.inline.time entity.name.tag, meta.tag.inline.time punctuation.definition.tag, meta.scope.tag.time entity.name.tag, meta.scope.tag.time punctuation.definition.tag, meta.attribute.unrecognized.datatime entity.other.attribute-name, meta.tag.inline.cite entity.name.tag, meta.tag.inline.cite punctuation.definition.tag, meta.scope.tag.cite entity.name.tag, meta.scope.tag.cite punctuation.definition.tag, meta.tag.inline.u entity.name.tag, meta.tag.inline.u punctuation.definition.tag, meta.scope.tag.u entity.name.tag, meta.scope.tag.u punctuation.definition.tag, meta.tag.structure.address entity.name.tag, meta.tag.structure.address punctuation.definition.tag, meta.scope.tag.address entity.name.tag, meta.scope.tag.address punctuation.definition.tag, meta.tag.structure.meter entity.name.tag, meta.tag.structure.meter punctuation.definition.tag, meta.scope.tag.meter entity.name.tag, meta.scope.tag.meter punctuation.definition.tag | #697b3a | — |
| meta.tag.structure.head entity.name.tag, meta.tag.structure.head punctuation.definition.tag, meta.scope.tag.head entity.name.tag, meta.scope.tag.head punctuation.definition.tag, meta.tag.metadata.noscript entity.name.tag, meta.tag.metadata.noscript punctuation.definition.tag, meta.scope.tag.noscript entity.name.tag, meta.scope.tag.noscript punctuation.definition.tag, meta.tag.structure.label entity.name.tag, meta.tag.structure.label punctuation.definition.tag, meta.scope.tag.label entity.name.tag, meta.scope.tag.label punctuation.definition.tag, meta.attribute.for entity.other.attribute-name, meta.tag.structure.article entity.name.tag, meta.tag.structure.article punctuation.definition.tag, meta.scope.tag.article entity.name.tag, meta.scope.tag.article punctuation.definition.tag, meta.tag.structure.section entity.name.tag, meta.tag.structure.section punctuation.definition.tag, meta.scope.tag.section entity.name.tag, meta.scope.tag.section punctuation.definition.tag, meta.tag.object.path entity.name.tag, meta.tag.object.path punctuation.definition.tag, meta.scope.tag.path entity.name.tag, meta.scope.tag.path punctuation.definition.tag, meta.element.object.svg.path entity.name.tag, meta.element.object.svg.path punctuation.definition.tag, meta.tag.inline.s entity.name.tag, meta.tag.inline.s punctuation.definition.tag, meta.scope.tag.s entity.name.tag, meta.scope.tag.s punctuation.definition.tag, meta.tag.inline.samp entity.name.tag, meta.tag.inline.samp punctuation.definition.tag, meta.scope.tag.samp entity.name.tag, meta.scope.tag.samp punctuation.definition.tag, meta.tag.inline.sub entity.name.tag, meta.tag.inline.sub punctuation.definition.tag, meta.scope.tag.sub entity.name.tag, meta.scope.tag.sub punctuation.definition.tag, meta.tag.inline.code entity.name.tag, meta.tag.inline.code punctuation.definition.tag, meta.scope.tag.code entity.name.tag, meta.scope.tag.code punctuation.definition.tag, meta.tag.structure.dialog entity.name.tag, meta.tag.structure.dialog punctuation.definition.tag, meta.scope.tag.dialog entity.name.tag, meta.scope.tag.dialog punctuation.definition.tag, meta.tag.structure.datalist entity.name.tag, meta.tag.structure.datalist punctuation.definition.tag, meta.scope.tag.datalist entity.name.tag, meta.scope.tag.datalist punctuation.definition.tag, meta.tag.structure.colgroup entity.name.tag, meta.tag.structure.colgroup punctuation.definition.tag, meta.scope.tag.colgroup entity.name.tag, meta.scope.tag.colgroup punctuation.definition.tag, meta.tag.structure.figure entity.name.tag, meta.tag.structure.figure punctuation.definition.tag, meta.scope.tag.figure entity.name.tag, meta.scope.tag.figure punctuation.definition.tag, meta.attribute.class entity.other.attribute-name | #4b6176 | — |
| meta.tag.structure.form entity.name.tag, meta.tag.structure.form punctuation.definition.tag, meta.scope.tag.form entity.name.tag, meta.scope.tag.form punctuation.definition.tag, meta.tag.structure.dd entity.name.tag, meta.tag.structure.dd punctuation.definition.tag, meta.scope.tag.dd entity.name.tag, meta.scope.tag.dd punctuation.definition.tag, meta.tag.structure.table entity.name.tag, meta.tag.structure.table punctuation.definition.tag, meta.scope.tag.table entity.name.tag, meta.scope.tag.table punctuation.definition.tag, meta.tag.structure.td entity.name.tag, meta.tag.structure.td punctuation.definition.tag, meta.scope.tag.td entity.name.tag, meta.scope.tag.td punctuation.definition.tag, meta.tag.structure.nav entity.name.tag, meta.tag.structure.nav punctuation.definition.tag, meta.scope.tag.nav entity.name.tag, meta.scope.tag.nav punctuation.definition.tag, meta.tag.structure.h5 entity.name.tag, meta.tag.structure.h5 punctuation.definition.tag, meta.scope.tag.h5 entity.name.tag, meta.scope.tag.h5 punctuation.definition.tag, meta.tag.structure.map entity.name.tag, meta.tag.structure.map punctuation.definition.tag, meta.scope.tag.map entity.name.tag, meta.scope.tag.map punctuation.definition.tag, meta.tag.structure.figcaption entity.name.tag, meta.tag.structure.figcaption punctuation.definition.tag, meta.scope.tag.figcaption entity.name.tag, meta.scope.tag.figcaption punctuation.definition.tag, meta.tag.structure.hr entity.name.tag, meta.tag.structure.hr punctuation.definition.tag, meta.scope.tag.hr entity.name.tag, meta.scope.tag.hr punctuation.definition.tag | #0C969B | — |
| meta.tag.structure.html entity.name.tag, meta.tag.structure.html punctuation.definition.tag, meta.scope.tag.html entity.name.tag, meta.scope.tag.html punctuation.definition.tag, meta.tag.structure.ul entity.name.tag, meta.tag.structure.ul punctuation.definition.tag, meta.scope.tag.ul entity.name.tag, meta.scope.tag.ul punctuation.definition.tag, meta.tag.metadata.meta entity.name.tag, meta.tag.metadata.meta punctuation.definition.tag, meta.tag.void entity.name.tag, meta.tag.void punctuation.definition.tag, meta.tag.structure.select entity.name.tag, meta.tag.structure.select punctuation.definition.tag, meta.scope.tag.select entity.name.tag, meta.scope.tag.select punctuation.definition.tag, meta.tag.object.picture entity.name.tag, meta.tag.object.picture punctuation.definition.tag, meta.scope.tag.picture entity.name.tag, meta.scope.tag.picture punctuation.definition.tag, meta.tag.structure.aside entity.name.tag, meta.tag.structure.aside punctuation.definition.tag, meta.scope.tag.aside entity.name.tag, meta.scope.tag.aside punctuation.definition.tag, meta.tag.object.svg.symbol entity.name.tag, meta.tag.object.svg.symbol punctuation.definition.tag, meta.scope.tag.symbol entity.name.tag, meta.scope.tag.symbol punctuation.definition.tag, meta.tag.structure.thead entity.name.tag, meta.tag.structure.thead punctuation.definition.tag, meta.scope.tag.thead entity.name.tag, meta.scope.tag.thead punctuation.definition.tag, meta.tag.structure.tbody entity.name.tag, meta.tag.structure.tbody punctuation.definition.tag, meta.scope.tag.tbody entity.name.tag, meta.scope.tag.tbody punctuation.definition.tag, meta.tag.structure.tfoot entity.name.tag, meta.tag.structure.tfoot punctuation.definition.tag, meta.scope.tag.tfoot entity.name.tag, meta.scope.tag.tfoot punctuation.definition.tag, meta.tag.structure.h2 entity.name.tag, meta.tag.structure.h2 punctuation.definition.tag, meta.scope.tag.h2 entity.name.tag, meta.scope.tag.h2 punctuation.definition.tag, meta.tag.inline.small entity.name.tag, meta.tag.inline.small punctuation.definition.tag, meta.scope.tag.small entity.name.tag, meta.scope.tag.small punctuation.definition.tag, meta.tag.inline.wbr entity.name.tag, meta.tag.inline.wbr punctuation.definition.tag, meta.tag.inline.rp entity.name.tag, meta.tag.inline.rp punctuation.definition.tag, meta.scope.tag.rp entity.name.tag, meta.scope.tag.rp punctuation.definition.tag, meta.tag.inline.abbr entity.name.tag, meta.tag.inline.abbr punctuation.definition.tag, meta.scope.tag.abbr entity.name.tag, meta.scope.tag.abbr punctuation.definition.tag, meta.tag.inline.ins entity.name.tag, meta.tag.inline.ins punctuation.definition.tag, meta.scope.tag.ins entity.name.tag, meta.scope.tag.ins punctuation.definition.tag, meta.tag.inline.area entity.name.tag, meta.tag.inline.area punctuation.definition.tag, meta.scope.tag.area entity.name.tag, meta.scope.tag.area punctuation.definition.tag, meta.tag.object.track entity.name.tag, meta.tag.object.track punctuation.definition.tag, meta.tag.structure.button entity.name.tag, meta.tag.structure.button punctuation.definition.tag, meta.scope.tag.button entity.name.tag, meta.scope.tag.button punctuation.definition.tag, meta.attribute.unrecognized entity.other.attribute-name, meta.attribute.decoding entity.other.attribute-name, meta.attribute.loading entity.other.attribute-name | #4876D6 | — |
| meta.element.structure.svg entity.name.tag, meta.element.structure.svg punctuation.definition.tag, meta.scope.tag.svg entity.name.tag, meta.scope.tag.svg punctuation.definition.tag, meta.tag.structure.svg entity.name.tag, meta.tag.structure.svg punctuation.definition.tag, meta.scope.tag.svg entity.name.tag, meta.scope.tag.svg punctuation.definition.tag, meta.tag.structure.main entity.name.tag, meta.tag.structure.main punctuation.definition.tag, meta.scope.tag.main entity.name.tag, meta.scope.tag.main punctuation.definition.tag, meta.tag.structure.input entity.name.tag, meta.tag.structure.input punctuation.definition.tag, meta.scope.tag.input entity.name.tag, meta.scope.tag.input punctuation.definition.tag, meta.tag.structure.th entity.name.tag, meta.tag.structure.th punctuation.definition.tag, meta.scope.tag.th entity.name.tag, meta.scope.tag.th punctuation.definition.tag, meta.tag.structure.dt entity.name.tag, meta.tag.structure.dt punctuation.definition.tag, meta.scope.tag.dt entity.name.tag, meta.scope.tag.dt punctuation.definition.tag, meta.tag.structure.ol entity.name.tag, meta.tag.structure.ol punctuation.definition.tag, meta.scope.tag.ol entity.name.tag, meta.scope.tag.ol punctuation.definition.tag, meta.tag.structure.h4 entity.name.tag, meta.tag.structure.h4 punctuation.definition.tag, meta.scope.tag.h4 entity.name.tag, meta.scope.tag.h4 punctuation.definition.tag, meta.tag.inline.del entity.name.tag, meta.tag.inline.del punctuation.definition.tag, meta.scope.tag.del entity.name.tag, meta.scope.tag.del punctuation.definition.tag, meta.tag.inline.site entity.name.tag, meta.tag.inline.site punctuation.definition.tag, meta.scope.tag.site entity.name.tag, meta.scope.tag.site punctuation.definition.tag, meta.tag.inline.b entity.name.tag, meta.tag.inline.b punctuation.definition.tag, meta.scope.tag.b entity.name.tag, meta.scope.tag.b punctuation.definition.tag, meta.tag.object.iframe entity.name.tag, meta.tag.object.iframe punctuation.definition.tag, meta.scope.tag.iframe entity.name.tag, meta.scope.tag.iframe punctuation.definition.tag, meta.tag.inline.i entity.name.tag, meta.tag.inline.i punctuation.definition.tag, meta.scope.tag.i entity.name.tag, meta.scope.tag.i punctuation.definition.tag, meta.attribute.type entity.other.attribute-name | #d76a49 | — |
| meta.tag.structure.div entity.name.tag, meta.tag.structure.div punctuation.definition.tag, meta.scope.tag.div entity.name.tag, meta.scope.tag.div punctuation.definition.tag, meta.tag.structure.svg.g entity.name.tag, meta.tag.structure.svg.g punctuation.definition.tag, meta.scope.tag.g entity.name.tag, meta.scope.tag.g punctuation.definition.tag, meta.tag.structure.option entity.name.tag, meta.tag.structure.option punctuation.definition.tag, meta.scope.tag.option entity.name.tag, meta.scope.tag.option punctuation.definition.tag, meta.tag.inline.mark entity.name.tag, meta.tag.inline.mark punctuation.definition.tag, meta.scope.tag.mark entity.name.tag, meta.scope.tag.mark punctuation.definition.tag, meta.tag.inline.ruby entity.name.tag, meta.tag.inline.ruby punctuation.definition.tag, meta.scope.tag.ruby entity.name.tag, meta.scope.tag.ruby punctuation.definition.tag, meta.tag.inline.dfn entity.name.tag, meta.tag.inline.dfn punctuation.definition.tag, meta.scope.tag.dfn entity.name.tag, meta.scope.tag.dfn punctuation.definition.tag, meta.tag.object.object entity.name.tag, meta.tag.object.object punctuation.definition.tag, meta.scope.tag.object entity.name.tag, meta.scope.tag.object punctuation.definition.tag, entity.name.tag.template.html, entity.name.tag.template punctuation.definition.tag, support.class.component | #cf8a00 | — |
| meta.tag.structure.p entity.name.tag, meta.tag.structure.p punctuation.definition.tag, meta.scope.tag.p entity.name.tag, meta.scope.tag.p punctuation.definition.tag, meta.tag.structure.li entity.name.tag, meta.tag.structure.li punctuation.definition.tag, meta.scope.tag.li entity.name.tag, meta.scope.tag.li punctuation.definition.tag, meta.tag.structure.tr entity.name.tag, meta.tag.structure.tr punctuation.definition.tag, meta.scope.tag.tr entity.name.tag, meta.scope.tag.tr punctuation.definition.tag, meta.tag.structure.pre entity.name.tag, meta.tag.structure.pre punctuation.definition.tag, meta.scope.tag.pre entity.name.tag, meta.scope.tag.pre punctuation.definition.tag, meta.tag.metadata.script entity.name.tag, entity.name.tag.script.html, meta.tag.metadata.script punctuation.definition.tag, meta.scope.tag.script entity.name.tag, meta.scope.tag.script punctuation.definition.tag | #c26563 | — |
| #f6adc3 | — | |
| meta.tag.structure.body entity.name.tag, meta.tag.structure.body punctuation.definition.tag, meta.scope.tag.body entity.name.tag, meta.scope.tag.body punctuation.definition.tag, meta.tag.metadata.doctype entity.name.tag, meta.tag.structure.header entity.name.tag, meta.tag.structure.header punctuation.definition.tag, meta.scope.tag.header entity.name.tag, meta.scope.tag.header punctuation.definition.tag, meta.tag.structure.h6 entity.name.tag, meta.tag.structure.h6 punctuation.definition.tag, meta.scope.tag.h6 entity.name.tag, meta.scope.tag.h6 punctuation.definition.tag, meta.tag.inline.span entity.name.tag, meta.tag.inline.span punctuation.definition.tag, meta.scope.tag.span entity.name.tag, meta.scope.tag.span punctuation.definition.tag, meta.tag.inline.sup entity.name.tag, meta.tag.inline.sup punctuation.definition.tag, meta.scope.tag.sup entity.name.tag, meta.scope.tag.sup punctuation.definition.tag, meta.tag.structure.optgroup entity.name.tag, meta.tag.structure.optgroup punctuation.definition.tag, meta.scope.tag.optgroup entity.name.tag, meta.scope.tag.optgroup punctuation.definition.tag, meta.tag.structure.fieldset entity.name.tag, meta.tag.structure.fieldset punctuation.definition.tag, meta.scope.tag.fieldset entity.name.tag, meta.scope.tag.fieldset punctuation.definition.tag, meta.tag.other.unrecognized entity.name.tag, meta.tag.other.unrecognized punctuation.definition.tag, meta.scope.tag.search entity.name.tag, meta.scope.tag.search punctuation.definition.tag, meta.attribute.data-x entity.other.attribute-name | #986b7b | — |
| meta.tag.inline.strong entity.name.tag, meta.tag.inline.strong punctuation.definition.tag, meta.scope.tag.strong entity.name.tag, meta.scope.tag.strong punctuation.definition.tag, meta.tag.inline.rt entity.name.tag, meta.tag.inline.rt punctuation.definition.tag, meta.scope.tag.rt entity.name.tag, meta.scope.tag.rt punctuation.definition.tag, meta.tag.metadata.title entity.name.tag, meta.tag.metadata.title punctuation.definition.tag, meta.scope.tag.title entity.name.tag, meta.scope.tag.title punctuation.definition.tag, meta.tag.object.source entity.name.tag, meta.tag.object.source punctuation.definition.tag, meta.scope.tag.source entity.name.tag, meta.scope.tag.source punctuation.definition.tag, meta.attribute.srcset entity.other.attribute-name, meta.tag.object.img entity.name.tag, meta.tag.object.img punctuation.definition.tag, meta.tag.object.param entity.name.tag, meta.tag.object.param punctuation.definition.tag, meta.attribute.src entity.other.attribute-name, meta.attribute.alt entity.other.attribute-name, meta.attribute.width entity.other.attribute-name, meta.attribute.height entity.other.attribute-name | #e56cb1 | — |
| meta.tag.metadata.doctype punctuation.definition.tag, meta.scope.tag.!DOCTYPE support.class.component, meta.scope.tag.!DOCTYPE punctuation.definition.tag, meta.tag.structure.details entity.name.tag, meta.tag.structure.details punctuation.definition.tag, meta.scope.tag.details entity.name.tag, meta.scope.tag.details punctuation.definition.tag, meta.tag.structure.textarea entity.name.tag, meta.tag.structure.textarea punctuation.definition.tag, meta.scope.tag.textarea entity.name.tag, meta.scope.tag.textarea punctuation.definition.tag, meta.tag.structure.progress entity.name.tag, meta.tag.structure.progress punctuation.definition.tag, meta.scope.tag.progress entity.name.tag, meta.scope.tag.progress punctuation.definition.tag, meta.tag.structure.h1 entity.name.tag, meta.tag.structure.h1 punctuation.definition.tag, meta.scope.tag.h1 entity.name.tag, meta.scope.tag.h1 punctuation.definition.tag, meta.tag.inline.b entity.name.tag, meta.tag.inline.b punctuation.definition.tag, meta.scope.tag.b entity.name.tag, meta.scope.tag.b punctuation.definition.tag, meta.tag.inline.var entity.name.tag, meta.tag.inline.var punctuation.definition.tag, meta.scope.tag.var entity.name.tag, meta.scope.tag.var punctuation.definition.tag, meta.attribute.style entity.other.attribute-name, meta.tag.metadata.style entity.name.tag, meta.tag.metadata.style punctuation.definition.tag, meta.scope.tag.style entity.name.tag, meta.scope.tag.style punctuation.definition.tag, entity.name.tag.style.html | #c54040 | — |
| meta.tag.structure.dl entity.name.tag, meta.tag.structure.dl punctuation.definition.tag, meta.scope.tag.dl entity.name.tag, meta.scope.tag.dl punctuation.definition.tag, meta.tag.structure.blockquote entity.name.tag, meta.tag.structure.blockquote punctuation.definition.tag, meta.scope.tag.blockquote entity.name.tag, meta.scope.tag.blockquote punctuation.definition.tag, meta.tag.structure.footer entity.name.tag, meta.tag.structure.footer punctuation.definition.tag, meta.scope.tag.footer entity.name.tag, meta.scope.tag.footer punctuation.definition.tag, meta.tag.structure.h3 entity.name.tag, meta.tag.structure.h3 punctuation.definition.tag, meta.scope.tag.h3 entity.name.tag, meta.scope.tag.h3 punctuation.definition.tag, meta.tag.structure.summary entity.name.tag, meta.tag.structure.summary punctuation.definition.tag, meta.scope.tag.summary entity.name.tag, meta.scope.tag.summary punctuation.definition.tag, meta.tag.structure.legend entity.name.tag, meta.tag.structure.legend punctuation.definition.tag, meta.scope.tag.legend entity.name.tag, meta.scope.tag.legend punctuation.definition.tag, meta.element.object.svg entity.name.tag, meta.element.object.svg punctuation.definition.tag, meta.scope.tag.svg entity.name.tag, meta.scope.tag.svg punctuation.definition.tag, meta.tag.object.svg entity.name.tag, meta.tag.object.svg punctuation.definition.tag, meta.scope.tag.svg entity.name.tag, meta.scope.tag.svg punctuation.definition.tag, meta.tag.object.video entity.name.tag, meta.tag.object.video punctuation.definition.tag, meta.scope.tag.video entity.name.tag, meta.scope.tag.video punctuation.definition.tag, meta.tag.inline.q entity.name.tag, meta.tag.inline.q punctuation.definition.tag, meta.scope.tag.q entity.name.tag, meta.scope.tag.q punctuation.definition.tag, meta.tag.inline.em entity.name.tag, meta.tag.inline.em punctuation.definition.tag, meta.scope.tag.em entity.name.tag, meta.scope.tag.em punctuation.definition.tag, meta.tag.inline.kbd entity.name.tag, meta.tag.inline.kbd punctuation.definition.tag, meta.scope.tag.kbd entity.name.tag, meta.scope.tag.kbd punctuation.definition.tag, meta.tag.structure.caption entity.name.tag, meta.tag.structure.caption punctuation.definition.tag, meta.scope.tag.caption entity.name.tag, meta.scope.tag.caption punctuation.definition.tag, meta.attribute.media entity.other.attribute-name, meta.attribute.id entity.other.attribute-name | #994CC3 | — |
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}!`;
}