Skip to main content
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
activityBar.activeBackground #000000 activityBar.background #000000 activityBar.border #00ff64 activityBar.foreground #14ff00 activityBar.inactiveForeground #048017 activityBarBadge.background #6800ff tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison #b487f5 — variable.other.generic-type.haskell #f78f77 — storage.type.haskell #e86a6a — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Purple Blaze — Purple Blaze
activityBarBadge.foreground
#ffffff
badge.background #6801ff
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #00ff28
breadcrumb.background #000000
breadcrumb.focusForeground #00ff28
breadcrumb.foreground #bcfdf1c1
button.background #5000a1
button.foreground #f6fbf6
button.hoverBackground #5803be
button.secondaryBackground #0a4d00
button.secondaryForeground #ffffff
button.secondaryHoverBackground #013b17
checkbox.background #131a2e
checkbox.border #000000
checkbox.foreground #ffffff
debugExceptionWidget.background #24254f
debugExceptionWidget.border #4f4f4f
debugToolBar.background #24254f
debugToolBar.border #4f4f4f
diffEditor.border #4ae06f
diffEditor.insertedTextBackground #50c40033
diffEditor.insertedTextBorder #ff000000
diffEditor.removedTextBackground #ff505033
dropdown.background #131a2e
dropdown.border #000000
dropdown.foreground #ffffff
editor.background #0e162c
editor.findMatchBackground #104480df
editor.findMatchBorder #9d9d9d
editor.findMatchHighlightBackground #50ff0042
editor.findMatchHighlightBorder #bababa00
editor.findRangeHighlightBackground #214b8466
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #376fa74d
editor.foreground #b7e4ffc3
editor.hoverHighlightBackground #ffffff4a
editor.inactiveSelectionBackground #282828
editor.lineHighlightBackground #a983ec2e
editor.lineHighlightBorder #212121
editor.rangeHighlightBackground #ff000010
editor.rangeHighlightBorder #a35e5e00
editor.selectionBackground #072f62c1
editor.selectionHighlightBackground #087d7d6a
editor.selectionHighlightBorder #2472c7
editor.wordHighlightBackground #434343b8
editor.wordHighlightStrongBackground #17618ab1
editorBracketMatch.background #2c679b66
editorBracketMatch.border #849bd18f
editorCodeLens.foreground #B9B9B9
editorCursor.background #fbfbfb
editorCursor.foreground #ff6000
editorError.background #B73A3400
editorError.border #e0222200
editorError.foreground #f9564ef1
editorGroup.border #8000ff
editorGroup.emptyBackground #181d2a
editorGroupHeader.border #000000
editorGroupHeader.tabsBackground #000000
editorGroupHeader.tabsBorder #000000
editorGutter.addedBackground #45b606
editorGutter.background #2e22226e
editorGutter.commentRangeForeground #c2fffc
editorGutter.deletedBackground #d51720
editorGutter.foldingControlForeground #c2fffc
editorGutter.modifiedBackground #0f9dc7
editorHoverWidget.background #1f1f1f
editorHoverWidget.border #454545
editorHoverWidget.foreground #c1c7c6
editorIndentGuide.activeBackground #0183c2
editorIndentGuide.background #6222c0e9
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #5b90be
editorLineNumber.activeForeground #8f43ff
editorLineNumber.foreground #5465c2
editorLink.activeForeground #41a0ee
editorMarkerNavigation.background #1D1D1D
editorMarkerNavigationError.background #d93a1a
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #fdc315
editorOverviewRuler.background #25252500
editorOverviewRuler.border #8000ff24
editorRuler.foreground #00ff405a
editorSuggestWidget.background #1d1d1d
editorSuggestWidget.border #0A0A0A
editorSuggestWidget.foreground #c2c0c0
editorSuggestWidget.highlightForeground #10cee2
editorSuggestWidget.selectedBackground #340082f1
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cc7300
editorWhitespace.foreground #ffffff2c
editorWidget.background #141321
editorWidget.foreground #e2dada
editorWidget.resizeBorder #00ff40
focusBorder #8000ff
foreground #cf88ff
gitDecoration.addedResourceForeground #7df9ff
gitDecoration.conflictingResourceForeground #ffdd24
gitDecoration.deletedResourceForeground #ff4734
gitDecoration.ignoredResourceForeground #cfcfcf
gitDecoration.modifiedResourceForeground #16c9ff
gitDecoration.stageDeletedResourceForeground #fd9c86
gitDecoration.stageModifiedResourceForeground #7ad8e2
gitDecoration.submoduleResourceForeground #4eaaff
gitDecoration.untrackedResourceForeground #5fcd5b
icon.foreground #cf88ff
input.background #131a2e
input.border #000000
input.foreground #ffffff
input.placeholderForeground #adadad
inputOption.activeBackground #0800ffd9
inputOption.activeBorder #fff00ad9
inputOption.activeForeground #ffffff
list.activeSelectionBackground #470090d9
list.activeSelectionForeground #e6fbd4
list.dropBackground #000000
list.focusBackground #470090a7
list.focusForeground #ffffff
list.highlightForeground #ff7800
list.hoverBackground #043ce252
list.hoverForeground #00ff40
list.inactiveSelectionBackground #470090a5
list.inactiveSelectionForeground #d8d9d8
listFilterWidget.background #2f00498f
listFilterWidget.noMatchesOutline #ff1700ed
listFilterWidget.outline #8ef256
menu.background #252526
menu.border #0000003c
menu.foreground #9ab0cd
menu.selectionBackground #410382d9
menu.selectionBorder #00000000
menu.selectionForeground #0bff1a
menu.separatorBackground #04fff3b9
menubar.selectionBackground #3a02687e
menubar.selectionBorder #470000
menubar.selectionForeground #38ff00
merge.commonContentBackground #212121
merge.commonHeaderBackground #3f3f3f
merge.currentContentBackground #27403B
merge.currentHeaderBackground #298c77
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #316db8
minimap.background #181d2a
minimap.errorHighlight #f9564ef1
minimap.findMatchHighlight #104480df
minimap.selectionHighlight #072f62c1
minimap.warningHighlight #cc7300
minimapGutter.addedBackground #45b606
minimapGutter.deletedBackground #d51720
minimapGutter.modifiedBackground #0f9dc7
notificationCenter.border #474747
notificationCenterHeader.background #3e1c88
notificationCenterHeader.foreground #ffffff
notifications.background #292d38
notifications.border #94beb0c1
notifications.foreground #a6bcff
notificationsErrorIcon.foreground #fd4646
notificationsInfoIcon.foreground #a3ff00
notificationsWarningIcon.foreground #ff9b00
notificationToast.border #776b6b
panel.background #000000
panel.border #6800ff
panelSection.border #07de00
panelTitle.activeBorder #00c3ff
panelTitle.activeForeground #00c3ff
panelTitle.inactiveForeground #9c98a1
peekView.border #007acc
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #252526
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #00f1fd70
pickerGroup.foreground #37ffec
progressBar.background #00e7ff
scrollbar.shadow #480090
scrollbarSlider.activeBackground #20ff00
scrollbarSlider.background #838e8272
scrollbarSlider.hoverBackground #066f03d9
selection.background #2c4d4c
settings.focusedRowBackground #ffffff07
settings.headerForeground #cf88ff
sideBar.background #000000
sideBar.border #8000ff
sideBar.dropBackground #000000
sideBar.foreground #88a6d5
sideBarSectionHeader.background #171717
sideBarSectionHeader.border #000000fd
sideBarSectionHeader.foreground #00d9fd
sideBarTitle.foreground #00b7d5
statusBar.background #000000
statusBar.border #6800ff
statusBar.debuggingBackground #30004b
statusBar.debuggingBorder #6200c2
statusBar.debuggingForeground #fffffffd
statusBar.foreground #3d7aee
statusBar.noFolderBackground #000000
statusBar.noFolderBorder #56048e
statusBar.noFolderForeground #3d7aee
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #b0b0b03e
statusBarItem.remoteBackground #2f0182f7
statusBarItem.remoteForeground #20ff00
tab.activeBackground #342177
tab.activeBorder #00ffcf
tab.activeBorderTop #000000
tab.activeForeground #fcfdfc
tab.border #000000
tab.hoverBackground #5b2fbc44
tab.hoverBorder #18ff26a5
tab.hoverForeground #ffffff
tab.inactiveBackground #47414199
tab.inactiveForeground #ffffffab
terminal.ansiBlack #000000
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #ff0000
terminal.ansiBrightWhite #f9f9f9
terminal.ansiBrightYellow #ffff00
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #D4D4D4
terminal.ansiYellow #e5e510
terminal.border #07de00
terminal.foreground #d1d0d0
terminal.selectionBackground #485cff41
terminalCursor.background #7d37e2
terminalCursor.foreground #ffffff
textLink.foreground #4eeeff
titleBar.activeBackground #0e0021
titleBar.activeForeground #d0d1d1
titleBar.border #000000
titleBar.inactiveBackground #0f101dd1
titleBar.inactiveForeground #00e7ffd9
tree.indentGuidesStroke #f96a6aa9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #b487f5
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #b7e4ffc3 —
variable.parameter.function.language.special.self.python #b487f5 —
storage.modifier.lifetime.rust #b7e4ffc3 —
support.function.std.rust #5de1ff —
entity.name.lifetime.rust #b487f5 —
variable.language.rust #b487f5 —
support.constant.edge #f78f77 —
constant.other.character-class.regexp #b487f5 —
keyword.operator.quantifier.regexp #e86a6a —
punctuation.definition.string.begin,punctuation.definition.string.end #ffcb00 —
variable.parameter.function #b7e4ffc3 —
comment markup.link #6c88f2 —
markup.changed.diff #b487f5 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #5de1ff —
markup.inserted.diff #ffcb00 —
markup.deleted.diff #b487f5 —
meta.function.c,meta.function.cpp #b487f5 —
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 #b7e4ffc3 —
punctuation.separator.key-value #b7e4ffc3 —
keyword.operator.expression.import #5de1ff —
support.constant.math #b487f5 —
support.constant.property.math #e86a6a —
variable.other.constant #b487f5 —
storage.type.annotation.java, storage.type.object.array.java #b487f5 —
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 #b7e4ffc3 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #b487f5 —
keyword.operator.instanceof.java #f78f77 —
meta.definition.variable.name.java #b487f5 —
keyword.operator.logical #b2fffb —
keyword.operator.bitwise #b2fffb —
keyword.operator.channel #b2fffb —
support.constant.property-value.scss,support.constant.property-value.css #e86a6a —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #b2fffb —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #e86a6a —
punctuation.separator.list.comma.css #b7e4ffc3 —
support.constant.color.w3c-standard-color-name.css #e86a6a —
support.type.vendored.property-name.css #b2fffb —
support.module.node,support.type.object.module,support.module.node #b487f5 —
entity.name.type.module #b487f5 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #b487f5 —
support.constant.json #e86a6a —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #f78f77 —
support.type.object.console #b487f5 —
support.variable.property.process #e86a6a —
entity.name.function,support.function.console #5de1ff —
keyword.operator.misc.rust #b7e4ffc3 —
keyword.operator.sigil.rust #f78f77 —
keyword.operator.delete #f78f77 —
support.type.object.dom #b2fffb —
support.variable.dom,support.variable.property.dom #b487f5 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #b2fffb —
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 #f78f77 —
punctuation.separator.delimiter #b7e4ffc3 —
punctuation.separator.c,punctuation.separator.cpp #f78f77 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #b2fffb —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #f78f77 —
variable.parameter.function.language.python #e86a6a —
support.type.python #b2fffb —
keyword.operator.logical.python #f78f77 —
variable.parameter.function.python #e86a6a —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #b7e4ffc3 —
meta.function-call.generic.python #5de1ff —
constant.character.format.placeholder.other.python #e86a6a —
keyword.operator #b7e4ffc3 —
keyword.operator.assignment.compound #f78f77 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #b2fffb —
entity.name.namespace #b487f5 —
variable.language #b487f5 —
token.variable.parameter.java #b7e4ffc3 —
import.storage.java #b487f5 —
token.package.keyword #f78f77 —
entity.name.function, meta.require, support.function.any-method, variable.function #5de1ff —
entity.name.type.namespace #b487f5 —
support.class, entity.name.type.class #b487f5 —
entity.name.class.identifier.namespace.type #b487f5 —
entity.name.class, variable.other.class.js, variable.other.class.ts #b487f5 —
variable.other.class.php #b487f5 —
control.elements, keyword.operator.less #e86a6a —
keyword.other.special-method #5de1ff —
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 #f78f77 —
token.storage.type.java #b487f5 —
support.type.property-name #b7e4ffc3 —
support.constant.property-value #b7e4ffc3 —
support.constant.font-name #e86a6a —
entity.other.inherited-class #b487f5 —
constant.other.symbol #b2fffb —
punctuation.definition.constant #e86a6a —
entity.other.attribute-name #e86a6a —
entity.other.attribute-name.id #5de1ff normal
entity.other.attribute-name.class.css #e86a6a normal
markup.heading punctuation.definition.heading, entity.name.section #5de1ff —
keyword.other.unit #b487f5 —
markup.bold,todo.bold #e86a6a —
punctuation.definition.bold #b487f5 —
markup.italic, punctuation.definition.italic,todo.emphasis #f78f77 —
entity.name.section.markdown #b487f5 —
punctuation.definition.heading.markdown #b487f5 —
punctuation.definition.list.begin.markdown #b487f5 —
markup.heading.setext #b7e4ffc3 —
punctuation.definition.bold.markdown #e86a6a —
markup.inline.raw.markdown #ffcb00 —
markup.inline.raw.string.markdown #ffcb00 —
punctuation.definition.list.markdown #b487f5 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #b487f5 —
beginning.punctuation.definition.list.markdown #b487f5 —
punctuation.definition.metadata.markdown #b487f5 —
markup.underline.link.markdown,markup.underline.link.image.markdown #f78f77 —
string.other.link.title.markdown,string.other.link.description.markdown #5de1ff —
constant.character.escape #b2fffb —
punctuation.section.embedded, variable.interpolation #b487f5 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #f78f77 —
invalid.illegal.bad-ampersand.html #b7e4ffc3 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #b487f5 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #b487f5 —
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 #ffcb00 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #b2fffb —
support.type.property-name.json #b487f5 —
support.type.property-name.json punctuation #b487f5 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #f78f77 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #f78f77 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #b487f5 —
keyword.operator.error-control.php #f78f77 —
keyword.operator.type.php #f78f77 —
punctuation.section.array.begin.php #b7e4ffc3 —
punctuation.section.array.end.php #b7e4ffc3 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #b487f5 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #5de1ff —
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 #b7e4ffc3 —
support.constant.core.rust #e86a6a —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #e86a6a —
entity.name.goto-label.php,support.other.php #5de1ff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #b2fffb —
keyword.operator.regexp.php #f78f77 —
keyword.operator.comparison.php #b2fffb —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #f78f77 —
meta.function.decorator.python #5de1ff —
support.token.decorator.python,meta.function.decorator.identifier.python #b2fffb —
function.parameter #b7e4ffc3 —
function.parameter.ruby, function.parameter.cs #b7e4ffc3 —
constant.language.symbol.ruby #b2fffb —
inline-color-decoration rgb-value #e86a6a —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #b487f5 —
block.scope.end,block.scope.begin #b7e4ffc3 —
entity.name.variable.local.cs #b487f5 —
token.error-token #f44747 —
token.debug-token #f78f77 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #f78f77 —
meta.template.expression #b7e4ffc3 —
keyword.operator.module #f78f77 —
support.type.type.flowtype #5de1ff —
support.type.primitive #b487f5 —
meta.property.object #b487f5 —
variable.parameter.function.js #b487f5 —
keyword.other.template.begin #ffcb00 —
keyword.other.template.end #ffcb00 —
keyword.other.substitution.begin #ffcb00 —
keyword.other.substitution.end #ffcb00 —
keyword.operator.assignment #b2fffb —
keyword.operator.assignment.go #b487f5 —
keyword.operator.arithmetic.go, keyword.operator.address.go #f78f77 —
entity.name.package.go #b487f5 —
support.type.prelude.elm #b2fffb —
support.constant.elm #e86a6a —
punctuation.quasi.element #f78f77 —
constant.character.entity #b487f5 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #b2fffb —
entity.global.clojure #b487f5 —
meta.symbol.clojure #b487f5 —
constant.keyword.clojure #b2fffb —
meta.arguments.coffee, variable.parameter.function.coffee #b487f5 —
meta.scope.prerequisites.makefile #b487f5 —
storage.modifier.import.groovy #b487f5 —
meta.method.groovy #5de1ff —
meta.definition.variable.name.groovy #b487f5 —
meta.definition.class.inherited.classes.groovy #ffcb00 —
support.variable.semantic.hlsl #b487f5 —
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 #f78f77 —
text.variable, text.bracketed #b487f5 —
support.type.swift, support.type.vb.asp #b487f5 —
entity.name.function.xi #b487f5 —
entity.name.class.xi #b2fffb —
constant.character.character-class.regexp.xi #b487f5 —
constant.regexp.xi #f78f77 —
keyword.control.xi #b2fffb —
beginning.punctuation.definition.quote.markdown.xi #ffcb00 —
beginning.punctuation.definition.list.markdown.xi #6c88f2 —
constant.character.xi #5de1ff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #6c88f2 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #b487f5 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #b487f5 —
meta.brace.square #b7e4ffc3 —
comment, punctuation.definition.comment #6c88f2 italic
markup.quote.markdown #6c88f2 —
punctuation.definition.block.sequence.item.yaml #b7e4ffc3 —
constant.language.symbol.elixir #b2fffb —
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
comment.line.double-slash,comment.block.documentation — italic
keyword.control.import.python,keyword.control.flow.python — italic
markup.italic.markdown — 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 } !` ;
}
fetchUser.ts
index.ts
README.md
src
components
fetchUser.ts
src
components
fetchUser.ts
fetchUser 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
~/my-project
main*
Button.tsx
31
$
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 } !` ;
}
Purple Blaze | Coding Theme