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 #00000000 activityBar.background #1e1b22 activityBar.border #00000000 activityBar.foreground #ce75b1 activityBar.inactiveForeground #baa1c5 activityBarBadge.background #553049 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 #eeeeee — variable.other.generic-type.haskell #da84ff — storage.type.haskell #ff7e3f — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Line of Purples Theme — Line of Purples
activityBarBadge.foreground #eeeeee
badge.background #553049
badge.foreground #eeeeee
breadcrumb.activeSelectionForeground #eeeeee
breadcrumb.background #1e1b22
breadcrumb.focusForeground #eeeeee
breadcrumb.foreground #baa1c5
button.background #824870
button.foreground #eeeeee
button.hoverBackground #892e6c
button.secondaryBackground #1e1b22
button.secondaryForeground #c0c0c0
button.secondaryHoverBackground #4b3170
checkbox.background #1e1b22
checkbox.border #00000000
checkbox.foreground #c0c0c0
debugExceptionWidget.background #0c0a0f
debugExceptionWidget.border #00000000
debugToolBar.background #0c0a0f
debugToolBar.border #00000000
diffEditor.border #baa1c5cf
diffEditor.insertedTextBackground #4eba8e1a
diffEditor.removedTextBackground #cb262620
dropdown.background #1e1b22
dropdown.border #00000000
dropdown.foreground #c0c0c0
editor.background #1e1b22
editor.findMatchBackground #99522f9f
editor.findMatchBorder #99522f
editor.findMatchHighlightBackground #99522f4a
editor.findMatchHighlightBorder #00000000
editor.findRangeHighlightBackground #ce75b128
editor.findRangeHighlightBorder #00000000
editor.foldBackground #99522f3e
editor.foreground #c0c0c0
editor.hoverHighlightBackground #99522f36
editor.inactiveSelectionBackground #60536680
editor.lineHighlightBackground #ffffff00
editor.lineHighlightBorder #5f3b5346
editor.rangeHighlightBackground #33214c78
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #613352d4
editor.selectionHighlightBackground #55304980
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #99522f36
editor.wordHighlightBorder #00000000
editor.wordHighlightStrongBackground #99522f36
editor.wordHighlightStrongBorder #00000000
editorBracketMatch.background #00640000
editorBracketMatch.border #ce75b1
editorCodeLens.foreground #ce75b1
editorCursor.background #c0c0c0
editorCursor.foreground #892e6c
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #cb2626
editorGroup.border #baa1c5cf
editorGroup.emptyBackground #1e1b22
editorGroupHeader.border #ff000000
editorGroupHeader.tabsBackground #15121a
editorGroupHeader.tabsBorder #00000000
editorGutter.addedBackground #327a6e
editorGutter.background #1e1b22
editorGutter.commentRangeForeground #baa1c5
editorGutter.deletedBackground #ff6161
editorGutter.foldingControlForeground #baa1c5
editorGutter.modifiedBackground #5db5c3
editorHoverWidget.background #15121a
editorHoverWidget.border #45454500
editorHoverWidget.foreground #baa1c5
editorIndentGuide.activeBackground #ce75b19f
editorIndentGuide.background #5530497e
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #5db5c3
editorLineNumber.activeForeground #baa1c5
editorLineNumber.foreground #605366
editorLink.activeForeground #ce75b1
editorMarkerNavigation.background #15121a
editorMarkerNavigationError.background #ff6161
editorMarkerNavigationInfo.background #5db5c3
editorMarkerNavigationWarning.background #d6a725
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5f3b53ad
editorSuggestWidget.background #15121a
editorSuggestWidget.border #45454500
editorSuggestWidget.foreground #c0c0c0
editorSuggestWidget.highlightForeground #ce75b1
editorSuggestWidget.selectedBackground #553049
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #d6a725
editorWhitespace.foreground #605366
editorWidget.background #15121a
editorWidget.foreground #c0c0c0
editorWidget.resizeBorder #5f3b53
focusBorder #5f3b53
foreground #c0c0c0
gitDecoration.addedResourceForeground #4eba8e
gitDecoration.conflictingResourceForeground #a55dc3
gitDecoration.deletedResourceForeground #ff6161
gitDecoration.ignoredResourceForeground #605366
gitDecoration.modifiedResourceForeground #d6a725
gitDecoration.stageDeletedResourceForeground #ff6161
gitDecoration.stageModifiedResourceForeground #d6a725
gitDecoration.submoduleResourceForeground #5db5c3
gitDecoration.untrackedResourceForeground #4eba8e
icon.foreground #c0c0c0
input.background #1e1b22
input.border #00000000
input.foreground #c0c0c0
input.placeholderForeground #605366
inputOption.activeBackground #553049
inputOption.activeBorder #00000000
inputOption.activeForeground #c0c0c0
list.activeSelectionBackground #553049
list.activeSelectionForeground #eeeeee
list.dropBackground #1e1b22
list.focusBackground #553049
list.focusForeground #c0c0c0
list.highlightForeground #ce75b1
list.hoverBackground #553049
list.hoverForeground #c0c0c0
list.inactiveSelectionBackground #605366
list.inactiveSelectionForeground #eeeeee
listFilterWidget.background #553049
listFilterWidget.noMatchesOutline #cb2626
listFilterWidget.outline #00000000
menu.background #553049
menu.border #00000000
menu.foreground #c0c0c0
menu.selectionBackground #892e6c
menu.selectionBorder #00000000
menu.selectionForeground #eeeeee
menu.separatorBackground #ce75b1
menubar.selectionBackground #5f3b53
menubar.selectionBorder #00fff300
menubar.selectionForeground #eeeeee
merge.commonContentBackground #301f16
merge.commonHeaderBackground #543323
merge.currentContentBackground #1f382e
merge.currentHeaderBackground #2f6b52
merge.incomingContentBackground #1f373b
merge.incomingHeaderBackground #305f66
minimap.background #1e1b22
minimap.errorHighlight #cb2626
minimap.findMatchHighlight #99522f9f
minimap.selectionHighlight #55304980
minimap.warningHighlight #d6a725
minimapGutter.addedBackground #327a6e
minimapGutter.deletedBackground #ff6161
minimapGutter.modifiedBackground #5db5c3
notificationCenter.border #47474700
notificationCenterHeader.background #15121a
notificationCenterHeader.foreground #c0c0c0
notifications.background #553049
notifications.border #ce75b1
notifications.foreground #c0c0c0
notificationsErrorIcon.foreground #ff6161
notificationsInfoIcon.foreground #5db5c3
notificationsWarningIcon.foreground #d6a725
notificationToast.border #47474700
panel.background #15121a
panel.border #ff000000
panelSection.border #5f3b53
panelTitle.activeBorder #ce75b1
panelTitle.activeForeground #ce75b1
panelTitle.inactiveForeground #baa1c5
peekView.border #5f3b53
peekViewEditor.background #15121a
peekViewEditor.matchHighlightBackground #99522f44
peekViewEditor.matchHighlightBorder #99522f
peekViewEditorGutter.background #15121a
peekViewResult.background #1e1b22
peekViewResult.fileForeground #c0c0c0
peekViewResult.lineForeground #eeeeee
peekViewResult.matchHighlightBackground #baa1c542
peekViewResult.selectionBackground #553049
peekViewResult.selectionForeground #eeeeee
peekViewTitle.background #5f3b53
peekViewTitleDescription.foreground #c0c0c0
peekViewTitleLabel.foreground #eeeeee
pickerGroup.border #ce75b1
pickerGroup.foreground #ce75b1
progressBar.background #5f3b53
scrollbar.shadow #5f3b53
scrollbarSlider.activeBackground #baa1c5
scrollbarSlider.background #1e1b22
scrollbarSlider.hoverBackground #605366
selection.background #5f3b535c
settings.focusedRowBackground #ffffff07
settings.headerForeground #c0c0c0
sideBar.background #15121a
sideBar.border #ff000000
sideBar.dropBackground #1e1b22
sideBar.foreground #baa1c5
sideBarSectionHeader.background #1e1b22
sideBarSectionHeader.border #00000000
sideBarSectionHeader.foreground #baa1c5
sideBarTitle.foreground #baa1c5
statusBar.background #553049
statusBar.border #ff000000
statusBar.debuggingBackground #99522f
statusBar.debuggingBorder #ff000000
statusBar.debuggingForeground #eeeeee
statusBar.foreground #eeeeee
statusBar.noFolderBackground #15121a
statusBar.noFolderBorder #ff000000
statusBar.noFolderForeground #c0c0c0
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ce75b1
statusBarItem.remoteBackground #5f3b53
statusBarItem.remoteForeground #eeeeee
tab.activeBackground #553049
tab.activeBorder #ff000000
tab.activeBorderTop #ff000000
tab.activeForeground #eeeeee
tab.border #553049
tab.hoverBackground #605366
tab.hoverBorder #ff000000
tab.hoverForeground #eeeeee
tab.inactiveBackground #1e1b22
tab.inactiveForeground #c0c0c0
terminal.ansiBlack #414141
terminal.ansiBlue #2768b0
terminal.ansiBrightBlack #757575
terminal.ansiBrightBlue #5daaff
terminal.ansiBrightCyan #6ce2ff
terminal.ansiBrightGreen #4cffb7
terminal.ansiBrightMagenta #ff88ff
terminal.ansiBrightRed #ff5a5a
terminal.ansiBrightWhite #ffffff
terminal.ansiBrightYellow #ffff73
terminal.ansiCyan #0786a5
terminal.ansiGreen #04905a
terminal.ansiMagenta #8a158a
terminal.ansiRed #9f1616
terminal.ansiWhite #c0c0c0
terminal.ansiYellow #abab07
terminal.border #5f3b53
terminal.foreground #c0c0c0
terminal.selectionBackground #baa1c522
terminalCursor.background #5f3b53
terminalCursor.foreground #eeeeee
textLink.foreground #ce75b1
titleBar.activeBackground #553049
titleBar.activeForeground #c0c0c0
titleBar.border #00000000
titleBar.inactiveBackground #1e1b22
titleBar.inactiveForeground #c0c0c0c0
tree.indentGuidesStroke #5f3b53
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000000 #eeeeee
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ff7ed5 —
variable.parameter.function.language.special.self.python #ffd04f —
storage.modifier.lifetime.rust #ff7ed5 —
support.function.std.rust #ff7373 —
entity.name.lifetime.rust #ffd04f —
variable.language.rust #eeeeee —
support.constant.edge #da84ff —
constant.other.character-class.regexp #eeeeee —
keyword.operator.quantifier.regexp #ff7e3f —
punctuation.definition.string.begin,punctuation.definition.string.end #4effa4 —
variable.parameter.function #ff7ed5 —
comment markup.link #927d9b —
markup.changed.diff #ffd04f —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #ff7373 —
markup.inserted.diff #4effa4 —
markup.deleted.diff #eeeeee —
meta.function.c,meta.function.cpp #eeeeee —
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 #ff7ed5 —
punctuation.separator.key-value #ff7ed5 —
keyword.operator.expression.import #ff7373 —
support.constant.math #ffd04f —
support.constant.property.math #ff7e3f —
variable.other.constant #ffd04f —
storage.type.annotation.java, storage.type.object.array.java #ffd04f —
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 #ff7ed5 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ffd04f —
keyword.operator.instanceof.java #da84ff —
meta.definition.variable.name.java #eeeeee —
keyword.operator.logical #69ebff —
keyword.operator.bitwise #69ebff —
keyword.operator.channel #69ebff —
support.constant.property-value.scss,support.constant.property-value.css #ff7e3f —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #69ebff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ff7e3f —
punctuation.separator.list.comma.css #ff7ed5 —
support.constant.color.w3c-standard-color-name.css #ff7e3f —
support.type.vendored.property-name.css #69ebff —
support.module.node,support.type.object.module,support.module.node #ffd04f —
entity.name.type.module #ffd04f —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #eeeeee —
support.constant.json #ff7e3f —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #da84ff —
support.type.object.console #eeeeee —
support.variable.property.process #ff7e3f —
entity.name.function,support.function.console #ff7373 —
keyword.operator.misc.rust #ff7ed5 —
keyword.operator.sigil.rust #da84ff —
keyword.operator.delete #da84ff —
support.type.object.dom #69ebff —
support.variable.dom,support.variable.property.dom #eeeeee —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #69ebff —
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 #da84ff —
punctuation.separator.delimiter #ff7ed5 —
punctuation.separator.c,punctuation.separator.cpp #da84ff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #69ebff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #da84ff —
variable.parameter.function.language.python #ff7e3f —
support.type.python #69ebff —
keyword.operator.logical.python #da84ff —
variable.parameter.function.python #ff7e3f —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ff7ed5 —
meta.function-call.generic.python #ff7373 —
constant.character.format.placeholder.other.python #ff7e3f —
keyword.operator.assignment.compound #da84ff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #69ebff —
entity.name.namespace #ffd04f —
variable.language #ffd04f —
token.variable.parameter.java #ff7ed5 —
import.storage.java #ffd04f —
token.package.keyword #da84ff —
entity.name.function, meta.require, support.function.any-method, variable.function #ff7373 —
entity.name.type.namespace #ffd04f —
support.class, entity.name.type.class #ffd04f —
entity.name.class.identifier.namespace.type #ffd04f —
entity.name.class, variable.other.class.js, variable.other.class.ts #ffd04f —
variable.other.class.php #eeeeee —
control.elements, keyword.operator.less #ff7e3f —
keyword.other.special-method #ff7373 —
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 #da84ff —
token.storage.type.java #ffd04f —
support.type.property-name #ff7ed5 —
support.constant.property-value #ff7ed5 —
support.constant.font-name #ff7e3f —
entity.other.inherited-class #ffd04f —
constant.other.symbol #69ebff —
punctuation.definition.constant #ff7e3f —
entity.other.attribute-name #ff7e3f —
entity.other.attribute-name.id #ff7373 normal
entity.other.attribute-name.class.css #ff7e3f normal
markup.heading punctuation.definition.heading, entity.name.section #ff7373 —
keyword.other.unit #eeeeee —
markup.bold,todo.bold #ff7e3f —
punctuation.definition.bold #ffd04f —
markup.italic, punctuation.definition.italic,todo.emphasis #da84ff —
entity.name.section.markdown #eeeeee —
punctuation.definition.heading.markdown #eeeeee —
punctuation.definition.list.begin.markdown #eeeeee —
markup.heading.setext #ff7ed5 —
punctuation.definition.bold.markdown #ff7e3f —
markup.inline.raw.markdown #4effa4 —
markup.inline.raw.string.markdown #4effa4 —
punctuation.definition.list.markdown #eeeeee —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #eeeeee —
beginning.punctuation.definition.list.markdown #eeeeee —
punctuation.definition.metadata.markdown #eeeeee —
markup.underline.link.markdown,markup.underline.link.image.markdown #da84ff —
string.other.link.title.markdown,string.other.link.description.markdown #ff7373 —
constant.character.escape #69ebff —
punctuation.section.embedded, variable.interpolation #eeeeee —
punctuation.section.embedded.begin,punctuation.section.embedded.end #da84ff —
invalid.illegal.bad-ampersand.html #ff7ed5 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #eeeeee —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #eeeeee —
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 #4effa4 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #69ebff —
support.type.property-name.json #eeeeee —
support.type.property-name.json punctuation #eeeeee —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #da84ff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #da84ff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ffd04f —
keyword.operator.error-control.php #da84ff —
keyword.operator.type.php #da84ff —
punctuation.section.array.begin.php #ff7ed5 —
punctuation.section.array.end.php #ff7ed5 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ffd04f —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #ff7373 —
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 #ff7ed5 —
support.constant.core.rust #ff7e3f —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ff7e3f —
entity.name.goto-label.php,support.other.php #ff7373 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #69ebff —
keyword.operator.regexp.php #da84ff —
keyword.operator.comparison.php #69ebff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #da84ff —
meta.function.decorator.python #ff7373 —
support.token.decorator.python,meta.function.decorator.identifier.python #69ebff —
function.parameter #ff7ed5 —
function.parameter.ruby, function.parameter.cs #ff7ed5 —
constant.language.symbol.ruby #69ebff —
inline-color-decoration rgb-value #ff7e3f —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ffd04f —
block.scope.end,block.scope.begin #ff7ed5 —
entity.name.variable.local.cs #eeeeee —
token.error-token #f44747 —
token.debug-token #da84ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #da84ff —
meta.template.expression #ff7ed5 —
keyword.operator.module #da84ff —
support.type.type.flowtype #ff7373 —
support.type.primitive #ffd04f —
meta.property.object #eeeeee —
variable.parameter.function.js #eeeeee —
keyword.other.template.begin #4effa4 —
keyword.other.template.end #4effa4 —
keyword.other.substitution.begin #4effa4 —
keyword.other.substitution.end #4effa4 —
keyword.operator.assignment #69ebff —
keyword.operator.assignment.go #ffd04f —
keyword.operator.arithmetic.go, keyword.operator.address.go #da84ff —
entity.name.package.go #ffd04f —
support.type.prelude.elm #69ebff —
support.constant.elm #ff7e3f —
punctuation.quasi.element #da84ff —
constant.character.entity #eeeeee —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #69ebff —
entity.global.clojure #ffd04f —
meta.symbol.clojure #eeeeee —
constant.keyword.clojure #69ebff —
meta.arguments.coffee, variable.parameter.function.coffee #eeeeee —
meta.scope.prerequisites.makefile #eeeeee —
storage.modifier.import.groovy #ffd04f —
meta.method.groovy #ff7373 —
meta.definition.variable.name.groovy #eeeeee —
meta.definition.class.inherited.classes.groovy #4effa4 —
support.variable.semantic.hlsl #ffd04f —
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 #da84ff —
text.variable, text.bracketed #eeeeee —
support.type.swift, support.type.vb.asp #ffd04f —
entity.name.function.xi #ffd04f —
entity.name.class.xi #69ebff —
constant.character.character-class.regexp.xi #eeeeee —
constant.regexp.xi #da84ff —
keyword.control.xi #69ebff —
beginning.punctuation.definition.quote.markdown.xi #4effa4 —
beginning.punctuation.definition.list.markdown.xi #927d9b —
constant.character.xi #ff7373 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #927d9b —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ffd04f —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #eeeeee —
meta.brace.square #ff7ed5 —
comment, punctuation.definition.comment #927d9b italic
markup.quote.markdown #927d9b —
punctuation.definition.block.sequence.item.yaml #ff7ed5 —
constant.language.symbol.elixir #69ebff —
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 } !` ;
}
Line of Purples Theme | Coding Theme