Nebula Purple and Teal Theme
Publisher: If StatementsThemes in package: 1
A cool dark, purple and teal theme for Visual Studio Code
A cool dark, purple and teal theme for Visual Studio Code
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 |
|---|---|---|
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #4ec9b0 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #a99fff | — |
| variable, support.variable | #84fcb5 | — |
| variable.other.constant, variable.other.enummember, entity.name.function.member | #b863ff | — |
| meta.object-literal.key | #84fcb5 | — |
| 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 | #dbb3fc | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #70c4b3 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #28ad93 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #59e7ca | — |
| keyword.operator.quantifier.regexp | #45b39d | — |
| constant.character | #a99fff | — |
| constant.character.escape | #4ec9b0 | — |
| entity.name.label | #efd8fc | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #4ec9b0 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #a99fff | — |
| variable, support.variable | #84fcb5 | — |
| variable.other.constant, variable.other.enummember, entity.name.function.member | #b863ff | — |
| meta.object-literal.key | #84fcb5 | — |
| 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 | #dbb3fc | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #70c4b3 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #28ad93 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #59e7ca | — |
| keyword.operator.quantifier.regexp | #45b39d | — |
| constant.character | #a99fff | — |
| constant.character.escape | #4ec9b0 | — |
| entity.name.label | #efd8fc | — |
| meta.embedded, source.groovy.embedded | #efd8fc | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #b863ff | — |
| comment | #888888 | — |
| constant.language | #dbb3fc | — |
| constant.numeric, entity.name.operator.custom-literal.number, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #b5cea8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #fff | — |
| entity.other.attribute-name | #9cdcfe | — |
| invalid | #ff4676 | — |
| markup.underline | — | underline |
| markup.bold | #b863ff | bold |
| markup.heading | #b863ff | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #dbb3fc | — |
| markup.changed | #b863ff | — |
| punctuation.definition.quote.begin.markdown | #b863ff | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #dbb3fc | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #b863ff | — |
| meta.preprocessor.string | #dbb3fc | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| meta.diff.header | #b863ff | — |
| storage | #b863ff | — |
| storage.type | #b863ff | — |
| storage.modifier, keyword.operator.noexcept | #b863ff | — |
| string, entity.name.operator.custom-literal.string, meta.embedded.assembly | #dbb3fc | — |
| string.tag | #dbb3fc | — |
| string.value | #dbb3fc | — |
| string.regexp | #4ec9b0 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #b863ff | — |
| meta.template.expression | #efd8fc | — |
| keyword | #b863ff | — |
| keyword.control | #b863ff | — |
| keyword.operator | #efd8fc | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #b863ff | — |
| keyword.other.unit | #b5cea8 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #efd8fc | — |
| variable.language | #b863ff | — |
| punctuation.definition.entity.css, entity.name.tag | #b863ff | — |
| entity.name.tag.css, 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, punctuation.separator.key-value.scss, punctuation.terminator.rule.css, punctuation.terminator.rule.scss | #84fcb5 | — |
| constant.other.color.rgb-value.hex.css, entity.other.attribute-name.scss, meta.property-value.scss, meta.definition.variable.scss, keyword.control.at-rule.keyframes.scss, keyword.operator.logical.scss, keyword.operator.scss, punctuation.definition.string.begin.scss, support.constant.property-value.css, support.constant.font-name.css, support.constant.media.css, constant.numeric.css, punctuation.definition.string.end.scss | #dbb3fc | — |
| keyword.other.unit.px.css, keyword.other.unit.pt.css, keyword.other.unit.vw.css, keyword.other.unit.vh.css, keyword.other.unit.em.css, keyword.other.unit.rem.css, keyword.other.unit.deg.css, keyword.other.unit.percentage.css, keyword.other.unit.s.css, keyword.other.unit.css, meta.property-list.scss | #df89f4 | — |
| keyword.control.at-rule.mixin.scss, keyword.control.at-rule.media.scss, keyword.control.at-rule.include.scss, keyword.control.at-rule.import.scss, keyword.control.at-rule.keyframes.scss, keyword.control.at-rule.scss | #4ec9b0 | — |
| string.quoted.single.css, string.quoted.double.css, string.quoted.single.scss, string.quoted.double.attribute-value.scss | #a99fff | — |
| support.function.misc.scss, source.css.scss | #dbb3fc | — |
| meta.at-rule.import.scss, meta.at-rule.mixin.scss, meta.at-rule.media.scss | #84fcb5 | — |
| variable.css, variable.scss, variable.other.less | #b863ff | italic bold |
| support.type.vendored.property-name, support.type.property-name, source.coffee.embedded | #b863ff | — |
| support.type.vendored.property-name | #b863ff | — |
| entity.name.function.scss | #a99fff | italic |
| entity.name.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #867ce2 | — |
| entity.other.attribute-name.html | #a99fff | — |
| string.quoted.double.html, meta.attribute.class.html | #df89f4 | — |
| punctuation.separator.key-value.html | #b863ff | — |
| text.html, text.html.php | #efd8fc | — |
| entity.name.function.js, support.variable.js | #dbb3fc | — |
| meta.brace.round.js, punctuation.definition.block.js, punctuation.separator.comma.js | #84fcb5 | — |
| string.quoted.single.js, string.quoted.double.js | #a99fff | — |
| variable.other.readwrite.js, meta.definition.variable.js, variable.other.object.property.js, variable.other.constant.js, variable.js, variable.parameter.js, variable.other.property.js, variable.support.variable.js, meta.definition.variable.name.js, meta.function.expression.js | #b863ff | — |
| keyword.operator.comparison.js, keyword.operator.relational.js, keyword.control.flow.js, storage.type.js, meta.function.js | #84fcb5 | — |
| keyword.operator.assignment.js | #d8fde7 | — |
| storage.type.function.js | #a99fff | — |
| meta.function.expression.js, keyword.control.conditional.js, meta.object-literal.key.js | #a99fff | — |
| support.function.js, support.function.console.js | #a99fff | — |
| keyword.other.important.scss, keyword.other.important.css, constant.numeric.decimal.js | #4ec9b0 | — |
| punctuation.accessor.js | #84fcb5 | — |
| constant.language.boolean.true.js | #08ff6f | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #4ec9b0 | — |
| variable.other.php, entity.name.type.class.php, support.function.basic_functions.php, support.function.magic.php | #b863ff | — |
| support.function.var.php | #b863ff | — |
| storage.modifier.php | #dbb3fc | — |
| punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.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.class.begin.bracket.curly.php, punctuation.definition.class.end.bracket.curly.php | #b863ff | — |
| string.quoted.single.php, string.quoted.double.php, constant.numeric.decimal.php | #a99fff | — |
| constant.other.php, support.function.string.php | #cc85e7 | — |
| storage.type.class.php, meta.class.php, storage.type.function.php, meta.function.php, keyword.operator.logical.php, keyword.control.if.php, keyword.control.endif.php, keyword.control.else.php, keyword.control.elseif.php, keyword.control.foreach.php, keyword.control.endforeach.php, keyword.control.loop.php, keyword.control.endloop.php, keyword.control.exit.php, storage.modifier.extends.php, support.function.construct.output.php, support.function.construct.php, constant.language.php, keyword.control.switch.php, keyword.control.case.php, keyword.control.die.php, keyword.control.break.php, keyword.control.return.php, keyword.control.default.php | #84fcb5 | — |
| entity.name.function.php, entity.other.inherited-class.php, variable.other.property.php | #efd8fc | — |
| keyword.operator.class.php, keyword.operator.key.php, keyword.operator.comparison.php, keyword.operator.assignment.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.separator.delimiter.php, punctuation.terminator.expression.php, punctuation.section.array.begin.php, punctuation.section.array.end.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php | #84fcb5 | — |
| string.quoted.double.sql.php, string.quoted.single.sql, keyword.other.DML.sql | #a99fff | — |
| source.sql.embedded.php | #d973f8 | — |
| keyword.blade, support.function.construct.begin.blade, support.function.construct.end.blade | #84fcb5 | — |
| string.quoted.double.json, string.quoted.single.json | #dbb3fc | — |
| punctuation.separator.json, punctuation.definition.begin.bracket.curly.json, punctuation.definition.end.bracket.curly.json, punctuation.definition.class.begin.bracket.curly.json, punctuation.definition.class.end.bracket.curly.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #84fcb5 | — |
| punctuation.separator.dictionary.key-value.json | #4ec9b0 | — |
| constant.language.boolean.false, constant.language.boolean.false.js, constant.language.boolean.false.php | #ff4676 | italic |
| constant.language.boolean.true, constant.language.boolean.true.js, constant.language.boolean.true.php | #08ff6f | italic |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #4ec9b0 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #a99fff | — |
| variable, support.variable | #84fcb5 | — |
| variable.other.constant, variable.other.enummember, entity.name.function.member | #b863ff | — |
| meta.object-literal.key | #84fcb5 | — |
| 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 | #dbb3fc | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #70c4b3 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #28ad93 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #59e7ca | — |
| keyword.operator.quantifier.regexp | #45b39d | — |
| constant.character | #a99fff | — |
| constant.character.escape | #4ec9b0 | — |
| entity.name.label | #efd8fc | — |
| meta.embedded, source.groovy.embedded | #efd8fc | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #b863ff | — |
| comment | #888888 | — |
| constant.language | #dbb3fc | — |
| constant.numeric, entity.name.operator.custom-literal.number, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #b5cea8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #fff | — |
| entity.other.attribute-name | #9cdcfe | — |
| invalid | #ff4676 | — |
| markup.underline | — | underline |
| markup.bold | #b863ff | bold |
| markup.heading | #b863ff | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #dbb3fc | — |
| markup.changed | #b863ff | — |
| punctuation.definition.quote.begin.markdown | #b863ff | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #dbb3fc | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #b863ff | — |
| meta.preprocessor.string | #dbb3fc | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| meta.diff.header | #b863ff | — |
| storage | #b863ff | — |
| storage.type | #b863ff | — |
| storage.modifier, keyword.operator.noexcept | #b863ff | — |
| string, entity.name.operator.custom-literal.string, meta.embedded.assembly | #dbb3fc | — |
| string.tag | #dbb3fc | — |
| string.value | #dbb3fc | — |
| string.regexp | #4ec9b0 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #b863ff | — |
| meta.template.expression | #efd8fc | — |
| keyword | #b863ff | — |
| keyword.control | #b863ff | — |
| keyword.operator | #efd8fc | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #b863ff | — |
| keyword.other.unit | #b5cea8 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #efd8fc | — |
| variable.language | #b863ff | — |
| punctuation.definition.entity.css, entity.name.tag | #b863ff | — |
| entity.name.tag.css, 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, punctuation.separator.key-value.scss, punctuation.terminator.rule.css, punctuation.terminator.rule.scss | #84fcb5 | — |
| constant.other.color.rgb-value.hex.css, entity.other.attribute-name.scss, meta.property-value.scss, meta.definition.variable.scss, keyword.control.at-rule.keyframes.scss, keyword.operator.logical.scss, keyword.operator.scss, punctuation.definition.string.begin.scss, support.constant.property-value.css, support.constant.font-name.css, support.constant.media.css, constant.numeric.css, punctuation.definition.string.end.scss | #dbb3fc | — |
| keyword.other.unit.px.css, keyword.other.unit.pt.css, keyword.other.unit.vw.css, keyword.other.unit.vh.css, keyword.other.unit.em.css, keyword.other.unit.rem.css, keyword.other.unit.deg.css, keyword.other.unit.percentage.css, keyword.other.unit.s.css, keyword.other.unit.css, meta.property-list.scss | #df89f4 | — |
| keyword.control.at-rule.mixin.scss, keyword.control.at-rule.media.scss, keyword.control.at-rule.include.scss, keyword.control.at-rule.import.scss, keyword.control.at-rule.keyframes.scss, keyword.control.at-rule.scss | #4ec9b0 | — |
| string.quoted.single.css, string.quoted.double.css, string.quoted.single.scss, string.quoted.double.attribute-value.scss | #a99fff | — |
| support.function.misc.scss, source.css.scss | #dbb3fc | — |
| meta.at-rule.import.scss, meta.at-rule.mixin.scss, meta.at-rule.media.scss | #84fcb5 | — |
| variable.css, variable.scss, variable.other.less | #b863ff | italic bold |
| support.type.vendored.property-name, support.type.property-name, source.coffee.embedded | #b863ff | — |
| support.type.vendored.property-name | #b863ff | — |
| entity.name.function.scss | #a99fff | italic |
| entity.name.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #867ce2 | — |
| entity.other.attribute-name.html | #a99fff | — |
| string.quoted.double.html, meta.attribute.class.html | #df89f4 | — |
| punctuation.separator.key-value.html | #b863ff | — |
| text.html, text.html.php | #efd8fc | — |
| entity.name.function.js, support.variable.js | #dbb3fc | — |
| meta.brace.round.js, punctuation.definition.block.js, punctuation.separator.comma.js | #84fcb5 | — |
| string.quoted.single.js, string.quoted.double.js | #a99fff | — |
| variable.other.readwrite.js, meta.definition.variable.js, variable.other.object.property.js, variable.other.constant.js, variable.js, variable.parameter.js, variable.other.property.js, variable.support.variable.js, meta.definition.variable.name.js, meta.function.expression.js | #b863ff | — |
| keyword.operator.comparison.js, keyword.operator.relational.js, keyword.control.flow.js, storage.type.js, meta.function.js | #84fcb5 | — |
| keyword.operator.assignment.js | #d8fde7 | — |
| storage.type.function.js | #a99fff | — |
| meta.function.expression.js, keyword.control.conditional.js, meta.object-literal.key.js | #a99fff | — |
| support.function.js, support.function.console.js | #a99fff | — |
| keyword.other.important.scss, keyword.other.important.css, constant.numeric.decimal.js | #4ec9b0 | — |
| punctuation.accessor.js | #84fcb5 | — |
| constant.language.boolean.true.js | #08ff6f | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #4ec9b0 | — |
| variable.other.php, entity.name.type.class.php, support.function.basic_functions.php, support.function.magic.php | #b863ff | — |
| support.function.var.php | #b863ff | — |
| storage.modifier.php | #dbb3fc | — |
| punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.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.class.begin.bracket.curly.php, punctuation.definition.class.end.bracket.curly.php | #b863ff | — |
| string.quoted.single.php, string.quoted.double.php, constant.numeric.decimal.php | #a99fff | — |
| constant.other.php, support.function.string.php | #cc85e7 | — |
| storage.type.class.php, meta.class.php, storage.type.function.php, meta.function.php, keyword.operator.logical.php, keyword.control.if.php, keyword.control.endif.php, keyword.control.else.php, keyword.control.elseif.php, keyword.control.foreach.php, keyword.control.endforeach.php, keyword.control.loop.php, keyword.control.endloop.php, keyword.control.exit.php, storage.modifier.extends.php, support.function.construct.output.php, support.function.construct.php, constant.language.php, keyword.control.switch.php, keyword.control.case.php, keyword.control.die.php, keyword.control.break.php, keyword.control.return.php, keyword.control.default.php | #84fcb5 | — |
| entity.name.function.php, entity.other.inherited-class.php, variable.other.property.php | #efd8fc | — |
| keyword.operator.class.php, keyword.operator.key.php, keyword.operator.comparison.php, keyword.operator.assignment.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.separator.delimiter.php, punctuation.terminator.expression.php, punctuation.section.array.begin.php, punctuation.section.array.end.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php | #84fcb5 | — |
| string.quoted.double.sql.php, string.quoted.single.sql, keyword.other.DML.sql | #a99fff | — |
| source.sql.embedded.php | #d973f8 | — |
| keyword.blade, support.function.construct.begin.blade, support.function.construct.end.blade | #84fcb5 | — |
| string.quoted.double.json, string.quoted.single.json | #dbb3fc | — |
| punctuation.separator.json, punctuation.definition.begin.bracket.curly.json, punctuation.definition.end.bracket.curly.json, punctuation.definition.class.begin.bracket.curly.json, punctuation.definition.class.end.bracket.curly.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #84fcb5 | — |
| punctuation.separator.dictionary.key-value.json | #4ec9b0 | — |
| constant.language.boolean.false, constant.language.boolean.false.js, constant.language.boolean.false.php | #ff4676 | italic |
| constant.language.boolean.true, constant.language.boolean.true.js, constant.language.boolean.true.php | #08ff6f | italic |
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}!`;
}