Relax Eyes Theme
Publisher: liweiThemes in package: 2
Relaxing color theme for save eyes.
Relaxing color theme for save eyes.
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 |
|---|---|---|
| variable.parameter,variable.parameter.js, variable.other.readwrite.js | #e29c45 | italic |
| keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical.js | #abb2bfff | italic |
| string, entity.other.inherited-class | #9ed048 | — |
| meta.block.js,meta.object-literal.key.js,text.html.vue-html, keyword.operator.assignment.js, support.type.property-name | #fcefe8 | — |
| variable.other,storage,keyword.control | #00AA55 | — |
| storage,keyword.control | #cb3a56 | — |
| variable.other.property,variable.other.property.js,support.variable.property | #cca4e3 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #44cef6 | — |
| variable.other.generic-type.haskell | #d55fde | — |
| storage.type.haskell | #d19a66 | — |
| support.variable.magic.python | #ef596f | — |
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python, | #abb2bf | — |
| variable.parameter.function.language.special.self.python | #e5c07b | — |
| storage.modifier.lifetime.rust | #abb2bf | — |
| support.function.std.rust | #61afef | — |
| entity.name.lifetime.rust | #e5c07b | — |
| variable.language.rust | #F64747 | — |
| support.constant.edge | #d55fde | — |
| constant.other.character-class.regexp | #ef596f | — |
| keyword.operator.quantifier.regexp | #d19a66 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #89ca78 | — |
| comment, punctuation.definition.comment | #7f848e | italic |
| comment markup.link | #5c6370 | — |
| markup.changed.diff | #e5c07b | — |
| meta.diff.header.from-file,punctuation.definition.from-file.diff | #61afef | — |
| markup.inserted.diff | #89ca78 | — |
| markup.deleted.diff | #ef596f | — |
| meta.function.c,meta.function.cpp | #ef596f | — |
| 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 | #abb2bf | — |
| punctuation.separator.key-value | #abb2bf | — |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.language.super | — | italic |
| keyword.operator.expression.import | #61afef | — |
| support.constant.math | #e5c07b | — |
| support.constant.property.math | #d19a66 | — |
| variable.other.constant | #e5c07b | — |
| storage.type.annotation.java, storage.type.object.array.java | #e5c07b | — |
| 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,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,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java | #abb2bf | — |
| meta.method.java | #61afef | — |
| storage.modifier.import.java,storage.type.java,storage.type.generic.java | #e5c07b | — |
| keyword.operator.instanceof.java | #d55fde | — |
| meta.definition.variable.name.java | #ef596f | — |
| support.constant.property-value.scss,support.constant.property-value.css | #d19a66 | — |
| keyword.operator.css,keyword.operator.scss,keyword.operator.less | #2bbac5 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #d19a66 | — |
| punctuation.separator.list.comma.css | #abb2bf | — |
| support.constant.color.w3c-standard-color-name.css | #d19a66 | — |
| 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,support.module.node | #e5c07b | — |
| entity.name.type.module | #e5c07b | — |
| support.variable.object.process,support.variable.object.node | #009FD4 | — |
| comment.line.double-slash,comment.block.documentation | — | italic |
| support.constant.json | #d19a66 | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #d55fde | — |
| support.type.object.console | #ef596f | — |
| support.variable.property.process | #d19a66 | — |
| support.function.console | #009FD4 | — |
| keyword.operator.delete | #d55fde | — |
| support.type.object.dom | #2bbac5 | — |
| support.variable.dom,support.variable.property.dom | #ef596f | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp | #d55fde | — |
| punctuation.separator.delimiter | #abb2bf | — |
| punctuation.separator.c,punctuation.separator.cpp | #d55fde | — |
| support.type.posix-reserved.c,support.type.posix-reserved.cpp | #2bbac5 | — |
| keyword.operator.sizeof.c,keyword.operator.sizeof.cpp | #d55fde | — |
| variable.parameter.function.language.python | #d19a66 | — |
| support.type.python | #2bbac5 | — |
| keyword.operator.logical.python | #d55fde | — |
| variable.parameter.function.python | #d19a66 | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python | #abb2bf | — |
| meta.function-call.generic.python | #61afef | — |
| constant.character.format.placeholder.other.python | #d19a66 | — |
| none | #abb2bf | — |
| keyword.operator | #abb2bf | — |
| keyword.operator.assignment.compound | #d55fde | — |
| keyword | #d55fde | — |
| variable | #D24D57 | — |
| variable.language | #c7444a | — |
| token.variable.parameter.java | #abb2bf | — |
| import.storage.java | #e5c07b | — |
| token.package.keyword | #d55fde | — |
| token.package | #abb2bf | — |
| entity.name.type.namespace | #e5c07b | — |
| support.class, entity.name.type.class | #e5c07b | — |
| entity.name.class.identifier.namespace.type | #e5c07b | — |
| entity.name.class, variable.other.class.js, variable.other.class.ts | #e5c07b | — |
| variable.other.class.php | #ef596f | — |
| entity.name.type | #e5c07b | — |
| keyword.control.import.python,keyword.control.flow.python | — | italic |
| control.elements, keyword.operator.less | #d19a66 | — |
| keyword.other.special-method | #61afef | — |
| 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.constant.property-value | #abb2bf | — |
| support.constant.font-name | #d19a66 | — |
| meta.tag | #c2ccd0 | — |
| constant.other.symbol | #2bbac5 | — |
| constant.numeric | #d19a66 | — |
| none | #d19a66 | — |
| none | #d19a66 | — |
| constant | #d19a66 | — |
| punctuation.definition.constant | #d19a66 | — |
| entity.name.tag | #177cb0 | — |
| entity.other.attribute-name | #d3b17d | — |
| entity.other.attribute-name.id | #61afef | normal |
| entity.other.attribute-name.class.css | #d19a66 | normal |
| meta.selector | #d55fde | — |
| none | #d19a66 | — |
| markup.heading | #ef596f | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #61afef | — |
| keyword.other.unit | #ef596f | — |
| markup.bold,todo.bold | #d19a66 | 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 | — |
| punctuation.definition.list.begin.markdown | #ef596f | — |
| markup.heading.setext | #abb2bf | — |
| punctuation.definition.bold.markdown | #d19a66 | — |
| markup.inline.raw.markdown | #89ca78 | — |
| markup.inline.raw.string.markdown | #89ca78 | — |
| punctuation.definition.list.markdown | #ef596f | — |
| markup.quote.markdown | #5c6370 | italic |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #ef596f | — |
| beginning.punctuation.definition.list.markdown | #ef596f | — |
| punctuation.definition.metadata.markdown | #ef596f | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #d55fde | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #61afef | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #2bbac5 | — |
| constant.character.escape | #2bbac5 | — |
| punctuation.section.embedded, variable.interpolation | #ef596f | — |
| 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 | #d55fde | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #d55fde | — |
| 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 | #abb2bf | — |
| punctuation.section.array.end.php | #abb2bf | — |
| invalid.illegal.non-null-typehinted.php | #f44747 | — |
| 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 | #61afef | — |
| 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 | #abb2bf | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #d19a66 | — |
| entity.name.goto-label.php,support.other.php | #61afef | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #2bbac5 | — |
| keyword.operator.regexp.php | #d55fde | — |
| keyword.operator.comparison.php | #2bbac5 | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #d55fde | — |
| meta.function.decorator.python | #61afef | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #2bbac5 | — |
| function.parameter | #d19a66 | — |
| function.parameter | #abb2bf | — |
| function.brace | #abb2bf | — |
| function.parameter.ruby, function.parameter.cs | #abb2bf | — |
| constant.language.symbol.ruby | #2bbac5 | — |
| rgb-value | #2bbac5 | — |
| inline-color-decoration rgb-value | #d19a66 | — |
| less rgb-value | #d19a66 | — |
| selector.sass | #ef596f | — |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #e5c07b | — |
| block.scope.end,block.scope.begin | #abb2bf | — |
| storage.type.cs | #e5c07b | — |
| entity.name.variable.local.cs | #ef596f | — |
| token.info-token | #61afef | — |
| token.warn-token | #d19a66 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #d55fde | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #d55fde | — |
| meta.template.expression | #abb2bf | — |
| keyword.operator.module | #d55fde | — |
| support.type.type.flowtype | #61afef | — |
| support.type.primitive | #e5c07b | — |
| meta.property.object | #ef596f | — |
| variable.parameter.function.js | #ef596f | — |
| keyword.other.template.begin | #89ca78 | — |
| keyword.other.template.end | #89ca78 | — |
| keyword.other.substitution.begin | #89ca78 | — |
| keyword.other.substitution.end | #89ca78 | — |
| keyword.operator.assignment.go, keyword.operator.address.go | #e5c07b | — |
| entity.name.package.go | #e5c07b | — |
| support.type.prelude.elm | #2bbac5 | — |
| support.constant.elm | #d19a66 | — |
| punctuation.quasi.element | #d55fde | — |
| constant.character.entity | #ef596f | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #2bbac5 | — |
| entity.global.clojure | #e5c07b | — |
| meta.symbol.clojure | #ef596f | — |
| constant.keyword.clojure | #2bbac5 | — |
| meta.arguments.coffee, variable.parameter.function.coffee | #ef596f | — |
| source.ini | #89ca78 | — |
| meta.scope.prerequisites.makefile | #ef596f | — |
| source.makefile | #e5c07b | — |
| storage.modifier.import.groovy | #e5c07b | — |
| meta.method.groovy | #61afef | — |
| meta.definition.variable.name.groovy | #ef596f | — |
| meta.definition.class.inherited.classes.groovy | #89ca78 | — |
| support.variable.semantic.hlsl | #e5c07b | — |
| support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, support.type.object.hlsl | #d55fde | — |
| text.variable, text.bracketed | #ef596f | — |
| support.type.swift, support.type.vb.asp | #e5c07b | — |
| entity.name.function.xi | #e5c07b | — |
| entity.name.class.xi | #2bbac5 | — |
| constant.character.character-class.regexp.xi | #ef596f | — |
| constant.regexp.xi | #d55fde | — |
| keyword.control.xi | #2bbac5 | — |
| invalid.xi | #abb2bf | — |
| beginning.punctuation.definition.quote.markdown.xi | #9AA83A | — |
| beginning.punctuation.definition.list.markdown.xi | #7f848e | — |
| constant.character.xi | #61afef | — |
| accent.xi | #61afef | — |
| wikiword.xi | #d19a66 | — |
| constant.other.color.rgb-value.xi | #ffffff | — |
| punctuation.definition.tag.xi | #5c6370 | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #e5c07b | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #ef596f | — |
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 |
|---|---|---|
| variable.language.this.js | #A626A4 | — |
| punctuation.separator.key-value.html | #AA5D00 | — |
| text.html.vue-html | #A626A4 | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #A0A1A7 | — |
| meta.object-literal.key.js | #AA6B51 | — |
| comment | #93a1a1 | italic |
| comment markup.link | #A0A1A7 | — |
| entity.name.type | #C18401 | — |
| entity.other.inherited-class | #50A14F | — |
| keyword | #A626A4 | — |
| keyword.control | #A626A4 | — |
| keyword.operator | #3e4b53 | — |
| keyword.other.special-method | #4078F2 | — |
| keyword.other.unit | #BF6EE0 | — |
| storage | #A626A4 | — |
| storage.type.annotation, storage.type.primitive | #A626A4 | — |
| storage.modifier.package, storage.modifier.import | #4078F2 | — |
| constant | #BF6EE0 | — |
| constant.variable | #BF6EE0 | — |
| constant.character.escape | #3e4b53 | — |
| constant.numeric | #BF6EE0 | — |
| constant.other.color | #3e4b53 | — |
| constant.other.symbol | #3e4b53 | — |
| variable | #3e4b53 | — |
| variable.interpolation | #CA1243 | — |
| variable.parameter | #D47500 | italic |
| string | #019875 | — |
| string.regexp | #3e4b53 | — |
| string.regexp source.ruby.embedded | #C18401 | — |
| string.other.link | #E45649 | — |
| punctuation.definition.comment | #A0A1A7 | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters, punctuation.definition.separator, punctuation.definition.seperator, punctuation.definition.array | #4078F2 | — |
| punctuation.definition.heading, punctuation.definition.identity | #4078F2 | — |
| punctuation.definition.bold | #C18401 | bold |
| punctuation.definition.italic | #A626A4 | italic |
| punctuation.section.embedded | #CA1243 | — |
| punctuation.section.method, punctuation.section.class, punctuation.section.inner-class | #4078F2 | — |
| support.class | #856514 | — |
| support.type | #3e4b53 | — |
| support.function | #4078F2 | — |
| support.function.any-method | #4078F2 | — |
| entity.name.function | #4078F2 | — |
| entity.name.class, entity.name.type.class | #C18401 | — |
| entity.name.section | #4078F2 | — |
| entity.name.tag | #3A539B | — |
| entity.other.attribute-name | #AA5D00 | italic |
| entity.other.attribute-name.id | #4078F2 | — |
| meta.class | #C18401 | — |
| meta.class.body | #4078F2 | — |
| meta.method-call, meta.method | #4078F2 | — |
| meta.definition.variable | #E45649 | — |
| meta.link | #BF6EE0 | — |
| meta.require | #4078F2 | — |
| meta.selector | #A626A4 | — |
| meta.separator | #4078F2 | — |
| meta.tag | #939393 | — |
| underline | — | — |
| none | #4078F2 | — |
| invalid.deprecated | #000000 | — |
| invalid.illegal | white | — |
| markup.bold | #BF6EE0 | bold |
| markup.changed | #A626A4 | — |
| markup.deleted | #E45649 | — |
| markup.italic | #A626A4 | italic |
| markup.heading | #E45649 | — |
| markup.heading punctuation.definition.heading | #4078F2 | — |
| markup.link | #A626A4 | — |
| markup.inserted | #50A14F | — |
| markup.quote | #BF6EE0 | — |
| markup.raw | #50A14F | — |
| source.c keyword.operator | #A626A4 | — |
| source.cpp keyword.operator | #A626A4 | — |
| source.cs keyword.operator | #A626A4 | — |
| source.css property-name, source.css property-value | #696C77 | — |
| source.css property-name.support, source.css property-value.support | #4078F2 | — |
| source.gfm markup | — | — |
| source.gfm link entity | #4078F2 | — |
| source.go storage.type.string | #A626A4 | — |
| source.ini keyword.other.definition.ini | #E45649 | — |
| source.java storage.modifier.import | #C18401 | — |
| source.java storage.type | #C18401 | — |
| source.java keyword.operator.instanceof | #A626A4 | — |
| source.java-properties meta.key-pair | #E45649 | — |
| source.java-properties meta.key-pair > punctuation | #4078F2 | — |
| source.js keyword.operator | #3e4b53 | — |
| source.js keyword.operator.delete, source.js keyword.operator.in, source.js keyword.operator.of, source.js keyword.operator.instanceof, source.js keyword.operator.new, source.js keyword.operator.typeof, source.js keyword.operator.void | #A626A4 | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #E45649 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #E45649 | — |
| 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 | #50A14F | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #3e4b53 | — |
| source.ruby constant.other.symbol > punctuation | inherit | — |
| source.python keyword.operator.logical.python | #A626A4 | — |
| source.python variable.parameter | #BF6EE0 | — |
| meta.attribute.rust | #606135 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #11C4C6 | — |
| keyword.unsafe.rust | #882328 | — |
| customrule | #4078F2 | — |
| support.type.property-name | #4078F2 | — |
| string.quoted.double punctuation | #50A14F | — |
| support.constant | #BF6EE0 | — |
| support.type.property-name.json | #E45649 | — |
| support.type.property-name.json punctuation | #E45649 | — |
| punctuation.separator.key-value.ts, punctuation.separator.key-value.js, punctuation.separator.key-value.tsx | #3e4b53 | — |
| source.js.embedded.html keyword.operator, source.ts.embedded.html keyword.operator | #3e4b53 | — |
| variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.tsx | #3873ca | — |
| support.variable.dom.js, support.variable.dom.ts | #E45649 | — |
| support.variable.property.dom.js, support.variable.property.dom.ts | #E45649 | — |
| meta.template.expression.js punctuation.definition, meta.template.expression.ts punctuation.definition | #CA1243 | — |
| source.ts punctuation.definition.typeparameters, source.js punctuation.definition.typeparameters, source.tsx punctuation.definition.typeparameters | #4078F2 | — |
| source.ts punctuation.definition.block, source.js punctuation.definition.block, source.tsx punctuation.definition.block | #4078F2 | — |
| source.ts punctuation.separator.comma, source.js punctuation.separator.comma, source.tsx punctuation.separator.comma | #4078F2 | — |
| support.variable.property.js, support.variable.property.ts, support.variable.property.tsx | #E45649 | — |
| keyword.control.default.js, keyword.control.default.ts, keyword.control.default.tsx | #E45649 | — |
| keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #A626A4 | — |
| keyword.operator.expression.of.js, keyword.operator.expression.of.ts, keyword.operator.expression.of.tsx | #A626A4 | — |
| meta.brace.round.js, meta.array-binding-pattern-variable.js, meta.brace.square.js, meta.brace.round.ts, meta.array-binding-pattern-variable.ts, meta.brace.square.ts, meta.brace.round.tsx, meta.array-binding-pattern-variable.tsx, meta.brace.square.tsx | #4078F2 | — |
| source.js punctuation.accessor, source.ts punctuation.accessor, source.tsx punctuation.accessor | #4078F2 | — |
| punctuation.terminator.statement.js, punctuation.terminator.statement.ts, punctuation.terminator.statement.tsx | #4078F2 | — |
| meta.array-binding-pattern-variable.js variable.other.readwrite.js, meta.array-binding-pattern-variable.ts variable.other.readwrite.ts, meta.array-binding-pattern-variable.tsx variable.other.readwrite.tsx | #BF6EE0 | — |
| source.js support.variable, source.ts support.variable, source.tsx support.variable | #E45649 | — |
| variable.other.constant.property.js, variable.other.constant.property.ts, variable.other.constant.property.tsx | #BF6EE0 | — |
| keyword.operator.new.ts, keyword.operator.new.j, keyword.operator.new.tsx | #A626A4 | — |
| source.ts keyword.operator, source.tsx keyword.operator | #3e4b53 | — |
| punctuation.separator.parameter.js, punctuation.separator.parameter.ts, punctuation.separator.parameter.tsx | #4078F2 | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #E45649 | — |
| constant.language.import-export-all.jsx, constant.language.import-export-all.tsx | #3e4b53 | — |
| keyword.control.as.js, keyword.control.as.ts, keyword.control.as.jsx, keyword.control.as.tsx | #4078F2 | — |
| variable.other.readwrite.alias.js, variable.other.readwrite.alias.ts, variable.other.readwrite.alias.jsx, variable.other.readwrite.alias.tsx | #E45649 | — |
| variable.other.constant.js, variable.other.constant.ts, variable.other.constant.jsx, variable.other.constant.tsx | #D47500 | italic |
| meta.export.default.js variable.other.readwrite.js, meta.export.default.ts variable.other.readwrite.ts | #D47500 | italic |
| source.js meta.template.expression.js punctuation.accessor, source.ts meta.template.expression.ts punctuation.accessor, source.tsx meta.template.expression.tsx punctuation.accessor | #50A14F | — |
| source.js meta.import-equals.external.js keyword.operator, source.jsx meta.import-equals.external.jsx keyword.operator, source.ts meta.import-equals.external.ts keyword.operator, source.tsx meta.import-equals.external.tsx keyword.operator | #4078F2 | — |
| entity.name.type.module.js,entity.name.type.module.ts,entity.name.type.module.jsx,entity.name.type.module.tsx | #50A14F | — |
| meta.class.js,meta.class.ts,meta.class.jsx,meta.class.tsx | #4078F2 | — |
| meta.definition.property.js variable, meta.definition.property.ts variable, meta.definition.property.jsx variable, meta.definition.property.tsx variable | #4078F2 | — |
| meta.type.parameters.js support.type, meta.type.parameters.jsx support.type, meta.type.parameters.ts support.type, meta.type.parameters.tsx support.type | #4078F2 | — |
| source.js meta.tag.js keyword.operator, source.jsx meta.tag.jsx keyword.operator, source.ts meta.tag.ts keyword.operator, source.tsx meta.tag.tsx keyword.operator | #4078F2 | — |
| meta.tag.js punctuation.section.embedded, meta.tag.jsx punctuation.section.embedded, meta.tag.ts punctuation.section.embedded, meta.tag.tsx punctuation.section.embedded | #4078F2 | — |
| meta.array.literal.js variable, meta.array.literal.jsx variable, meta.array.literal.ts variable, meta.array.literal.tsx variable | #C18401 | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #E45649 | — |
| constant.language.json | #3e4b53 | — |
| variable.other.constant.object.js, variable.other.constant.object.jsx, variable.other.constant.object.ts, variable.other.constant.object.tsx | #BF6EE0 | — |
| storage.type.property.js, storage.type.property.jsx, storage.type.property.ts, storage.type.property.tsx | #3e4b53 | — |
| meta.template.expression.js string.quoted punctuation.definition, meta.template.expression.jsx string.quoted punctuation.definition, meta.template.expression.ts string.quoted punctuation.definition, meta.template.expression.tsx string.quoted punctuation.definition | #50A14F | — |
| meta.template.expression.js string.template punctuation.definition.string.template, meta.template.expression.jsx string.template punctuation.definition.string.template, meta.template.expression.ts string.template punctuation.definition.string.template, meta.template.expression.tsx string.template punctuation.definition.string.template | #50A14F | — |
| keyword.operator.expression.in.js, keyword.operator.expression.in.jsx, keyword.operator.expression.in.ts, keyword.operator.expression.in.tsx | #A626A4 | — |
| source.python constant.other | #4078F2 | — |
| source.python constant | #BF6EE0 | — |
| constant.character.format.placeholder.other.python storage | #BF6EE0 | — |
| support.variable.magic.python | #E45649 | — |
| meta.function.parameters.python | #BF6EE0 | — |
| punctuation.separator.annotation.python | #4078F2 | — |
| punctuation.separator.parameters.python | #4078F2 | — |
| entity.name.variable.field.cs | #E45649 | — |
| source.cs keyword.operator | #4078F2 | — |
| variable.other.readwrite.cs | #4078F2 | — |
| variable.other.object.cs | #4078F2 | — |
| variable.other.object.property.cs | #4078F2 | — |
| entity.name.variable.property.cs | #4078F2 | — |
| storage.type.cs | #C18401 | — |
| keyword.other.unsafe.rust | #E45649 | — |
| markup.raw.block.markdown | #4078F2 | — |
| punctuation.definition.variable.shell | #E45649 | — |
| support.constant.property-value.css | #4078F2 | — |
| punctuation.definition.constant.css | #BF6EE0 | — |
| punctuation.separator.key-value.scss | #E45649 | — |
| punctuation.definition.constant.scss | #BF6EE0 | — |
| meta.property-list.scss punctuation.separator.key-value.scss | #4078F2 | — |
| storage.type.primitive.array.java | #C18401 | — |
| entity.name.section.markdown | #E45649 | — |
| punctuation.definition.heading.markdown | #E45649 | — |
| markup.heading.setext | #4078F2 | — |
| punctuation.definition.bold.markdown | #BF6EE0 | — |
| markup.inline.raw.markdown | #50A14F | — |
| beginning.punctuation.definition.list.markdown | #E45649 | — |
| markup.quote.markdown | #A0A1A7 | italic |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #4078F2 | — |
| punctuation.definition.metadata.markdown | #A626A4 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #A626A4 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #4078F2 | — |
| punctuation.separator.variable.ruby | #E45649 | — |
| variable.other.constant.ruby | #BF6EE0 | — |
| keyword.operator.other.ruby | #50A14F | — |
| punctuation.definition.variable.php | #E45649 | — |
| meta.class.php | #4078F2 | — |
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}!`;
}