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 #ffffff00 activityBar.background #171419 activityBar.border #171419 activityBar.foreground #b68cbb activityBar.inactiveForeground #f6e7fe62 activityBarBadge.background #b471bf 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 #ffaf74 — variable.other.generic-type.haskell #fb88ff — storage.type.haskell #78cfec — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Purple Horizon — Purple Horizon
activityBarBadge.foreground #f6e7fe
badge.background #534056bf
badge.foreground #c86ed7
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #131115
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #cccccc
button.background #b471bf
button.foreground #171419
button.hoverBackground #b471bfd9
button.secondaryBackground #b471bf34
button.secondaryForeground #f6e7fe
button.secondaryHoverBackground #b471bf1c
checkbox.background #131115
checkbox.border #00000000
checkbox.foreground #d6badd
debugExceptionWidget.background #1e1b21
debugExceptionWidget.border #d475ec10
debugToolBar.background #1e1b21
debugToolBar.border #d475ec10
diffEditor.border #151515
diffEditor.insertedTextBackground #78963233
diffEditor.insertedTextBorder #ffffff00
diffEditor.removedTextBackground #c7141433
dropdown.background #131115
dropdown.border #00000000
dropdown.foreground #d6badd
editor.background #131115
editor.findMatchBackground #9f80368d
editor.findMatchBorder #9f8036
editor.findMatchHighlightBackground #cd600064
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #d89ae004
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #d89ae01c
editor.foreground #abb2bf
editor.hoverHighlightBackground #ffffff15
editor.inactiveSelectionBackground #d89ae03c
editor.lineHighlightBackground #f6e7fe08
editor.lineHighlightBorder #ffffff08
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #d89ae018
editor.selectionHighlightBackground #d89ae01c
editor.selectionHighlightBorder #d989e468
editor.wordHighlightBackground #383838b8
editor.wordHighlightBorder #00000000
editor.wordHighlightStrongBackground #9a4bdb38
editor.wordHighlightStrongBorder #473e3e00
editorBracketMatch.background #FFFFFF1A
editorBracketMatch.border #90909062
editorCodeLens.foreground #B9B9B9
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #7b171200
editorError.border #ffffff00
editorError.foreground #cb484897
editorGroup.border #323232
editorGroup.emptyBackground #131115
editorGroupHeader.border #c679d940
editorGroupHeader.tabsBackground #131115
editorGroupHeader.tabsBorder #ffffff10
editorGutter.addedBackground #86bc0eb3
editorGutter.background #131115
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #991164
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c9d7b
editorHoverWidget.background #1e1b21
editorHoverWidget.border #d89ae014
editorHoverWidget.foreground #f6e7fe
editorIndentGuide.activeBackground #d6badd68
editorIndentGuide.background #ffffff0f
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff4c
editorLineNumber.activeForeground #f6e7fe
editorLineNumber.foreground #f6e7fe3a
editorLink.activeForeground #37678e
editorMarkerNavigation.background #1e1b21
editorMarkerNavigationError.background #f4877193
editorMarkerNavigationInfo.background #75beff93
editorMarkerNavigationWarning.background #cca70093
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f16
editorRuler.foreground #ffffff00
editorSuggestWidget.background #1e1b21
editorSuggestWidget.border #d89ae014
editorSuggestWidget.foreground #7D7D7D
editorSuggestWidget.highlightForeground #b471bf
editorSuggestWidget.selectedBackground #9a68a134
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca7009b
editorWhitespace.foreground #f6e7fe10
editorWidget.background #1e1b21
editorWidget.foreground #cccccc
editorWidget.resizeBorder #b471bf
focusBorder #b471bf
foreground #f6e7fe
gitDecoration.addedResourceForeground #c765b7
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #c74e39
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #8a73c9
icon.foreground #f6e7fe
input.background #131115
input.border #00000000
input.foreground #d6badd
input.placeholderForeground #d89ae06c
inputOption.activeBackground #d89ae028
inputOption.activeBorder #ffffff00
inputOption.activeForeground #f6e7fe
list.activeSelectionBackground #473549
list.activeSelectionForeground #f6e7fe
list.dropBackground #b68cbb10
list.focusBackground #b68cbb4e
list.focusForeground #f6e7fe
list.highlightForeground #b471bf
list.hoverBackground #d89ae00c
list.hoverForeground #cccccc
list.inactiveSelectionBackground #b68cbb1c
list.inactiveSelectionForeground #d89ae0
listFilterWidget.background #534056
listFilterWidget.noMatchesOutline #e60a0adb
listFilterWidget.outline #ffffff00
menu.background #1e1b21
menu.border #00000000
menu.foreground #f6e7fe
menu.selectionBackground #d89ae01c
menu.selectionBorder #ffffff00
menu.selectionForeground #d89ae0
menu.separatorBackground #515151
menubar.selectionBackground #d89ae01c
menubar.selectionBorder #ffffff00
menubar.selectionForeground #d89ae0
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403b
merge.currentHeaderBackground #158472
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #131115
minimap.errorHighlight #cb484897
minimap.findMatchHighlight #9f80368d
minimap.selectionHighlight #d89ae018
minimap.warningHighlight #cca7009b
minimapGutter.addedBackground #86bc0eb3
minimapGutter.deletedBackground #991164
minimapGutter.modifiedBackground #0c9d7b
notificationCenter.border #d475ec2c
notificationCenterHeader.background #171419
notificationCenterHeader.foreground #e7b1ee
notifications.background #1e1b21
notifications.border #d475ec2c
notifications.foreground #f6e7fe
notificationsErrorIcon.foreground #d15858
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #FFD668
notificationToast.border #d475ec2c
panel.background #171419
panel.border #d6badd2c
panelSection.border #f6e7fe3a
panelTitle.activeBorder #b471bf
panelTitle.activeForeground #b471bf
panelTitle.inactiveForeground #f6e7fe74
peekView.border #b471bf
peekViewEditor.background #1a131b
peekViewEditor.matchHighlightBackground #eeba1e30
peekViewEditor.matchHighlightBorder #eeba1e42
peekViewEditorGutter.background #120c13
peekViewResult.background #131115
peekViewResult.fileForeground #f6e7fe
peekViewResult.lineForeground #909090
peekViewResult.matchHighlightBackground #ab42875c
peekViewResult.selectionBackground #d89ae01c
peekViewResult.selectionForeground #f6e7fe
peekViewTitle.background #131115
peekViewTitleDescription.foreground #725077
peekViewTitleLabel.foreground #efc0f7
pickerGroup.border #d475ec87
pickerGroup.foreground #b471bf
progressBar.background #b471bfe7
scrollbar.shadow #171419
scrollbarSlider.activeBackground #ffffff20
scrollbarSlider.background #d89ae02a
scrollbarSlider.hoverBackground #ffffff16
selection.background #b471bf72
settings.focusedRowBackground #ffffff07
settings.headerForeground #f6e7fe
sideBar.background #131115
sideBar.border #1c1524
sideBar.dropBackground #b68cbb10
sideBar.foreground #f6e7fe
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #92171700
sideBarSectionHeader.foreground #e6d0ed
sideBarTitle.foreground #e3c5ec
statusBar.background #171419
statusBar.border #ffffff00
statusBar.debuggingBackground #9a4bdb
statusBar.debuggingBorder #ffffff00
statusBar.debuggingForeground #ffecec
statusBar.foreground #f6e7fe
statusBar.noFolderBackground #68217a
statusBar.noFolderBorder #ffffff00
statusBar.noFolderForeground #f6e7fe
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #d89ae01c
statusBarItem.remoteBackground #b471bf
statusBarItem.remoteForeground #131115
tab.activeBackground #131115
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #d89ae0
tab.border #ffffff10
tab.hoverBackground #d89ae01c
tab.hoverBorder #b471bf95
tab.inactiveBackground #171419
tab.inactiveForeground #f6e7fe78
terminal.ansiBlack #000000
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #FFFFFF
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #D4D4D4
terminal.ansiYellow #e5e510
terminal.border #f6e7fe3a
terminal.foreground #f6e7fecd
terminal.selectionBackground #d89ae01c
terminalCursor.background #9a4ba7ab
terminalCursor.foreground #f6e7fe
textLink.foreground #b471bf
titleBar.activeBackground #171419
titleBar.activeForeground #f6e7febb
titleBar.border #00000000
titleBar.inactiveBackground #17141968
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #f6e7fe48
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000080 #ffaf74
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #abb2bf —
variable.parameter.function.language.special.self.python #fb6877 —
storage.modifier.lifetime.rust #abb2bf —
support.function.std.rust #69d3b4 —
entity.name.lifetime.rust #fb6877 —
variable.language.rust #ffaf74 —
support.constant.edge #fb88ff —
constant.other.character-class.regexp #ffaf74 —
keyword.operator.quantifier.regexp #78cfec —
punctuation.definition.string.begin,punctuation.definition.string.end #fff76df1 —
variable.parameter.function #abb2bf —
comment markup.link #a08ca391 —
markup.changed.diff #fb6877 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #69d3b4 —
markup.inserted.diff #fff76df1 —
markup.deleted.diff #ffaf74 —
meta.function.c,meta.function.cpp #ffaf74 —
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 —
keyword.operator.expression.import #69d3b4 —
support.constant.math #fb6877 —
support.constant.property.math #78cfec —
variable.other.constant #fb6877 —
storage.type.annotation.java, storage.type.object.array.java #fb6877 —
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 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #fb6877 —
keyword.operator.instanceof.java #fb88ff —
meta.definition.variable.name.java #ffaf74 —
keyword.operator.logical #f6e7fe —
keyword.operator.bitwise #f6e7fe —
keyword.operator.channel #f6e7fe —
support.constant.property-value.scss,support.constant.property-value.css #78cfec —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #f6e7fe —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #78cfec —
punctuation.separator.list.comma.css #abb2bf —
support.constant.color.w3c-standard-color-name.css #78cfec —
support.type.vendored.property-name.css #f6e7fe —
support.module.node,support.type.object.module,support.module.node #fb6877 —
entity.name.type.module #fb6877 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ffaf74 —
support.constant.json #78cfec —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #fb88ff —
support.type.object.console #ffaf74 —
support.variable.property.process #78cfec —
entity.name.function,support.function.console #69d3b4 —
keyword.operator.misc.rust #abb2bf —
keyword.operator.sigil.rust #fb88ff —
keyword.operator.delete #fb88ff —
support.type.object.dom #f6e7fe —
support.variable.dom,support.variable.property.dom #ffaf74 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #f6e7fe —
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 #fb88ff —
punctuation.separator.delimiter #abb2bf —
punctuation.separator.c,punctuation.separator.cpp #fb88ff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #f6e7fe —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #fb88ff —
variable.parameter.function.language.python #78cfec —
support.type.python #f6e7fe —
keyword.operator.logical.python #fb88ff —
variable.parameter.function.python #78cfec —
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 #69d3b4 —
constant.character.format.placeholder.other.python #78cfec —
keyword.operator.assignment.compound #fb88ff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #f6e7fe —
entity.name.namespace #fb6877 —
variable.language #fb6877 —
token.variable.parameter.java #abb2bf —
import.storage.java #fb6877 —
token.package.keyword #fb88ff —
entity.name.function, meta.require, support.function.any-method, variable.function #69d3b4 —
entity.name.type.namespace #fb6877 —
support.class, entity.name.type.class #fb6877 —
entity.name.class.identifier.namespace.type #fb6877 —
entity.name.class, variable.other.class.js, variable.other.class.ts #fb6877 —
variable.other.class.php #ffaf74 —
control.elements, keyword.operator.less #78cfec —
keyword.other.special-method #69d3b4 —
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 #fb88ff —
token.storage.type.java #fb6877 —
support.type.property-name #abb2bf —
support.constant.property-value #abb2bf —
support.constant.font-name #78cfec —
entity.other.inherited-class #fb6877 —
constant.other.symbol #f6e7fe —
punctuation.definition.constant #78cfec —
entity.other.attribute-name #78cfec —
entity.other.attribute-name.id #69d3b4 normal
entity.other.attribute-name.class.css #78cfec normal
markup.heading punctuation.definition.heading, entity.name.section #69d3b4 —
keyword.other.unit #ffaf74 —
markup.bold,todo.bold #78cfec —
punctuation.definition.bold #fb6877 —
markup.italic, punctuation.definition.italic,todo.emphasis #fb88ff —
entity.name.section.markdown #ffaf74 —
punctuation.definition.heading.markdown #ffaf74 —
punctuation.definition.list.begin.markdown #ffaf74 —
markup.heading.setext #abb2bf —
punctuation.definition.bold.markdown #78cfec —
markup.inline.raw.markdown #fff76df1 —
markup.inline.raw.string.markdown #fff76df1 —
punctuation.definition.list.markdown #ffaf74 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ffaf74 —
beginning.punctuation.definition.list.markdown #ffaf74 —
punctuation.definition.metadata.markdown #ffaf74 —
markup.underline.link.markdown,markup.underline.link.image.markdown #fb88ff —
string.other.link.title.markdown,string.other.link.description.markdown #69d3b4 —
constant.character.escape #f6e7fe —
punctuation.section.embedded, variable.interpolation #ffaf74 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #fb88ff —
invalid.illegal.bad-ampersand.html #abb2bf —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ffaf74 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ffaf74 —
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 #fff76df1 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #f6e7fe —
support.type.property-name.json #ffaf74 —
support.type.property-name.json punctuation #ffaf74 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #fb88ff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #fb88ff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #fb6877 —
keyword.operator.error-control.php #fb88ff —
keyword.operator.type.php #fb88ff —
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 #fb6877 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #69d3b4 —
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.core.rust #78cfec —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #78cfec —
entity.name.goto-label.php,support.other.php #69d3b4 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #f6e7fe —
keyword.operator.regexp.php #fb88ff —
keyword.operator.comparison.php #f6e7fe —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #fb88ff —
meta.function.decorator.python #69d3b4 —
support.token.decorator.python,meta.function.decorator.identifier.python #f6e7fe —
function.parameter #abb2bf —
function.parameter.ruby, function.parameter.cs #abb2bf —
constant.language.symbol.ruby #f6e7fe —
inline-color-decoration rgb-value #78cfec —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #fb6877 —
block.scope.end,block.scope.begin #abb2bf —
entity.name.variable.local.cs #ffaf74 —
token.error-token #f44747 —
token.debug-token #fb88ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #fb88ff —
meta.template.expression #abb2bf —
keyword.operator.module #fb88ff —
support.type.type.flowtype #69d3b4 —
support.type.primitive #fb6877 —
meta.property.object #ffaf74 —
variable.parameter.function.js #ffaf74 —
keyword.other.template.begin #fff76df1 —
keyword.other.template.end #fff76df1 —
keyword.other.substitution.begin #fff76df1 —
keyword.other.substitution.end #fff76df1 —
keyword.operator.assignment #f6e7fe —
keyword.operator.assignment.go #fb6877 —
keyword.operator.arithmetic.go, keyword.operator.address.go #fb88ff —
entity.name.package.go #fb6877 —
support.type.prelude.elm #f6e7fe —
support.constant.elm #78cfec —
punctuation.quasi.element #fb88ff —
constant.character.entity #ffaf74 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #f6e7fe —
entity.global.clojure #fb6877 —
meta.symbol.clojure #ffaf74 —
constant.keyword.clojure #f6e7fe —
meta.arguments.coffee, variable.parameter.function.coffee #ffaf74 —
meta.scope.prerequisites.makefile #ffaf74 —
storage.modifier.import.groovy #fb6877 —
meta.method.groovy #69d3b4 —
meta.definition.variable.name.groovy #ffaf74 —
meta.definition.class.inherited.classes.groovy #fff76df1 —
support.variable.semantic.hlsl #fb6877 —
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 #fb88ff —
text.variable, text.bracketed #ffaf74 —
support.type.swift, support.type.vb.asp #fb6877 —
entity.name.function.xi #fb6877 —
entity.name.class.xi #f6e7fe —
constant.character.character-class.regexp.xi #ffaf74 —
constant.regexp.xi #fb88ff —
keyword.control.xi #f6e7fe —
beginning.punctuation.definition.quote.markdown.xi #fff76df1 —
beginning.punctuation.definition.list.markdown.xi #a08ca391 —
constant.character.xi #69d3b4 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #a08ca391 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #fb6877 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ffaf74 —
meta.brace.square #abb2bf —
comment, punctuation.definition.comment #a08ca391 italic
markup.quote.markdown #a08ca391 —
punctuation.definition.block.sequence.item.yaml #abb2bf —
constant.language.symbol.elixir #f6e7fe —
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...
main*
Purple Horizon | Coding Theme
Button.tsx
31
~/my-project
$
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 } !` ;
}