The Compiled Thought Themes - Enhanced Edition
Intelligent, memory-optimized theme collection with smart recommendations and advanced features
Intelligent, memory-optimized theme collection with smart recommendations and advanced features
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 |
|---|---|---|
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, punctuation.section.embedded.js, punctuation.definintion.string, punctuation | — | normal |
| meta.import.ts meta.block.ts variable.other.readwrite.alias.ts, meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.import.js variable.other, meta.export.ts meta.block.ts variable.other.readwrite.alias.ts, meta.export.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.export.js variable.other, entity.name.function.ts, entity.name.function.tsx, support.type.primitive, entity.other.attribute-name, entity.name.tag.custom, source.js.jsx keyword.control.flow.js, support.type.property.css, support.function.basic_functions, variable.assignment.coffee, support.function.basic_functions, keyword.operator.type.annotation, punctuation.section.embedded, assignment.coffee, entity.name.type.ts, support.constant.math, meta.object-literal.key, meta.var.expr storage.type, text.html.markdown, parameter, string, italic, quote, keyword, storage, language, type .function, type.function, storage.type.class, type.var, meta.parameter, variable.parameter, meta.parameters, keyword.control, modifier, this, comment | — | italic |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, punctuation.section.embedded.js, punctuation.definintion.string, punctuation | — | normal |
| meta.import.ts meta.block.ts variable.other.readwrite.alias.ts, meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.import.js variable.other, meta.export.ts meta.block.ts variable.other.readwrite.alias.ts, meta.export.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.export.js variable.other, entity.name.function.ts, entity.name.function.tsx, support.type.primitive, entity.other.attribute-name, entity.name.tag.custom, source.js.jsx keyword.control.flow.js, support.type.property.css, support.function.basic_functions, variable.assignment.coffee, support.function.basic_functions, keyword.operator.type.annotation, punctuation.section.embedded, assignment.coffee, entity.name.type.ts, support.constant.math, meta.object-literal.key, meta.var.expr storage.type, text.html.markdown, parameter, string, italic, quote, keyword, storage, language, type .function, type.function, storage.type.class, type.var, meta.parameter, variable.parameter, meta.parameters, keyword.control, modifier, this, comment | — | italic |
| support.constant.edge | #d55fdeff | — |
| constant.other.character-class.regexp | #e06c75ff | — |
| keyword.operator.quantifier.regexp | #d19a66ff | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #98c378 | — |
| variable.parameter.function | #A6B2C0 | — |
| comment, punctuation.definition.comment | #5C6370 | italic |
| comment markup.link | #5C6370 | — |
| markup.changed.diff | #e0c285 | — |
| meta.diff.header.from-file,punctuation.definition.from-file.diff | #569cd6 | — |
| markup.inserted.diff | #89CA78 | — |
| markup.deleted.diff | #EF596F | — |
| meta.function.c | #EF596F | — |
| keyword.control.cpp | #e5c07b | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #AAB1C0 | — |
| punctuation.separator.key-value | #bbbbbb | — |
| 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 |
| keyword.operator.expression.import | #52ADF2 | — |
| support.constant.math | #e5c07b | — |
| support.constant.property.math | #d19a66 | — |
| variable.other.constant | #e5c07b | — |
| storage.type.annotation.java | #e5c07bff | — |
| source.java | #EF596F | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.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,meta.method-call.java,storage.type.generic.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.separator.period.java,meta.method.body.java | #AAB1C0 | — |
| meta.method.java | #52ADF2 | — |
| storage.modifier.import.java,storage.type.java | #e5c07b | — |
| meta.definition.variable.name.java | #EF596F | — |
| keyword.operator.logical | #2BBAC5 | — |
| keyword.operator.bitwise | #2BBAC5 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #D8985F | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #D8985F | — |
| punctuation.separator.list.comma.css | #b9c0ca | — |
| support.constant.color.w3c-standard-color-name.css | #D8985F | — |
| support.type.vendored.property-name.css | #2BBAC5 | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end | #EF596F | — |
| support.module.node,support.type.object.module | #e5c07b | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #EF596F | — |
| comment.line.double-slash,comment.block.documentation | — | normal |
| support.constant.json | #D8985F | — |
| keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.ternary | #D55FDE | — |
| support.type.object.console | #EF596F | — |
| support.variable.property.process | #D8985F | — |
| entity.name.function,support.function.console | #52ADF2 | — |
| keyword.operator | #2BBAC5 | — |
| support.type.object.dom | #2BBAC5 | — |
| support.variable.dom,support.variable.property.dom | #EF596F | — |
| keyword.operator.arithmetic,keyword.operator.comparison | #2BBAC5 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c | #D55FDEff | — |
| punctuation.separator.delimiter.c | #bbbbbb | — |
| support.type.posix-reserved.c | #57adb8 | — |
| keyword.operator.sizeof.c | #C178DD | — |
| variable.parameter.function.language.python | #D8985F | — |
| support.type.python | #2BBAC5 | — |
| keyword.operator.logical.python | #D55FDE | — |
| meta.function-call.arguments.python | #E06C60 | — |
| meta.function-call.python | #E06C60 | — |
| variable.parameter.function.python | #D18C4E | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python,meta.function-call.arguments.python | #AAB1C0 | — |
| meta.function-call.generic.python | #52ADF2 | — |
| constant.character.format.placeholder.other.python | #98c379 | — |
| none | #A6B2C0 | — |
| keyword.operator | #AAB1C0 | — |
| keyword | #D55FDE | — |
| variable | #EF596F | — |
| token.variable.parameter.java | #AAB1C0 | — |
| import.storage.java | #e5c07b | — |
| token.package.keyword | #D55FDE | — |
| token.package | #AAB1C0 | — |
| entity.name.function, meta.require, support.function.any-method | #52ADF2 | — |
| entity.name.type.namespace | #e5c07b | — |
| support.class, entity.name.type.class | #e5c07b | — |
| entity.name.class.identifier.namespace.type | #e5c07b | — |
| entity.name.class | #52ADF2 | — |
| entity.name.type | #e5c07b | — |
| keyword.control | #D55FDE | — |
| control.elements, keyword.operator.less | #D8985F | — |
| keyword.other.special-method | #52ADF2 | — |
| storage | #D55FDE | — |
| token.storage | #D55FDE | — |
| 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 | #D55FDE | — |
| token.storage.type.java | #e5c07b | — |
| support.function | #2BBAC5 | — |
| support.type.property-name | #AAB1C0 | — |
| support.constant.property-value | #AAB1C0 | — |
| support.constant.font-name | #D8985F | — |
| meta.tag | #AAB1C0 | — |
| string, entity.other.inherited-class | #89CA78 | — |
| constant.other.symbol | #2BBAC5 | — |
| constant.numeric | #D8985F | — |
| none | #D8985F | — |
| none | #D8985F | — |
| constant | #D8985F | — |
| punctuation.definition.constant | #D8985F | — |
| entity.name.tag | #EF596F | — |
| entity.other.attribute-name | #D8985F | — |
| entity.other.attribute-name.id | #52ADF2 | normal |
| entity.other.attribute-name.class.css | #D8985F | normal |
| meta.selector | #D55FDE | — |
| none | #D2945D | — |
| markup.heading | #EF596F | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #52ADF2 | — |
| keyword.other.unit | #D8985F | — |
| markup.bold,todo.bold | #D8985F | bold |
| punctuation.definition.bold | #e5c07b | — |
| markup.italic,punctuation.definition.italic,todo.emphasis | #D55FDE | — |
| emphasis md | #D55FDE | — |
| entity.name.section.markdown | #EF596F | — |
| punctuation.definition.heading.markdown | #EF596F | — |
| markup.heading.setext | #AAB1C0 | — |
| punctuation.definition.bold.markdown | #D8985F | — |
| markup.inline.raw.markdown | #89CA78 | — |
| markup.inline.raw.string.markdown | #98c379 | — |
| beginning.punctuation.definition.list.markdown | #EF596F | — |
| markup.quote.markdown | #5C6370 | italic |
| punctuation.definition.string.begin.markdown,punctuation.definition.string.end.markdown,punctuation.definition.metadata.markdown | #AAB1C0 | — |
| punctuation.definition.metadata.markdown | #D55FDE | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #D55FDE | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #52ADF2 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #57B6C2 | — |
| constant.character.escape | #57B6C2 | — |
| punctuation.section.embedded, variable.interpolation | #BE4F44 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #EF596F | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #EF596F | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.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 | #89CA78 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #2BBAC5 | — |
| support.type.property-name.json | #EF596F | — |
| support.type.property-name.json punctuation | #EF596F | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #C679DD | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #C679DD | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php | #e5c07b | — |
| keyword.operator.error-control.php | #D55FDE | — |
| keyword.operator.type.php | #D55FDE | — |
| punctuation.section.array.begin.php | #AAB1C0 | — |
| punctuation.section.array.end.php | #AAB1C0 | — |
| invalid.illegal.non-null-typehinted.php | #ff0000 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #e5c07b | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #52ADF2 | — |
| 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 | #bbbbbb | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #D8985F | — |
| entity.name.goto-label.php,support.other.php | #52ADF2 | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #2BBAC5 | — |
| keyword.operator.regexp.php | #D55FDE | — |
| keyword.operator.comparison.php | #2BBAC5 | — |
| punctuation.definition.variable.php | #EF596F | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #D55FDE | — |
| meta.function.decorator.python | #52ADF2 | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #2BBAC5 | — |
| function.parameter | #D8985F | — |
| function.parameter | #AAB1C0 | — |
| function.brace | #AAB1C0 | — |
| function.parameter.ruby, function.parameter.cs | #AAB1C0 | — |
| rgb-value | #2BBAC5 | — |
| inline-color-decoration rgb-value | #D8985F | — |
| less rgb-value | #D8985F | — |
| selector.sass | #EF596F | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #e5c07b | italic |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #e5c07b | — |
| block.scope.end,block.scope.begin | #AAB1C0 | — |
| storage.type.cs | #e5c07bff | — |
| entity.name.variable.local.cs | #EF596F | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #d55fde | — |
| meta.template.expression | #aab1c0 | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, punctuation.section.embedded.js, punctuation.definintion.string, punctuation | — | normal |
| meta.import.ts meta.block.ts variable.other.readwrite.alias.ts, meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.import.js variable.other, meta.export.ts meta.block.ts variable.other.readwrite.alias.ts, meta.export.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.export.js variable.other, entity.name.function.ts, entity.name.function.tsx, support.type.primitive, entity.other.attribute-name, entity.name.tag.custom, source.js.jsx keyword.control.flow.js, support.type.property.css, support.function.basic_functions, variable.assignment.coffee, support.function.basic_functions, keyword.operator.type.annotation, punctuation.section.embedded, assignment.coffee, entity.name.type.ts, support.constant.math, meta.object-literal.key, meta.var.expr storage.type, text.html.markdown, parameter, string, italic, quote, keyword, storage, language, type .function, type.function, storage.type.class, type.var, meta.parameter, variable.parameter, meta.parameters, keyword.control, modifier, this, comment | — | italic |
| support.constant.edge | #d55fdeff | — |
| constant.other.character-class.regexp | #e06c75ff | — |
| keyword.operator.quantifier.regexp | #d19a66ff | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #98c378 | — |
| variable.parameter.function | #A6B2C0 | — |
| comment, punctuation.definition.comment | #5C6370 | italic |
| comment markup.link | #5C6370 | — |
| markup.changed.diff | #e0c285 | — |
| meta.diff.header.from-file,punctuation.definition.from-file.diff | #569cd6 | — |
| markup.inserted.diff | #89CA78 | — |
| markup.deleted.diff | #EF596F | — |
| meta.function.c | #EF596F | — |
| keyword.control.cpp | #e5c07b | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #AAB1C0 | — |
| punctuation.separator.key-value | #bbbbbb | — |
| 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 |
| keyword.operator.expression.import | #52ADF2 | — |
| support.constant.math | #e5c07b | — |
| support.constant.property.math | #d19a66 | — |
| variable.other.constant | #e5c07b | — |
| storage.type.annotation.java | #e5c07bff | — |
| source.java | #EF596F | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.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,meta.method-call.java,storage.type.generic.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.separator.period.java,meta.method.body.java | #AAB1C0 | — |
| meta.method.java | #52ADF2 | — |
| storage.modifier.import.java,storage.type.java | #e5c07b | — |
| meta.definition.variable.name.java | #EF596F | — |
| keyword.operator.logical | #2BBAC5 | — |
| keyword.operator.bitwise | #2BBAC5 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #D8985F | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #D8985F | — |
| punctuation.separator.list.comma.css | #b9c0ca | — |
| support.constant.color.w3c-standard-color-name.css | #D8985F | — |
| support.type.vendored.property-name.css | #2BBAC5 | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end | #EF596F | — |
| support.module.node,support.type.object.module | #e5c07b | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #EF596F | — |
| comment.line.double-slash,comment.block.documentation | — | normal |
| support.constant.json | #D8985F | — |
| keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.ternary | #D55FDE | — |
| support.type.object.console | #EF596F | — |
| support.variable.property.process | #D8985F | — |
| entity.name.function,support.function.console | #52ADF2 | — |
| keyword.operator | #2BBAC5 | — |
| support.type.object.dom | #2BBAC5 | — |
| support.variable.dom,support.variable.property.dom | #EF596F | — |
| keyword.operator.arithmetic,keyword.operator.comparison | #2BBAC5 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c | #D55FDEff | — |
| punctuation.separator.delimiter.c | #bbbbbb | — |
| support.type.posix-reserved.c | #57adb8 | — |
| keyword.operator.sizeof.c | #C178DD | — |
| variable.parameter.function.language.python | #D8985F | — |
| support.type.python | #2BBAC5 | — |
| keyword.operator.logical.python | #D55FDE | — |
| meta.function-call.arguments.python | #E06C60 | — |
| meta.function-call.python | #E06C60 | — |
| variable.parameter.function.python | #D18C4E | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python,meta.function-call.arguments.python | #AAB1C0 | — |
| meta.function-call.generic.python | #52ADF2 | — |
| constant.character.format.placeholder.other.python | #98c379 | — |
| none | #A6B2C0 | — |
| keyword.operator | #AAB1C0 | — |
| keyword | #D55FDE | — |
| variable | #EF596F | — |
| token.variable.parameter.java | #AAB1C0 | — |
| import.storage.java | #e5c07b | — |
| token.package.keyword | #D55FDE | — |
| token.package | #AAB1C0 | — |
| entity.name.function, meta.require, support.function.any-method | #52ADF2 | — |
| entity.name.type.namespace | #e5c07b | — |
| support.class, entity.name.type.class | #e5c07b | — |
| entity.name.class.identifier.namespace.type | #e5c07b | — |
| entity.name.class | #52ADF2 | — |
| entity.name.type | #e5c07b | — |
| keyword.control | #D55FDE | — |
| control.elements, keyword.operator.less | #D8985F | — |
| keyword.other.special-method | #52ADF2 | — |
| storage | #D55FDE | — |
| token.storage | #D55FDE | — |
| 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 | #D55FDE | — |
| token.storage.type.java | #e5c07b | — |
| support.function | #2BBAC5 | — |
| support.type.property-name | #AAB1C0 | — |
| support.constant.property-value | #AAB1C0 | — |
| support.constant.font-name | #D8985F | — |
| meta.tag | #AAB1C0 | — |
| string, entity.other.inherited-class | #89CA78 | — |
| constant.other.symbol | #2BBAC5 | — |
| constant.numeric | #D8985F | — |
| none | #D8985F | — |
| none | #D8985F | — |
| constant | #D8985F | — |
| punctuation.definition.constant | #D8985F | — |
| entity.name.tag | #EF596F | — |
| entity.other.attribute-name | #D8985F | — |
| entity.other.attribute-name.id | #52ADF2 | normal |
| entity.other.attribute-name.class.css | #D8985F | normal |
| meta.selector | #D55FDE | — |
| none | #D2945D | — |
| markup.heading | #EF596F | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #52ADF2 | — |
| keyword.other.unit | #D8985F | — |
| markup.bold,todo.bold | #D8985F | bold |
| punctuation.definition.bold | #e5c07b | — |
| markup.italic,punctuation.definition.italic,todo.emphasis | #D55FDE | — |
| emphasis md | #D55FDE | — |
| entity.name.section.markdown | #EF596F | — |
| punctuation.definition.heading.markdown | #EF596F | — |
| markup.heading.setext | #AAB1C0 | — |
| punctuation.definition.bold.markdown | #D8985F | — |
| markup.inline.raw.markdown | #89CA78 | — |
| markup.inline.raw.string.markdown | #98c379 | — |
| beginning.punctuation.definition.list.markdown | #EF596F | — |
| markup.quote.markdown | #5C6370 | italic |
| punctuation.definition.string.begin.markdown,punctuation.definition.string.end.markdown,punctuation.definition.metadata.markdown | #AAB1C0 | — |
| punctuation.definition.metadata.markdown | #D55FDE | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #D55FDE | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #52ADF2 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #57B6C2 | — |
| constant.character.escape | #57B6C2 | — |
| punctuation.section.embedded, variable.interpolation | #BE4F44 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #EF596F | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #EF596F | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.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 | #89CA78 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #2BBAC5 | — |
| support.type.property-name.json | #EF596F | — |
| support.type.property-name.json punctuation | #EF596F | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #C679DD | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #C679DD | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php | #e5c07b | — |
| keyword.operator.error-control.php | #D55FDE | — |
| keyword.operator.type.php | #D55FDE | — |
| punctuation.section.array.begin.php | #AAB1C0 | — |
| punctuation.section.array.end.php | #AAB1C0 | — |
| invalid.illegal.non-null-typehinted.php | #ff0000 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #e5c07b | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #52ADF2 | — |
| 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 | #bbbbbb | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #D8985F | — |
| entity.name.goto-label.php,support.other.php | #52ADF2 | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #2BBAC5 | — |
| keyword.operator.regexp.php | #D55FDE | — |
| keyword.operator.comparison.php | #2BBAC5 | — |
| punctuation.definition.variable.php | #EF596F | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #D55FDE | — |
| meta.function.decorator.python | #52ADF2 | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #2BBAC5 | — |
| function.parameter | #D8985F | — |
| function.parameter | #AAB1C0 | — |
| function.brace | #AAB1C0 | — |
| function.parameter.ruby, function.parameter.cs | #AAB1C0 | — |
| rgb-value | #2BBAC5 | — |
| inline-color-decoration rgb-value | #D8985F | — |
| less rgb-value | #D8985F | — |
| selector.sass | #EF596F | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #e5c07b | italic |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #e5c07b | — |
| block.scope.end,block.scope.begin | #AAB1C0 | — |
| storage.type.cs | #e5c07bff | — |
| entity.name.variable.local.cs | #EF596F | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #d55fde | — |
| meta.template.expression | #aab1c0 | — |
| support.constant.edge | #d55fdeff | — |
| constant.other.character-class.regexp | #e06c75ff | — |
| keyword.operator.quantifier.regexp | #d19a66ff | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #98c378 | — |
| variable.parameter.function | #A6B2C0 | — |
| comment, punctuation.definition.comment | #5C6370 | italic |
| comment markup.link | #5C6370 | — |
| markup.changed.diff | #e0c285 | — |
| meta.diff.header.from-file,punctuation.definition.from-file.diff | #569cd6 | — |
| markup.inserted.diff | #89CA78 | — |
| markup.deleted.diff | #EF596F | — |
| meta.function.c | #EF596F | — |
| keyword.control.cpp | #e5c07b | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #AAB1C0 | — |
| punctuation.separator.key-value | #bbbbbb | — |
| 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 |
| keyword.operator.expression.import | #52ADF2 | — |
| support.constant.math | #e5c07b | — |
| support.constant.property.math | #d19a66 | — |
| variable.other.constant | #e5c07b | — |
| storage.type.annotation.java | #e5c07bff | — |
| source.java | #EF596F | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.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,meta.method-call.java,storage.type.generic.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.separator.period.java,meta.method.body.java | #AAB1C0 | — |
| meta.method.java | #52ADF2 | — |
| storage.modifier.import.java,storage.type.java | #e5c07b | — |
| meta.definition.variable.name.java | #EF596F | — |
| keyword.operator.logical | #2BBAC5 | — |
| keyword.operator.bitwise | #2BBAC5 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #D8985F | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #D8985F | — |
| punctuation.separator.list.comma.css | #b9c0ca | — |
| support.constant.color.w3c-standard-color-name.css | #D8985F | — |
| support.type.vendored.property-name.css | #2BBAC5 | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end | #EF596F | — |
| support.module.node,support.type.object.module | #e5c07b | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #EF596F | — |
| comment.line.double-slash,comment.block.documentation | — | normal |
| support.constant.json | #D8985F | — |
| keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.ternary | #D55FDE | — |
| support.type.object.console | #EF596F | — |
| support.variable.property.process | #D8985F | — |
| entity.name.function,support.function.console | #52ADF2 | — |
| keyword.operator | #2BBAC5 | — |
| support.type.object.dom | #2BBAC5 | — |
| support.variable.dom,support.variable.property.dom | #EF596F | — |
| keyword.operator.arithmetic,keyword.operator.comparison | #2BBAC5 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c | #D55FDEff | — |
| punctuation.separator.delimiter.c | #bbbbbb | — |
| support.type.posix-reserved.c | #57adb8 | — |
| keyword.operator.sizeof.c | #C178DD | — |
| variable.parameter.function.language.python | #D8985F | — |
| support.type.python | #2BBAC5 | — |
| keyword.operator.logical.python | #D55FDE | — |
| meta.function-call.arguments.python | #E06C60 | — |
| meta.function-call.python | #E06C60 | — |
| variable.parameter.function.python | #D18C4E | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python,meta.function-call.arguments.python | #AAB1C0 | — |
| meta.function-call.generic.python | #52ADF2 | — |
| constant.character.format.placeholder.other.python | #98c379 | — |
| none | #A6B2C0 | — |
| keyword.operator | #AAB1C0 | — |
| keyword | #D55FDE | — |
| variable | #EF596F | — |
| token.variable.parameter.java | #AAB1C0 | — |
| import.storage.java | #e5c07b | — |
| token.package.keyword | #D55FDE | — |
| token.package | #AAB1C0 | — |
| entity.name.function, meta.require, support.function.any-method | #52ADF2 | — |
| entity.name.type.namespace | #e5c07b | — |
| support.class, entity.name.type.class | #e5c07b | — |
| entity.name.class.identifier.namespace.type | #e5c07b | — |
| entity.name.class | #52ADF2 | — |
| entity.name.type | #e5c07b | — |
| keyword.control | #D55FDE | — |
| control.elements, keyword.operator.less | #D8985F | — |
| keyword.other.special-method | #52ADF2 | — |
| storage | #D55FDE | — |
| token.storage | #D55FDE | — |
| 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 | #D55FDE | — |
| token.storage.type.java | #e5c07b | — |
| support.function | #2BBAC5 | — |
| support.type.property-name | #AAB1C0 | — |
| support.constant.property-value | #AAB1C0 | — |
| support.constant.font-name | #D8985F | — |
| meta.tag | #AAB1C0 | — |
| string, entity.other.inherited-class | #89CA78 | — |
| constant.other.symbol | #2BBAC5 | — |
| constant.numeric | #D8985F | — |
| none | #D8985F | — |
| none | #D8985F | — |
| constant | #D8985F | — |
| punctuation.definition.constant | #D8985F | — |
| entity.name.tag | #EF596F | — |
| entity.other.attribute-name | #D8985F | — |
| entity.other.attribute-name.id | #52ADF2 | normal |
| entity.other.attribute-name.class.css | #D8985F | normal |
| meta.selector | #D55FDE | — |
| none | #D2945D | — |
| markup.heading | #EF596F | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #52ADF2 | — |
| keyword.other.unit | #D8985F | — |
| markup.bold,todo.bold | #D8985F | bold |
| punctuation.definition.bold | #e5c07b | — |
| markup.italic,punctuation.definition.italic,todo.emphasis | #D55FDE | — |
| emphasis md | #D55FDE | — |
| entity.name.section.markdown | #EF596F | — |
| punctuation.definition.heading.markdown | #EF596F | — |
| markup.heading.setext | #AAB1C0 | — |
| punctuation.definition.bold.markdown | #D8985F | — |
| markup.inline.raw.markdown | #89CA78 | — |
| markup.inline.raw.string.markdown | #98c379 | — |
| beginning.punctuation.definition.list.markdown | #EF596F | — |
| markup.quote.markdown | #5C6370 | italic |
| punctuation.definition.string.begin.markdown,punctuation.definition.string.end.markdown,punctuation.definition.metadata.markdown | #AAB1C0 | — |
| punctuation.definition.metadata.markdown | #D55FDE | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #D55FDE | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #52ADF2 | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #57B6C2 | — |
| constant.character.escape | #57B6C2 | — |
| punctuation.section.embedded, variable.interpolation | #BE4F44 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #EF596F | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #EF596F | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.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 | #89CA78 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #2BBAC5 | — |
| support.type.property-name.json | #EF596F | — |
| support.type.property-name.json punctuation | #EF596F | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #C679DD | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #C679DD | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php | #e5c07b | — |
| keyword.operator.error-control.php | #D55FDE | — |
| keyword.operator.type.php | #D55FDE | — |
| punctuation.section.array.begin.php | #AAB1C0 | — |
| punctuation.section.array.end.php | #AAB1C0 | — |
| invalid.illegal.non-null-typehinted.php | #ff0000 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #e5c07b | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #52ADF2 | — |
| 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 | #bbbbbb | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #D8985F | — |
| entity.name.goto-label.php,support.other.php | #52ADF2 | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #2BBAC5 | — |
| keyword.operator.regexp.php | #D55FDE | — |
| keyword.operator.comparison.php | #2BBAC5 | — |
| punctuation.definition.variable.php | #EF596F | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #D55FDE | — |
| meta.function.decorator.python | #52ADF2 | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #2BBAC5 | — |
| function.parameter | #D8985F | — |
| function.parameter | #AAB1C0 | — |
| function.brace | #AAB1C0 | — |
| function.parameter.ruby, function.parameter.cs | #AAB1C0 | — |
| rgb-value | #2BBAC5 | — |
| inline-color-decoration rgb-value | #D8985F | — |
| less rgb-value | #D8985F | — |
| selector.sass | #EF596F | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #e5c07b | italic |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #e5c07b | — |
| block.scope.end,block.scope.begin | #AAB1C0 | — |
| storage.type.cs | #e5c07bff | — |
| entity.name.variable.local.cs | #EF596F | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #d55fde | — |
| meta.template.expression | #aab1c0 | — |
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, string.comment | #676F7D | italic |
| punctuation.definition.template-expression.begin.js,punctuation.definition.template-expression.end.js,punctuation.definition.template-expression.begin.ts,punctuation.definition.template-expression.end.ts | #C678DD | — |
| string.template.js | #E5C07B | — |
| meta.template.expression.js | #ABB2BF | — |
| string.embedded.begin, string.embedded.end | #C678DD | — |
| string.embedded | #98C379 | — |
| constant.language | #56B6C2 | — |
| constant.character, constant.other | #56B6C2 | — |
| variable.language | #E06C75 | — |
| variable.readwrite, variable.readwrite.other.block | #61AFEF | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #E06C75 | — |
| keyword.operator | #E06C75 | — |
| storage | #E06C75 | — |
| storage.type | #56B6C2 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #61AFEF | — |
| variable.other.object | #61AFEF | — |
| variable.other.property, variable.other.block | #ABB2BF | — |
| entity.other.inherited-class | #98C379 | — |
| entity.name.function, support.function | #98C379 | — |
| variable.parameter | #D19A66 | italic |
| entity.name.function-call | #ABB2BF | — |
| function.support.builtin, function.support.core | #98C379 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #E06C75 | — |
| entity.name.tag.class, entity.name.tag.id | #56B6C2 | — |
| entity.other.attribute-name | #98C379 | — |
| support.constant | #56B6C2 | — |
| support.type, support.variable | #56B6C2 | — |
| support.dictionary.json | #56B6C2 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #ABB2BF | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98C379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56B6C2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #E5C07B | — |
| unit.css, unit.scss, unit.less, unit.sass | #C678DD | — |
| function.css, function.scss, function.less, function.sass | #56B6C2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #56B6C2 | — |
| string.detected-link | #61AFEF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #C678DD | — |
| markup.inserted | #E5C07B | — |
| markup.changed | #E5C07B | — |
| constant.numeric.line-number.find-in-files - match | #56B6C2A0 | — |
| entity.name.filename.find-in-files | #E5C07B | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #696969 | none |
| markup.underline.link.markdown | #61AFEF | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #696969 | none |
| markup.heading.markdown | #E06C75 | bold |
| punctuation.definition.heading.markdown | #696969 | none |
| markup.quote.markdown | #98C379 | — |
| meta.separator.markdown | #C678DD | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56B6C2 | — |
| punctuation.definition.list_item.markdown | #FFFFFF | bold |
| comment | #625576 | — |
| string | #E07D13 | — |
| keyword - keyword.operator | #E6C62F | — |
| keyword.control | #E6C62F | — |
| storage | #E6C62F | — |
| storage.type | #E6C62F | — |
| entity.name.type | #DC396A | — |
| entity.name.class | #DC396A | — |
| support.type | #DC396A | — |
| support.class | #DC396A | — |
| entity.name.function | #39DCDC | — |
| support.function | #39DCDC | — |
| variable | #CDCDCD | — |
| entity.name.variable | #CDCDCD | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #E6C62F | — |
| punctuation.definition.tag.begin.js, punctuation.definition.tag.end.js, meta.tag.js, meta.embedded.expression.js, meta.block.js, meta.arrow.js, meta.var.expr.js, source.js, punctuation.definition.tag.begin.ts, punctuation.definition.tag.end.ts, meta.tag.ts, meta.embedded.expression.ts, meta.tag.ts, meta.tag.tsx, meta.block.ts, meta.block.tsx, meta.arrow.ts, meta.arrow.tsx, meta.var.expr.ts, meta.var.expr.tsx, source.ts, source.tsx | #2FACE6 | — |
| meta.jsx.children.ts, meta.jsx.children.js, meta.jsx.children.tsx, meta.jsx.children.ts, meta.jsx.children.tsx | #CDCDCD | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #B759C2 | — |
| variable.other.readwrite.alias.tsx, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts | #2FACE6 | — |
| meta.block.ts, meta.block.tsx, meta.block.js, meta.block.jsx | #C4C4C4 | — |
| variable.other.readwrite.ts, meta.object.member.ts, variable.other.readwrite.tsx, meta.object.member.tsx, variable.other.readwrite.js, meta.object.member.js, variable.other.readwrite.jsx, meta.object.member.jsx | #30C5C5 | — |
| support.class.component.tsx, entity.name.tag.tsx, meta.embedded.expression.tsx, meta.block.tsx, meta.var.expr.tsx, source.tsx, support.class.component.jsx, entity.name.tag.jsx, meta.embedded.expression.jsx, meta.block.jsx, meta.var.expr.jsx, source.jsx, support.class.component.js, support.class.component.ts, entity.name.tag.js, entity.name.tag.ts, meta.embedded.expression.js, meta.embedded.expression.ts, meta.block.js, meta.block.ts, meta.var.expr.js, meta.var.expr.ts, source.js, source.ts | #2FACE6 | — |
| variable.object.property.tsx, meta.definition.property.tsx, meta.field.declaration.tsx, meta.interface.tsx, variable.other.constant.tsx, meta.definition.variable.tsx, meta.var-single-variable.expr.tsx, meta.var.expr.tsx, meta.block.tsx, meta.arrow.tsx, meta.var.expr.tsx, source.tsx, variable.object.property.jsx, variable.object.property.js, variable.object.property.ts, meta.definition.property.jsx, meta.definition.property.js, meta.definition.property.ts, meta.field.declaration.jsx, meta.field.declaration.js, meta.field.declaration.ts, meta.interface.jsx, meta.interface.js, meta.interface.ts, variable.other.constant.jsx, variable.other.constant.js, variable.other.constant.ts, meta.definition.variable.jsx, meta.definition.variable.js, meta.definition.variable.ts, meta.var-single-variable.expr.jsx, meta.var-single-variable.expr.js, meta.var-single-variable.expr.ts, meta.var.expr.jsx, meta.var.expr.js, meta.var.expr.ts, meta.block.jsx, meta.block.js, meta.block.ts, meta.arrow.jsx, meta.arrow.js, meta.arrow.ts, meta.var.expr.jsx, meta.var.expr.js, meta.var.expr.ts, source.jsx, source.js, source.ts | #2FACE6 | — |
| variable.parameter.ts, meta.parameter.object-binding-pattern.ts, meta.parameters.ts, variable.parameter.tsx, meta.parameter.object-binding-pattern.tsx, meta.parameters.tsx, variable.parameter.js, meta.parameter.object-binding-pattern.js, meta.parameters.js, variable.parameter.jsx, meta.parameter.object-binding-pattern.jsx, meta.parameters.jsx | #AE66B6 | — |
| entity.other.inherited-class.ts, meta.interface.ts, entity.other.inherited-class.tsx, meta.interface.tsx, entity.other.inherited-class.js, meta.interface.js, entity.other.inherited-class.jsx, meta.interface.jsx, entity.other.inherited-class.jsx, meta.interface.jsx | #39DCDC | — |
| constant | #CDCDCD | — |
| entity.other.attribute-name | #B759C2 | — |
| entity.name.tag | #2FACE6 | — |
| entity.name.variable.parameter, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #DC8D39 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #AE66B6 | — |
| keyword.operator, keyword.operator.logical.ts, meta.embedded.expression.ts, keyword.operator.logical.tsx, meta.embedded.expression.tsx, keyword.operator.logical.js, meta.embedded.expression.js, keyword.operator.logical.jsx, meta.embedded.expression.jsx | #B9355D | — |
| support.type.property-name.css, meta.property-name.css, meta.property-list.css, source.stylable | #2FACE6 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| string | #E07D13 | — |
| constant.numeric | #E07D13 | — |
| comment | #7F6E99 | — |
| punctuation.definition.comment | #7F6E99 | — |
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 |
|---|---|---|
| support.module.elm, entity.other.inherited-class.python, variable.other.object, support.other.namespace.php, entity.other.attribute-name.namespace.xml, record.accessor, entity.name.record.field.accessor | #fc9867 | |
| entity.name.type | #7E9E2D | — |
| comment, punctuation.definition.comment, string.quoted.docstring.multi, comment.block.documentation source | #868d9caa | italic |
| constant | #fc6a67 | — |
| source, support, constant.character.entity.named, meta.jsx.children, source.lua | #FFFFFFcc | — |
| entity.name.function.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator, punctuation.definition.decorator, meta.decorator variable.other.readwrite.ts | #e991e3 | — |
| keyword.control.export, support.type.object.module | #ffd866 | — |
| support.function, entity.name.function, meta.function-call, meta.function, meta.method.declaration, meta.function-call support, meta.decorator meta.definition.method entity.name.function, meta.decorator meta.method.declaration entity.name.function, variable.language.super.ts, source.directive, meta.function-call.generic, meta.method-call.static.php, meta.method-call.php, meta.class storage.type | #78dce8 | — |
| keyword.control.import, meta.module.name.elm support, meta.import.elm support, keyword.control.at-rule, punctuation.definition.keyword, variable.control.import.include | #ffd866 | — |
| keyword.control, keyword.control.conditional, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.begin.blade, keyword.end.blade, keyword.blade, keyword.type-alias, keyword.type, support.class.console, keyword.other.await, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, keyword.operator.assignment.cs | #ffd866 | — |
| meta.object-literal.key, variable.object.property | #FFFFFFcc | — |
| keyword.other.definition.ini, support.type.property-name, entity.name.tag.yaml | #ffd866 | — |
| keyword.operator.comparison, storage.type.function.arrow, keyword.operator.lua | #ffd866 | — |
| punctuation, attribute_value, meta.brace, punctuation.definition.parameters, punctuation.definition.template-expression, keyword.operator, keyword.other, punctuation.terminator, punctuation.separator, punctuation.definition.generic.begin, punctuation.definition.generic.end, meta.function.type-declaration, keyword.other.colon.elm, meta.record.field.elm keyword.other.elm, keyword.other.period.elm, meta.tag.xml, meta.tag.preprocessor.xml, punctuation.definition.block, punctuation.accessor, constant.name.attribute.tag.pug, string.interpolated.pug, keyword.other.whitespace.liquid, meta.tag.template.block.twig, meta.tag.template.value.twig, begin.bracket, end.bracket, text.html.twig meta.tag.inline.any, text.html.twig meta.tag.block.any, support.function.construct.begin.blade, support.function.construct.end.blade source.php, support.function.construct.end.blade, meta.function.echo.blade source.php, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, text.html.vue-html meta.tag.block.any, entity.name.variable.tuple-element.cs | #868d9c | — |
| variable.language.this, variable.language.special.self, variable.parameter.function.language.special.self | #fc9867 | |
| storage, meta.var.expr storage.type, storage.type.function, keyword.function, storage.type.class, storage.type.property, keyword.other, keyword.local.lua, entity.name.class, meta.function.lua keyword.control.lua, storage.type.enum, storage.type.interface, storage.type.type | #78e8c6 | |
| string, string.template, string.quoted.single, punctuation.definition.string, punctuation.definition.string.template, punctuation.definition.string.begin, punctuation.definition.string.end, string.other.link, constant.character.escape.regexp, variable.parameter.url | #2ecfa8 | — |
| entity.name.type, support.type, support.class, storage.type, entity.other.inherited-class, keyword.type | #ab9df2 | — |
| variable, variable.language, entity.name.type.class.js, entity.name.variable, support.variable.magic, meta.method.body, entity.name.variable, punctuation.definition.variable, support.variable.property, meta.class variable.object.property, variable.other.constant entity.name.function, entity.name.variable.tuple-element.cs punctuation.separator.colon.cs | #ff6188 | — |
| source.elm constant.type-constructor | #ff6188 | — |
| source.elm storage.type | #ab9df2 | |
| entity.name.tag.other.html, meta.tag.other.html punctuation.definition.tag.end.html, meta.tag.other.html punctuation.definition.tag.begin.html, entity.name.tag support.class.component, support.class.component.html | #78dce8 | — |
| support.variable.liquid, support.class.liquid | #ff6188 | — |
| text.html.basic entity.name, source.js-ignored-vscode, entity.name.tag, meta.embedded.block.blade constant.other.php, meta.embedded.block.blade keyword.operator.comparison.php, meta.embedded.block.blade keyword.operator.arithmetic.php | #78dce8 | — |
| meta.tag.sgml.doctype.html, punctuation.definition.tag, meta.tag.block.any, meta.tag.block.any.html, meta.tag.inline.any, source.css-ignored-vscode, meta.tag.metadata.style.end.html | #78dce8aa | — |
| entity.other.attribute-name, entity.name.tag.liquid, invalid.deprecated.entity.other.attribute-name, meta.embedded.block.blade storage.type.php | #ffd866 | |
| markup.inline.raw.string.markdown, punctuation.definition.raw.markdown, markup.fenced_code.block.markdown, markup.fenced_code.block.markdown punctuation, markup.raw.block.markdown | #ab9df2 | — |
| fenced_code.block.language | #ab9df2 | — |
| markup.list.unnumbered.markdown meta.paragraph.markdown | #78dce8 | — |
| punctuation.definition.list.begin | #78dce8 | — |
| entity.name.section, markup.heading.setext | #ffd866 | — |
| punctuation.definition.heading | #ffd866 | — |
| markup.underline.link, markup.underline.link.image | #78dce8 | — |
| markup.bold, punctuation.definition.bold | #78dce8 | bold |
| markup.italic, punctuation.definition.italic | #78dce8 | italic |
| markup.quote | #78dce8 | |
| punctuation.definition.quote.begin | #78dce8 | |
| entity.other.attribute-name.pseudo-class | #e991e3 | — |
| entity.other.attribute-name.pseudo-element | #e991e3 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.class punctuation.definition.entity | #78e8c6 | |
| entity.other.attribute-name.parent-selector-suffix punctuation.definition.entity | #78e8c6 | |
| support.type.property-name.css, support.type.vendored.property-name, meta.property-list entity.name.tag.css, meta.property-list.scss meta.property-list.scss entity.name.tag.css | #FFFFFFcc | — |
| source.css.scss entity.other.attribute-name.id , source.css entity.other.attribute-name.id , entity.other.attribute-name.id punctuation.definition.entity | #ab9df2 | — |
| entity.name.tag.reference, meta.property-list | #fc9867 | — |
| keyword.other.unit | #fc9867 | |
| support.constant.property-value, support.constant.font-name, meta.property-value.css | #fc9867 | — |
| constant.numeric | #fc9867 | — |
| entity.name.tag.css, meta.property-list.scss entity.name.tag.css | #78dce8 | — |
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 |
|---|---|---|
| strong | — | bold |
| header | #BD93F9 | — |
| source | #F8F8F2 | — |
| meta.diff, meta.diff.header | #6272A4 | — |
| markup.inserted | #50FA7B | — |
| markup.deleted | #FF5555 | — |
| markup.changed | #FFB86C | — |
| invalid | #FF5555 | underline italic |
| invalid.deprecated | #F8F8F2 | underline italic |
| entity.name.filename | #F1FA8C | — |
| markup.error | #FF5555 | — |
| markup.underline | — | underline |
| markup.bold | #FFB86C | bold |
| markup.heading | #BD93F9 | bold |
| markup.italic | #F1FA8C | italic |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #8BE9FD | — |
| markup.inline.raw, markup.raw.restructuredtext | #50FA7B | — |
| markup.underline.link, markup.underline.link.image | #8BE9FD | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #FF79C6 | — |
| entity.name.directive.restructuredtext, markup.quote | #F1FA8C | italic |
| meta.separator.markdown | #6272A4 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #50FA7B | — |
| punctuation.definition.constant.restructuredtext | #BD93F9 | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #BD93F9 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #F8F8F2 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #F1FA8C | — |
| entity.name.type.class, entity.name.class | #8BE9FD | |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #BD93F9 | — |
| entity.other.inherited-class | #8BE9FD | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #6272A4 | — |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class | #FF79C6 | — |
| comment.block.documentation entity.name.type | #8BE9FD | — |
| comment.block.documentation entity.name.type punctuation.definition.bracket | #8BE9FD | — |
| comment.block.documentation variable | #FFB86C | — |
| constant, variable.other.constant | #BD93F9 | — |
| constant.character.escape, constant.character.string.escape, constant.regexp | #FF79C6 | — |
| entity.name.tag | #FF79C6 | — |
| entity.other.attribute-name.parent-selector | #FF79C6 | — |
| entity.other.attribute-name | #50FA7B | — |
| entity.name.function, meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, keyword.operator.function.infix | #50FA7B | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #FFB86C | — |
| meta.decorator variable.other.readwrite, meta.decorator variable.other.property | #50FA7B | — |
| meta.decorator variable.other.object | #50FA7B | — |
| keyword, punctuation.definition.keyword | #FF79C6 | — |
| keyword.control.new, keyword.operator.new | — | bold |
| meta.selector | #FF79C6 | — |
| support | #8BE9FD | — |
| support.function.magic, support.variable, variable.other.predefined | #BD93F9 | — |
| support.function, support.type.property-name | — | — |
| constant.other.symbol.hashkey punctuation.definition.constant.ruby, entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, meta.group.double.toml, meta.group.toml, meta.object-binding-pattern-variable punctuation.destructuring, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.entity.other.inherited-class, punctuation.function.swift, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml, punctuation.separator.annotation | #FF79C6 | — |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.function-call punctuation, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor | #F8F8F2 | — |
| meta.string-contents.quoted.double punctuation.definition.variable, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.coffee, punctuation.section.embedded.end, punctuation.section.embedded.end source.php, punctuation.section.embedded.end source.ruby, punctuation.definition.variable.makefile | #FF79C6 | — |
| entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | #8BE9FD | — |
| constant.other.date, constant.other.timestamp | #FFB86C | — |
| variable.other.alias.yaml | #50FA7B | italic underline |
| storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def | #FF79C6 | — |
| entity.name.type, keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.php, storage.type.haskell, storage.type.ocaml | #8BE9FD | — |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #FFB86C | — |
| storage.modifier | #FF79C6 | — |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp | #F1FA8C | — |
| punctuation.definition.group.capture.regexp | #FF79C6 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #FF5555 | — |
| punctuation.definition.character-class.regexp | #8BE9FD | — |
| punctuation.definition.group.regexp | #FFB86C | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #FF5555 | — |
| meta.assertion.look-ahead.regexp | #50FA7B | — |
| string | #F1FA8C | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #E9F284 | — |
| punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #8BE9FE | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #6272A4 | — |
| variable, constant.other.key.perl, support.variable.property, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx | #F8F8F2 | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property, meta.variable.assignment.destructured.object.coffee variable | #FFB86C | — |
| meta.import variable.other.readwrite.alias, meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #F8F8F2 | |
| meta.selectionset.graphql variable | #F1FA8C | — |
| meta.selectionset.graphql meta.arguments variable | #F8F8F2 | — |
| entity.name.fragment.graphql, variable.fragment.graphql | #8BE9FD | — |
| constant.other.symbol.hashkey.ruby, keyword.operator.dereference.java, keyword.operator.navigation.groovy, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, storage.modifier.import, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.separator.list.comma.css, constant.language.empty-list.haskell | #F8F8F2 | — |
| source.shell variable.other | #BD93F9 | — |
| support.constant | #BD93F9 | |
| meta.scope.prerequisites.makefile | #F1FA8C | — |
| meta.attribute-selector.scss | #F1FA8C | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #F8F8F2 | — |
| meta.preprocessor.haskell | #6272A4 | — |
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}!`;
}
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}!`;
}