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 #111115 activityBar.border #00000000 activityBar.foreground #81829f activityBar.inactiveForeground #34343e activityBarBadge.background #fac068 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 #f17763 — variable.other.generic-type.haskell #de317a — storage.type.haskell #8eeab6 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground #0a0a0c
badge.background #c62368
badge.foreground #0a0a0c
breadcrumb.activeSelectionForeground #adadbf
breadcrumb.background #0e0e12
breadcrumb.focusForeground #adadbf
breadcrumb.foreground #5a5a67
button.background #50edf7
button.foreground #0a0a0c
button.hoverBackground #449ba1
button.secondaryBackground #1f1f26
button.secondaryForeground #8a8aa5
button.secondaryHoverBackground #18181e
checkbox.background #0a0a0c
checkbox.border #00000000
checkbox.foreground #adadbf
debugExceptionWidget.background #18181e
debugExceptionWidget.border #00000000
debugToolBar.background #18181e
debugToolBar.border #00000000
diffEditor.border #22222d
diffEditor.insertedTextBackground #83f3b714
diffEditor.insertedTextBorder #000000
diffEditor.removedTextBackground #c623682c
diffEditor.removedTextBorder #00000000
dropdown.background #0a0a0c
dropdown.border #00000000
dropdown.foreground #adadbf
editor.background #08080b
editor.findMatchBackground #83f3b716
editor.findMatchBorder #00000000
editor.findMatchHighlightBackground #83f3b716
editor.findMatchHighlightBorder #00000000
editor.findRangeHighlightBackground #111115
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #22222d
editor.foreground #717286
editor.hoverHighlightBackground #fac06822
editor.inactiveSelectionBackground #111115
editor.lineHighlightBackground #111117
editor.lineHighlightBorder #00000000
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #18181e
editor.selectionHighlightBackground #83f3b716
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #c6236834
editor.wordHighlightBorder #00000000
editor.wordHighlightStrongBackground #fac06822
editor.wordHighlightStrongBorder #00000000
editorBracketMatch.background #fac068
editorBracketMatch.border #000000
editorCodeLens.foreground #1b1b25
editorCursor.background #0a0a0c
editorCursor.foreground #adadbf
editorError.background #00000000
editorError.border #00000000
editorError.foreground #c62368
editorGroup.border #22222d
editorGroup.emptyBackground #08080b
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #0e0e12
editorGroupHeader.tabsBorder #00000000
editorGutter.addedBackground #83f3b7
editorGutter.background #00000000
editorGutter.commentRangeForeground #22222d
editorGutter.deletedBackground #c62368
editorGutter.foldingControlForeground #22222d
editorGutter.modifiedBackground #fac068
editorHoverWidget.background #14141b
editorHoverWidget.border #00000000
editorHoverWidget.foreground #81819b
editorIndentGuide.activeBackground #292936
editorIndentGuide.background #111117
editorInfo.background #00000000
editorInfo.border #00000000
editorInfo.foreground #83f3b7
editorLineNumber.activeForeground #5b5b6f
editorLineNumber.foreground #1f1f26
editorLink.activeForeground #6523c6
editorMarkerNavigation.background #111117
editorMarkerNavigationError.background #c62368
editorMarkerNavigationInfo.background #83f3b7
editorMarkerNavigationWarning.background #fac068
editorOverviewRuler.background #00000000
editorOverviewRuler.border #0000004d
editorRuler.foreground #00000000
editorSuggestWidget.background #111117
editorSuggestWidget.border #00000000
editorSuggestWidget.foreground #81819b
editorSuggestWidget.highlightForeground #fa8268
editorSuggestWidget.selectedBackground #1b1b25
editorWarning.background #00000000
editorWarning.border #00000000
editorWarning.foreground #fac068
editorWhitespace.foreground #1f1f26
editorWidget.background #18181e
editorWidget.foreground #5a5a67
editorWidget.resizeBorder #00000000
focusBorder #ffffff00
foreground #5a5a67
gitDecoration.addedResourceForeground #27ec99
gitDecoration.conflictingResourceForeground #7a49e3
gitDecoration.deletedResourceForeground #e3496e
gitDecoration.ignoredResourceForeground #5a5a67
gitDecoration.modifiedResourceForeground #ee9e54
gitDecoration.stageDeletedResourceForeground #e3496e
gitDecoration.stageModifiedResourceForeground #ee9e54
gitDecoration.submoduleResourceForeground #50edf7
gitDecoration.untrackedResourceForeground #27ec99
icon.foreground #5a5a67
input.background #0a0a0c
input.border #00000000
input.foreground #adadbf
input.placeholderForeground #5a5a67
inputOption.activeBackground #fa8268
inputOption.activeBorder #00000000
inputOption.activeForeground #0a0a0c
list.activeSelectionBackground #34343e
list.activeSelectionForeground #adadbf
list.dropBackground #1f1f26
list.focusBackground #34343e
list.focusForeground #5a5a67
list.highlightForeground #83f3b7
list.hoverBackground #1f1f26
list.hoverForeground #8a8aa5
list.inactiveSelectionBackground #34343e
list.inactiveSelectionForeground #adadbf
listFilterWidget.background #18181e
listFilterWidget.noMatchesOutline #00000000
listFilterWidget.outline #00000000
menu.background #18181e
menu.border #00000000
menu.foreground #8a8aa5
menu.selectionBackground #34343e
menu.selectionBorder #00000000
menu.selectionForeground #adadbf
menu.separatorBackground #00000000
menubar.selectionBackground #1f1f26
menubar.selectionBorder #00000000
menubar.selectionForeground #adadbf
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #08080b
minimap.errorHighlight #c62368
minimap.findMatchHighlight #83f3b716
minimap.selectionHighlight #18181e
minimap.warningHighlight #fac068
minimapGutter.addedBackground #83f3b7
minimapGutter.deletedBackground #c62368
minimapGutter.modifiedBackground #fac068
notificationCenter.border #18181e
notificationCenterHeader.background #18181e
notificationCenterHeader.foreground #adadbf
notifications.background #111115
notifications.border #18181e
notifications.foreground #cccccc
notificationsErrorIcon.foreground #e3496e
notificationsInfoIcon.foreground #27ec99
notificationsWarningIcon.foreground #e36e49
notificationToast.border #00000000
panel.background #0e0e12
panel.border #18181e
panelSection.border #18181e
panelTitle.activeBorder #00000000
panelTitle.activeForeground #fac068
panelTitle.inactiveForeground #5a5a67
peekView.border #00000000
peekViewEditor.background #0f1b15
peekViewEditor.matchHighlightBackground #fac06824
peekViewEditor.matchHighlightBorder #00000000
peekViewEditorGutter.background #2b4d3b
peekViewResult.background #14141b
peekViewResult.fileForeground #81819b
peekViewResult.lineForeground #81819b
peekViewResult.matchHighlightBackground #fac06824
peekViewResult.selectionBackground #22222d
peekViewResult.selectionForeground #b9b9cb
peekViewTitle.background #1b1b25
peekViewTitleDescription.foreground #b9b9cb
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #00000000
pickerGroup.foreground #ee9e54
progressBar.background #83f3b7
scrollbar.shadow #ffffff00
scrollbarSlider.activeBackground #1f1f26
scrollbarSlider.background #18181e
scrollbarSlider.hoverBackground #1f1f26
selection.background #4e4d62
settings.focusedRowBackground #ffffff07
settings.headerForeground #5a5a67
sideBar.background #0e0e12
sideBar.border #00000000
sideBar.dropBackground #1f1f26
sideBar.foreground #5a5a67
sideBarSectionHeader.background #18181e
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #8a8aa5
sideBarTitle.foreground #adadbf
statusBar.background #1f1f26
statusBar.border #00000000
statusBar.debuggingBackground #1f1f26
statusBar.debuggingBorder #00000000
statusBar.debuggingForeground #5a5a67
statusBar.foreground #5a5a67
statusBar.noFolderBackground #1f1f26
statusBar.noFolderBorder #00000000
statusBar.noFolderForeground #5a5a67
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #34343e
statusBarItem.remoteBackground #5a5a67
statusBarItem.remoteForeground #0a0a0c
tab.activeBackground #18181e
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #adadbf
tab.border #00000000
tab.hoverBackground #1f1f26
tab.hoverBorder #00000000
tab.inactiveBackground #111115
tab.inactiveForeground #5a5a67
terminal.ansiBlack #292936
terminal.ansiBlue #fac068
terminal.ansiBrightBlack #4b4b5c
terminal.ansiBrightBlue #fac068
terminal.ansiBrightCyan #faa568
terminal.ansiBrightGreen #fa8268
terminal.ansiBrightMagenta #e85467
terminal.ansiBrightRed #c62368
terminal.ansiBrightWhite #90909f
terminal.ansiBrightYellow #83f3b7
terminal.ansiCyan #faa568
terminal.ansiGreen #fa8268
terminal.ansiMagenta #e85467
terminal.ansiRed #c62368
terminal.ansiWhite #747480
terminal.ansiYellow #83f3b7
terminal.border #18181e
terminal.foreground #b7b7c2
terminal.selectionBackground #5a5a6724
terminalCursor.background #0a0a0c
terminalCursor.foreground #e36e49
textLink.foreground #7a49e3
titleBar.activeBackground #18181e
titleBar.activeForeground #5a5a67
titleBar.border #00000000
titleBar.inactiveBackground #18181e
titleBar.inactiveForeground #5a5a67
tree.indentGuidesStroke #26262e
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000000 #f17763
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #717286 —
variable.parameter.function.language.special.self.python #76b7e6 —
storage.modifier.lifetime.rust #717286 —
support.function.std.rust #b07dfb —
entity.name.lifetime.rust #76b7e6 —
variable.language.rust #f17763 —
support.constant.edge #de317a —
constant.other.character-class.regexp #f17763 —
keyword.operator.quantifier.regexp #8eeab6 —
punctuation.definition.string.begin,punctuation.definition.string.end #fead6d —
variable.parameter.function #717286 —
comment markup.link #34343e —
markup.changed.diff #76b7e6 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #b07dfb —
markup.inserted.diff #fead6d —
markup.deleted.diff #f17763 —
meta.function.c,meta.function.cpp #f17763 —
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 #717286 —
punctuation.separator.key-value #717286 —
keyword.operator.expression.import #b07dfb —
support.constant.math #76b7e6 —
support.constant.property.math #8eeab6 —
variable.other.constant #76b7e6 —
storage.type.annotation.java, storage.type.object.array.java #76b7e6 —
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 #717286 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #76b7e6 —
keyword.operator.instanceof.java #de317a —
meta.definition.variable.name.java #f17763 —
keyword.operator.logical #fead6d —
keyword.operator.bitwise #fead6d —
keyword.operator.channel #fead6d —
support.constant.property-value.scss,support.constant.property-value.css #8eeab6 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #fead6d —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #8eeab6 —
punctuation.separator.list.comma.css #717286 —
support.constant.color.w3c-standard-color-name.css #8eeab6 —
support.type.vendored.property-name.css #fead6d —
support.module.node,support.type.object.module,support.module.node #76b7e6 —
entity.name.type.module #76b7e6 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #f17763 —
support.constant.json #8eeab6 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #de317a —
support.type.object.console #f17763 —
support.variable.property.process #8eeab6 —
entity.name.function,support.function.console #b07dfb —
keyword.operator.misc.rust #717286 —
keyword.operator.sigil.rust #de317a —
keyword.operator.delete #de317a —
support.type.object.dom #fead6d —
support.variable.dom,support.variable.property.dom #f17763 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #fead6d —
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 #de317a —
punctuation.separator.delimiter #717286 —
punctuation.separator.c,punctuation.separator.cpp #de317a —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #fead6d —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #de317a —
variable.parameter.function.language.python #8eeab6 —
support.type.python #fead6d —
keyword.operator.logical.python #de317a —
variable.parameter.function.python #8eeab6 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #717286 —
meta.function-call.generic.python #b07dfb —
constant.character.format.placeholder.other.python #8eeab6 —
keyword.operator.assignment.compound #de317a —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #fead6d —
entity.name.namespace #76b7e6 —
variable.language #76b7e6 —
token.variable.parameter.java #717286 —
import.storage.java #76b7e6 —
token.package.keyword #de317a —
entity.name.function, meta.require, support.function.any-method, variable.function #b07dfb —
entity.name.type.namespace #76b7e6 —
support.class, entity.name.type.class #76b7e6 —
entity.name.class.identifier.namespace.type #76b7e6 —
entity.name.class, variable.other.class.js, variable.other.class.ts #76b7e6 —
variable.other.class.php #f17763 —
control.elements, keyword.operator.less #8eeab6 —
keyword.other.special-method #b07dfb —
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 #de317a —
token.storage.type.java #76b7e6 —
support.type.property-name #717286 —
support.constant.property-value #717286 —
support.constant.font-name #8eeab6 —
entity.other.inherited-class #76b7e6 —
constant.other.symbol #fead6d —
punctuation.definition.constant #8eeab6 —
entity.other.attribute-name #8eeab6 —
entity.other.attribute-name.id #b07dfb normal
entity.other.attribute-name.class.css #8eeab6 normal
markup.heading punctuation.definition.heading, entity.name.section #b07dfb —
keyword.other.unit #f17763 —
markup.bold,todo.bold #8eeab6 —
punctuation.definition.bold #76b7e6 —
markup.italic, punctuation.definition.italic,todo.emphasis #de317a —
entity.name.section.markdown #f17763 —
punctuation.definition.heading.markdown #f17763 —
punctuation.definition.list.begin.markdown #f17763 —
markup.heading.setext #717286 —
punctuation.definition.bold.markdown #8eeab6 —
markup.inline.raw.markdown #fead6d —
markup.inline.raw.string.markdown #fead6d —
punctuation.definition.list.markdown #f17763 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #f17763 —
beginning.punctuation.definition.list.markdown #f17763 —
punctuation.definition.metadata.markdown #f17763 —
markup.underline.link.markdown,markup.underline.link.image.markdown #de317a —
string.other.link.title.markdown,string.other.link.description.markdown #b07dfb —
constant.character.escape #fead6d —
punctuation.section.embedded, variable.interpolation #f17763 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #de317a —
invalid.illegal.bad-ampersand.html #717286 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #f17763 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #f17763 —
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 #fead6d —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #fead6d —
support.type.property-name.json #f17763 —
support.type.property-name.json punctuation #f17763 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #de317a —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #de317a —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #76b7e6 —
keyword.operator.error-control.php #de317a —
keyword.operator.type.php #de317a —
punctuation.section.array.begin.php #717286 —
punctuation.section.array.end.php #717286 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #76b7e6 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #b07dfb —
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 #717286 —
support.constant.core.rust #8eeab6 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #8eeab6 —
entity.name.goto-label.php,support.other.php #b07dfb —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #fead6d —
keyword.operator.regexp.php #de317a —
keyword.operator.comparison.php #fead6d —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #de317a —
meta.function.decorator.python #b07dfb —
support.token.decorator.python,meta.function.decorator.identifier.python #fead6d —
function.parameter #717286 —
function.parameter.ruby, function.parameter.cs #717286 —
constant.language.symbol.ruby #fead6d —
inline-color-decoration rgb-value #8eeab6 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #76b7e6 —
block.scope.end,block.scope.begin #717286 —
entity.name.variable.local.cs #f17763 —
token.error-token #f44747 —
token.debug-token #de317a —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #de317a —
meta.template.expression #717286 —
keyword.operator.module #de317a —
support.type.type.flowtype #b07dfb —
support.type.primitive #76b7e6 —
meta.property.object #f17763 —
variable.parameter.function.js #f17763 —
keyword.other.template.begin #fead6d —
keyword.other.template.end #fead6d —
keyword.other.substitution.begin #fead6d —
keyword.other.substitution.end #fead6d —
keyword.operator.assignment #fead6d —
keyword.operator.assignment.go #76b7e6 —
keyword.operator.arithmetic.go, keyword.operator.address.go #de317a —
entity.name.package.go #76b7e6 —
support.type.prelude.elm #fead6d —
support.constant.elm #8eeab6 —
punctuation.quasi.element #de317a —
constant.character.entity #f17763 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #fead6d —
entity.global.clojure #76b7e6 —
meta.symbol.clojure #f17763 —
constant.keyword.clojure #fead6d —
meta.arguments.coffee, variable.parameter.function.coffee #f17763 —
meta.scope.prerequisites.makefile #f17763 —
storage.modifier.import.groovy #76b7e6 —
meta.method.groovy #b07dfb —
meta.definition.variable.name.groovy #f17763 —
meta.definition.class.inherited.classes.groovy #fead6d —
support.variable.semantic.hlsl #76b7e6 —
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 #de317a —
text.variable, text.bracketed #f17763 —
support.type.swift, support.type.vb.asp #76b7e6 —
entity.name.function.xi #76b7e6 —
entity.name.class.xi #fead6d —
constant.character.character-class.regexp.xi #f17763 —
constant.regexp.xi #de317a —
keyword.control.xi #fead6d —
beginning.punctuation.definition.quote.markdown.xi #fead6d —
beginning.punctuation.definition.list.markdown.xi #34343e —
constant.character.xi #b07dfb —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #34343e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #76b7e6 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #f17763 —
meta.brace.square #717286 —
comment, punctuation.definition.comment #34343e italic
markup.quote.markdown #34343e —
punctuation.definition.block.sequence.item.yaml #717286 —
constant.language.symbol.elixir #fead6d —
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*
Hackish | Coding Theme
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 } !` ;
}