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 #181818 activityBar.background #181818 activityBar.border #383838 activityBar.foreground #e3e1e3 activityBar.inactiveForeground #7a797a activityBarBadge.background #228df2 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle string.quoted.binary.single.python #a8cc7c constant.language.false.cpp, constant.language.true.cpp #73c991 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 #d6d6dd — keyword.control.directive
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Anysphere Dark greener — Anysphere dark greener
activityBarBadge.foreground
#d6d6dd
badge.background #228df2
badge.foreground #d6d6dd
breadcrumb.activeSelectionForeground #d6d6dd
breadcrumb.background #181818
breadcrumb.focusForeground #d6d6dd
breadcrumb.foreground #a6a6a6
button.background #228df2
button.foreground #e6e6ed
button.hoverBackground #359dff
button.secondaryBackground #1d1d1d
button.secondaryForeground #d6d6dd
button.secondaryHoverBackground #303030
checkbox.background #1d1d1d
checkbox.border #4f4f4f
checkbox.foreground #d6d6dd
commandCenter.activeBackground #1d1d1d
commandCenter.background #181818
commandCenter.foreground #c1c1c1
debugExceptionWidget.background #1d1d1d
debugExceptionWidget.border #383838
debugToolBar.background #343334
debugToolBar.border #383838
diffEditor.border #383838
diffEditor.insertedTextBackground #83d6c530
diffEditor.insertedTextBorder #d6d6dd00
diffEditor.removedTextBackground #f14c4c30
diffEditor.removedTextBorder #d6d6dd00
dropdown.background #1d1d1d
dropdown.border #383838
dropdown.foreground #d6d6dd
editor.background #181818
editor.findMatchBackground #163764
editor.findMatchBorder #00000000
editor.findMatchHighlightBackground #7c511a
editor.findMatchHighlightBorder #d7d7dd02
editor.findRangeHighlightBackground #1d1d1d
editor.findRangeHighlightBorder #d6d6dd00
editor.foldBackground #1d1d1d
editor.foreground #d6d6dd
editor.hoverHighlightBackground #5b51ec70
editor.inactiveSelectionBackground #363636
editor.lineHighlightBackground #181818
editor.lineHighlightBorder #d6d6dd00
editor.rangeHighlightBackground #1d1d1d
editor.rangeHighlightBorder #38383800
editor.selectionBackground #163761
editor.selectionHighlightBackground #16376170
editor.selectionHighlightBorder #d6d6dd00
editor.wordHighlightBackground #ff000000
editor.wordHighlightBorder #d6d6dd00
editor.wordHighlightStrongBackground #16376170
editor.wordHighlightStrongBorder #d6d6dd00
editorBracketMatch.background #163761
editorBracketMatch.border #d6d6dd00
editorCodeLens.foreground #d6d6dd
editorCursor.background #181818
editorCursor.foreground #d6d6dd
editorError.background #B73A3400
editorError.border #d6d6dd00
editorError.foreground #f14c4c
editorGroup.border #383838
editorGroup.emptyBackground #181818
editorGroupHeader.border #d6d6dd00
editorGroupHeader.tabsBackground #181818
editorGroupHeader.tabsBorder #292929
editorGutter.addedBackground #15ac91
editorGutter.background #181818
editorGutter.commentRangeForeground #454547
editorGutter.deletedBackground #f14c4c
editorGutter.foldingControlForeground #d6d6dd
editorGutter.modifiedBackground #e5b95c
editorHoverWidget.background #1d1d1d
editorHoverWidget.border #383838
editorHoverWidget.foreground #d6d6dd
editorIndentGuide.activeBackground #737377
editorIndentGuide.background #383838
editorInfo.background #d6d6dd00
editorInfo.border #d6d6dd00
editorInfo.foreground #228df2
editorInlayHint.background #2b2b2b
editorInlayHint.foreground #838383
editorLineNumber.activeForeground #c2c2c2
editorLineNumber.foreground #535353
editorLink.activeForeground #228df2
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f14c4c
editorMarkerNavigationInfo.background #4c9df3
editorMarkerNavigationWarning.background #e5b95c
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #383838
editorSuggestWidget.background #1d1d1d
editorSuggestWidget.border #383838
editorSuggestWidget.foreground #d6d6dd
editorSuggestWidget.highlightForeground #d6d6dd
editorSuggestWidget.selectedBackground #163761
editorWarning.background #A9904000
editorWarning.border #d6d6dd00
editorWarning.foreground #ea7620
editorWhitespace.foreground #737373
editorWidget.background #181818
editorWidget.foreground #d6d6dd
editorWidget.resizeBorder #ea7620
focusBorder #d6d6dd00
foreground #d6d6dd
gitDecoration.addedResourceForeground #5a964d
gitDecoration.conflictingResourceForeground #aaa0fa
gitDecoration.deletedResourceForeground #f14c4c
gitDecoration.ignoredResourceForeground #666666
gitDecoration.modifiedResourceForeground #1981ef
gitDecoration.stageDeletedResourceForeground #f14c4c
gitDecoration.stageModifiedResourceForeground #1981ef
gitDecoration.submoduleResourceForeground #1981ef
gitDecoration.untrackedResourceForeground #3ea17f
icon.foreground #d6d6dd
input.background #212121
input.border #ffffff1e
input.foreground #d6d6dd
input.placeholderForeground #7b7b7b
inputOption.activeBackground #de3c72
inputOption.activeBorder #d6d6dd00
inputOption.activeForeground #d6d6dd
list.activeSelectionBackground #163761
list.activeSelectionForeground #d6d6dd
list.dropBackground #d6d6dd00
list.focusBackground #5b51ec
list.focusForeground #d6d6dd
list.highlightForeground #d6d6dd
list.hoverBackground #2a282a
list.hoverForeground #d6d6dd
list.inactiveSelectionBackground #3c3b3c
list.inactiveSelectionForeground #d6d6dd
listFilterWidget.background #5b51ec
listFilterWidget.noMatchesOutline #f14c4c
listFilterWidget.outline #00000000
menu.background #181818
menu.border #000000
menu.foreground #d6d6dd
menu.selectionBackground #194176
menu.selectionBorder #00000000
menu.selectionForeground #d6d6dd
menu.separatorBackground #3e3e3e
menubar.selectionBackground #d6d6dd20
menubar.selectionBorder #d6d6dd00
menubar.selectionForeground #d6d6dd
merge.commonContentBackground #1d1d1d
merge.commonHeaderBackground #323232
merge.currentContentBackground #1a493d
merge.currentHeaderBackground #83d6c595
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #181818
minimap.errorHighlight #f14c4c
minimap.findMatchHighlight #15ac9170
minimap.selectionHighlight #363636
minimap.warningHighlight #ea7620
minimapGutter.addedBackground #15ac91
minimapGutter.deletedBackground #f14c4c
minimapGutter.modifiedBackground #e5b95c
notebook.focusedCellBorder #15ac91
notebook.focusedEditorBorder #15ac9177
notificationCenter.border #2c2c2c
notificationCenterHeader.background #2c2c2c
notificationCenterHeader.foreground #d6d6dd
notifications.background #1d1d1d
notifications.border #2c2c2c
notifications.foreground #d6d6dd
notificationsErrorIcon.foreground #f14c4c
notificationsInfoIcon.foreground #228df2
notificationsWarningIcon.foreground #ea7620
notificationToast.border #383838
panel.background #181818
panel.border #383838
panelSection.border #383838
panelTitle.activeBorder #d6d6dd
panelTitle.activeForeground #d6d6dd
panelTitle.inactiveForeground #d6d6dd
peekView.border #383838
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ea762070
peekViewEditor.matchHighlightBorder #d6d6dd00
peekViewEditorGutter.background #001f33
peekViewResult.background #1d1d1d
peekViewResult.fileForeground #d6d6dd
peekViewResult.lineForeground #d6d6dd
peekViewResult.matchHighlightBackground #ea762070
peekViewResult.selectionBackground #363636
peekViewResult.selectionForeground #d6d6dd
peekViewTitle.background #1d1d1d
peekViewTitleDescription.foreground #d6d6dd
peekViewTitleLabel.foreground #d6d6dd
pickerGroup.border #383838
pickerGroup.foreground #d6d6dd
progressBar.background #15ac91
scrollbar.shadow #d6d6dd00
scrollbarSlider.activeBackground #676767
scrollbarSlider.background #67676750
scrollbarSlider.hoverBackground #676767
selection.background #163761
settings.focusedRowBackground #d6d6dd07
settings.headerForeground #d6d6dd
sideBar.background #181818
sideBar.border #383838
sideBar.dropBackground #d6d6dd00
sideBar.foreground #d1d1d1
sideBarSectionHeader.background #18181800
sideBarSectionHeader.border #d1d1d100
sideBarSectionHeader.foreground #d1d1d1
sideBarTitle.foreground #d1d1d1
statusBar.background #181818
statusBar.border #383838
statusBar.debuggingBackground #ea7620
statusBar.debuggingBorder #d6d6dd00
statusBar.debuggingForeground #e7e7e7
statusBar.foreground #d6d6dd
statusBar.noFolderBackground #181818
statusBar.noFolderBorder #d6d6dd00
statusBar.noFolderForeground #6b6b6b
statusBarItem.activeBackground #d6d6dd25
statusBarItem.hoverBackground #d6d6dd20
statusBarItem.remoteBackground #5b51ec
statusBarItem.remoteForeground #d6d6dd
tab.activeBackground #181818
tab.activeBorder #181818
tab.activeBorderTop #d6d6dd
tab.activeForeground #d6d6dd
tab.border #292929
tab.hoverBorder #222222
tab.hoverForeground #d6d6dd
tab.inactiveBackground #181818
tab.inactiveForeground #d6d6dd
terminal.ansiBlack #676767
terminal.ansiBlue #4c9df3
terminal.ansiBrightBlack #676767
terminal.ansiBrightBlue #3993b1
terminal.ansiBrightCyan #75d3ba
terminal.ansiBrightGreen #69af83
terminal.ansiBrightMagenta #e567dc
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #d6d6dd
terminal.ansiBrightYellow #e5b95c
terminal.ansiCyan #75d3ba
terminal.ansiGreen #15ac91
terminal.ansiMagenta #e567dc
terminal.ansiRed #f14c4c
terminal.ansiWhite #d6d6dd
terminal.ansiYellow #e5b95c
terminal.background #191919
terminal.border #383838
terminal.foreground #d6d6dd
terminal.selectionBackground #636262fd
terminalCursor.background #5b51ec
terminalCursor.foreground #d6d6dd
textLink.foreground #228df2
titleBar.activeBackground #181818
titleBar.activeForeground #d1d1d1
titleBar.border #383838
titleBar.inactiveBackground #191919
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #d6d6dd00
walkThrough.embeddedEditorBackground #00000050
widget.shadow #111111eb #a8cc7c
constant.other.ellipsis.python #d1d1d1
variable.other.generic-type.haskell #73c991 —
punctuation.definition.tag #898989
storage.type.haskell #f8c762 —
support.variable.magic.python #d6d6dd —
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #d6d6dd —
variable.parameter.function.language.special.self.python #efb080 —
variable.language.this.cpp #73c991
storage.modifier.lifetime.rust #d6d6dd —
support.function.std.rust #aaa0fa —
entity.name.lifetime.rust #efb080 —
variable.other.property #AA9BF5 —
variable.language.rust #d6d6dd —
support.constant.edge #73c991 —
constant.other.character-class.regexp #d6d6dd —
keyword.operator.quantifier.regexp #f8c762 —
punctuation.definition.string.begin,punctuation.definition.string.end #e394dc —
variable.parameter.function #d6d6dd —
comment markup.link #6d6d6d —
markup.changed.diff #efb080 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #aaa0fa —
markup.inserted.diff #e394dc —
markup.deleted.diff #d6d6dd —
meta.function.c,meta.function.cpp #d6d6dd —
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 #d6d6dd —
punctuation.separator.key-value #d6d6dd —
keyword.operator.expression.import #aaa0fa —
support.constant.math #efb080 —
support.constant.property.math #f8c762 —
variable.other.constant #efb080 —
variable.other.constant #AA9BF5 —
storage.type.annotation.java, storage.type.object.array.java #efb080 —
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 #d6d6dd —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #efb080 —
keyword.operator.instanceof.java #73c991 —
meta.definition.variable.name.java #d6d6dd —
keyword.operator.logical #d6d6dd —
keyword.operator.bitwise #d6d6dd —
keyword.operator.channel #d6d6dd —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #d6d6dd —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #f8c762 —
punctuation.separator.list.comma.css #d6d6dd —
support.constant.color.w3c-standard-color-name.css #f8c762 —
support.module.node,support.type.object.module,support.module.node #efb080 —
entity.name.type.module #efb080 —
,meta.object-literal.key,support.variable.object.process,support.variable.object.node #d6d6dd —
variable.other.readwrite #94C1FA —
support.variable.property #AA9BF5 —
support.constant.json #f8c762 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #73c991 —
support.type.object.console #d6d6dd —
support.variable.property.process #f8c762 —
entity.name.function.js,support.function.console.js #ebc88d —
keyword.operator.misc.rust #d6d6dd —
keyword.operator.sigil.rust #73c991 —
keyword.operator.delete #73c991 —
support.type.object.dom #d6d6dd —
support.variable.dom,support.variable.property.dom #d6d6dd —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #d6d6dd —
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 #73c991 —
punctuation.separator.delimiter #d6d6dd —
punctuation.separator.c,punctuation.separator.cpp #73c991 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #d6d6dd —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #73c991 —
variable.parameter.function.language.python #f8c762 —
support.type.python #73c991 —
keyword.operator.logical.python #73c991 —
variable.parameter.function.python #f8c762 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #d6d6dd —
meta.function-call.generic.python #aaa0fa —
constant.character.format.placeholder.other.python #f8c762 —
keyword.operator.assignment.compound #73c991 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #d6d6dd —
entity.name.namespace #d1d1d1 —
variable.language #C1808A —
token.variable.parameter.java #d6d6dd —
import.storage.java #efb080 —
token.package.keyword #73c991 —
entity.name.function, meta.require, support.function, variable.function #efb080 —
entity.name.type.namespace #efb080 —
support.class, entity.name.type.class #87c3ff —
entity.name.class.identifier.namespace.type #efb080 —
entity.name.class, variable.other.class.js, variable.other.class.ts #efb080 —
variable.other.class.php #d6d6dd —
keyword.control.directive.include.cpp #a8cc7c —
control.elements, keyword.operator.less #f8c762 —
keyword.other.special-method #aaa0fa —
storage.modifier.reference, storage.modifier.pointer #d1d1d1
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 #73c991 —
token.storage.type.java #efb080 —
meta.property-name.css #87c3ff
entity.other.inherited-class #efb080 —
constant.other.symbol #d6d6dd —
constant.other.color #ebc88d —
punctuation.definition.constant #f8c762 —
entity.name.tag.template, entity.name.tag.script, entity.name.tag.style #af9cff —
entity.name.tag.html #87c3ff —
meta.property-value.css #e394dc
entity.other.attribute-name #aaa0fa —
entity.other.attribute-name.id #aaa0fa
entity.other.attribute-name.class.css #f8c762
markup.heading punctuation.definition.heading, entity.name.section #aaa0fa —
keyword.other.unit #ebc88d —
markup.bold,todo.bold #f8c762 —
punctuation.definition.bold #efb080 —
markup.italic, punctuation.definition.italic,todo.emphasis #73c991 —
entity.name.section.markdown #d6d6dd —
punctuation.definition.heading.markdown #d6d6dd —
punctuation.definition.list.begin.markdown #d6d6dd —
markup.heading.setext #d6d6dd —
punctuation.definition.bold.markdown #f8c762 —
markup.inline.raw.markdown #e394dc —
markup.inline.raw.string.markdown #e394dc —
punctuation.definition.list.markdown #d6d6dd —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #d6d6dd —
beginning.punctuation.definition.list.markdown #d6d6dd —
punctuation.definition.metadata.markdown #d6d6dd —
markup.underline.link.markdown,markup.underline.link.image.markdown #73c991 —
string.other.link.title.markdown,string.other.link.description.markdown #aaa0fa —
constant.character.escape #d6d6dd —
punctuation.section.embedded, variable.interpolation #d6d6dd —
punctuation.section.embedded.begin,punctuation.section.embedded.end #73c991 —
invalid.illegal.bad-ampersand.html #d6d6dd —
invalid.deprecated #d6d6dd —
invalid.unimplemented #d6d6dd —
source.json meta.structure.dictionary.json > string.quoted.json #d6d6dd —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #d6d6dd —
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 #e394dc —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #d6d6dd —
support.type.property-name.json #73c991 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #73c991 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #73c991 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #efb080 —
keyword.operator.error-control.php #73c991 —
keyword.operator.type.php #73c991 —
punctuation.section.array.begin.php #d6d6dd —
punctuation.section.array.end.php #d6d6dd —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #efb080 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #aaa0fa —
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 #d6d6dd —
support.constant.core.rust #f8c762 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #f8c762 —
entity.name.goto-label.php,support.other.php #aaa0fa —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #d6d6dd —
keyword.operator.regexp.php #73c991 —
keyword.operator.comparison.php #d6d6dd —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #73c991 —
meta.function.decorator.python #a8cc7c —
punctuation.definition.decorator.python,entity.name.function.decorator.python #a8cc7c
support.token.decorator.python,meta.function.decorator.identifier.python #d6d6dd —
function.parameter #d6d6dd —
function.parameter.ruby, function.parameter.cs #d6d6dd —
constant.language.symbol.ruby #d6d6dd —
inline-color-decoration rgb-value #f8c762 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #82D2CE —
block.scope.end,block.scope.begin #d6d6dd —
entity.name.variable.local.cs #d6d6dd —
token.error-token #f44747 —
token.debug-token #73c991 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #73c991 —
meta.template.expression #d6d6dd —
keyword.operator.module #73c991 —
support.type.type.flowtype #aaa0fa —
support.type.primitive #efb080 —
meta.property.object #d6d6dd —
variable.parameter.function.js #d6d6dd —
keyword.other.template.begin #e394dc —
keyword.other.template.end #e394dc —
keyword.other.substitution.begin #e394dc —
keyword.other.substitution.end #e394dc —
keyword.operator.assignment #d6d6dd —
keyword.operator.assignment.go #efb080 —
keyword.operator.arithmetic.go, keyword.operator.address.go #73c991 —
entity.name.package.go #efb080 —
support.type.prelude.elm #d6d6dd —
support.constant.elm #f8c762 —
punctuation.quasi.element #73c991 —
constant.character.entity #d6d6dd —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #d6d6dd —
entity.global.clojure #efb080 —
meta.symbol.clojure #d6d6dd —
constant.keyword.clojure #d6d6dd —
meta.arguments.coffee, variable.parameter.function.coffee #d6d6dd —
meta.scope.prerequisites.makefile #d6d6dd —
storage.modifier.import.groovy #efb080 —
meta.method.groovy #aaa0fa —
meta.definition.variable.name.groovy #d6d6dd —
meta.definition.class.inherited.classes.groovy #e394dc —
support.variable.semantic.hlsl #efb080 —
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 #73c991 —
text.variable, text.bracketed #d6d6dd —
support.type.swift, support.type.vb.asp #efb080 —
entity.name.function.xi #efb080 —
entity.name.class.xi #d6d6dd —
constant.character.character-class.regexp.xi #d6d6dd —
constant.regexp.xi #73c991 —
keyword.control.xi #d6d6dd —
beginning.punctuation.definition.quote.markdown.xi #e394dc —
beginning.punctuation.definition.list.markdown.xi #6d6d6d —
constant.character.xi #aaa0fa —
constant.other.color.rgb-value.xi #d6d6dd —
punctuation.definition.tag.xi #6d6d6d —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #efb080 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #d6d6dd —
meta.brace.square #d6d6dd —
comment, punctuation.definition.comment #6d6d6d italic
markup.quote.markdown #6d6d6d —
punctuation.definition.block.sequence.item.yaml #d6d6dd —
constant.language.symbol.elixir #d6d6dd —
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*
Anysphere Dark greener | 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 } !` ;
}