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.background #252525 activityBar.foreground #f8f8f2 activityBar.inactiveForeground #dfdfdf85 activityBarBadge.background #474747 activityBarBadge.foreground #f8f8f2 badge.background #474747 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 #ae81ff — variable.other.generic-type.haskell #ff78f7 — storage.type.haskell #fad83b — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
badge.foreground
#f8f8f2
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #090909
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #5961ff
button.foreground #dfdfdf
button.hoverBackground #393ea5
button.secondaryBackground #303030
button.secondaryForeground #dfdfdf
button.secondaryHoverBackground #3b3b3b
checkbox.background #090909
checkbox.border #00000000
checkbox.foreground #dfdfdf
debugExceptionWidget.background #181818
debugExceptionWidget.border #3a3a3a
debugToolBar.background #181818
debugToolBar.border #3a3a3a
diffEditor.border #3b3b3b
diffEditor.insertedTextBackground #44bb3481
diffEditor.removedTextBackground #cf27275a
dropdown.background #090909
dropdown.border #00000000
dropdown.foreground #dfdfdf
editor.background #090909
editor.findMatchBackground #3b3b3b
editor.findMatchBorder #fad83b9f
editor.findMatchHighlightBackground #75715e60
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #474747bb
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #3b3b3bb3
editor.foreground #f8f8f2
editor.hoverHighlightBackground #3b3b3b
editor.inactiveSelectionBackground #474747cd
editor.lineHighlightBackground #3b3b3bb3
editor.lineHighlightBorder #18181864
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #474747
editor.selectionHighlightBackground #3b3b3bcb
editor.selectionHighlightBorder #fbdc4f7c
editor.wordHighlightBackground #3b3b3b
editor.wordHighlightStrongBackground #3b3b3b
editorBracketMatch.background #75715e4c
editorBracketMatch.border #dfdfdf
editorCodeLens.foreground #dfdfdfdf
editorCursor.background #090909
editorCursor.foreground #f8f8f2
editorError.background #B73A3400
editorError.border #ff7878
editorError.foreground #f4877100
editorGroup.border #3b3b3b
editorGroup.emptyBackground #090909
editorGroupHeader.tabsBackground #181818
editorGutter.addedBackground #88ff78
editorGutter.background #18181800
editorGutter.commentRangeForeground #dfdfdf
editorGutter.deletedBackground #ff7878
editorGutter.foldingControlForeground #dfdfdf
editorGutter.modifiedBackground #66c2ef
editorHoverWidget.background #181818
editorHoverWidget.border #474747
editorHoverWidget.foreground #dfdfdf
editorIndentGuide.activeBackground #75715e
editorIndentGuide.background #75715e
editorInfo.background #4490BF00
editorInfo.border #66c2ef
editorInfo.foreground #75beff00
editorLineNumber.activeForeground #dfdfdf
editorLineNumber.foreground #474747
editorLink.activeForeground #00b8ff
editorMarkerNavigation.background #181818
editorMarkerNavigationError.background #ff7878
editorMarkerNavigationInfo.background #66c2ef
editorMarkerNavigationWarning.background #fbdc4f
editorOverviewRuler.background #181818
editorOverviewRuler.border #181818
editorRuler.foreground #75715e
editorSuggestWidget.background #181818
editorSuggestWidget.border #3a3a3a
editorSuggestWidget.foreground #dfdfdf
editorSuggestWidget.highlightForeground #5961ff
editorSuggestWidget.selectedBackground #3a3a3a
editorWarning.background #A9904000
editorWarning.border #fbdc4f
editorWarning.foreground #cca70000
editorWhitespace.foreground #474747
editorWidget.background #181818
editorWidget.foreground #dfdfdf
editorWidget.resizeBorder #474747
focusBorder #474747
foreground #dfdfdf
gitDecoration.addedResourceForeground #97e88c
gitDecoration.conflictingResourceForeground #8287f1
gitDecoration.deletedResourceForeground #ff7878
gitDecoration.ignoredResourceForeground #474747
gitDecoration.modifiedResourceForeground #c7b667
gitDecoration.stageDeletedResourceForeground #ff7878
gitDecoration.stageModifiedResourceForeground #c7b667
gitDecoration.submoduleResourceForeground #66c2ef
gitDecoration.untrackedResourceForeground #97e88c
icon.foreground #dfdfdf
input.background #090909
input.border #00000000
input.foreground #dfdfdf
input.placeholderForeground #dfdfdf95
inputOption.activeBackground #5961ffd1
inputOption.activeBorder #007acc00
inputOption.activeForeground #dfdfdf
list.activeSelectionBackground #474747
list.activeSelectionForeground #f8f8f2
list.dropBackground #303030
list.focusBackground #474747
list.focusForeground #dfdfdf
list.highlightForeground #5961ff
list.hoverBackground #303030
list.hoverForeground #dfdfdfdb
list.inactiveSelectionBackground #3a3a3a
list.inactiveSelectionForeground #dfdfdf
listFilterWidget.background #ae7a36
listFilterWidget.noMatchesOutline #ff7878
listFilterWidget.outline #00000000
menu.background #252525
menu.border #00000085
menu.foreground #dfdfdf
menu.selectionBackground #303030
menu.selectionBorder #00000000
menu.selectionForeground #f8f8f2
menu.separatorBackground #bbbbbb
menubar.selectionBackground #474747
menubar.selectionForeground #dfdfdf
merge.commonContentBackground #181818
merge.commonHeaderBackground #3b3b3b
merge.currentContentBackground #187018
merge.currentHeaderBackground #38d938
merge.incomingContentBackground #393ea5
merge.incomingHeaderBackground #5961ff
minimap.background #090909
minimap.errorHighlight #f4877100
minimap.findMatchHighlight #3b3b3b
minimap.selectionHighlight #474747
minimap.warningHighlight #cca70000
minimapGutter.addedBackground #88ff78
minimapGutter.deletedBackground #ff7878
minimapGutter.modifiedBackground #66c2ef
notificationCenter.border #3a3a3a
notificationCenterHeader.background #252525
notificationCenterHeader.foreground #dfdfdf
notifications.background #181818
notifications.border #303030
notifications.foreground #dfdfdf
notificationsErrorIcon.foreground #ff7878
notificationsInfoIcon.foreground #66c2ef
notificationsWarningIcon.foreground #cca700
notificationToast.border #3a3a3a
panel.background #181818
panel.border #3a3a3a
panelSection.border #3a3a3a
panelTitle.activeBorder #474747
panelTitle.activeForeground #dfdfdf
panelTitle.inactiveForeground #dfdfdfa1
peekView.border #5961ff
peekViewEditor.background #181818
peekViewEditor.matchHighlightBackground #fbdc4f58
peekViewEditor.matchHighlightBorder #fad83b
peekViewEditorGutter.background #181818
peekViewResult.background #181818
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ff78785a
peekViewResult.selectionBackground #5961ff64
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #181818
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #3b3b3b
pickerGroup.foreground #666cf1
progressBar.background #5961ff
scrollbar.shadow #3a3a3a
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646464b3
selection.background #393ea5
settings.focusedRowBackground #ffffff07
settings.headerForeground #dfdfdf
sideBar.background #181818
sideBar.dropBackground #303030
sideBar.foreground #dfdfdf
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #3b3b3b
sideBarSectionHeader.foreground #dfdfdf
sideBarTitle.foreground #dfdfdfc3
statusBar.background #181818
statusBar.border #ff010100
statusBar.debuggingBackground #ae7a36
statusBar.debuggingForeground #dfdfdf
statusBar.foreground #ffffff
statusBar.noFolderBackground #7f0ac0
statusBar.noFolderForeground #dfdfdf
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #474747
statusBarItem.remoteBackground #5961ff
statusBarItem.remoteForeground #dfdfdf
tab.activeBackground #090909
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #dfdfdf
tab.border #090909
tab.inactiveBackground #181818
tab.inactiveForeground #dfdfdfa7
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 #e5e5e5
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #e5e510
terminal.border #3a3a3a
terminal.foreground #cccccc
terminal.selectionBackground #dfdfdf42
terminalCursor.background #5961ff
terminalCursor.foreground #f8f8f2
textLink.foreground #66c2ef
titleBar.activeBackground #181818
titleBar.activeForeground #dfdfdf
titleBar.border #00000000
titleBar.inactiveBackground #252525
titleBar.inactiveForeground #dfdfdf8b
tree.indentGuidesStroke #3b3b3b
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #ae81ff
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #f8f8f2 —
variable.parameter.function.language.special.self.python #f8f8f2 —
storage.modifier.lifetime.rust #f8f8f2 —
support.function.std.rust #66d9ef —
entity.name.lifetime.rust #f8f8f2 —
variable.language.rust #ae81ff —
support.constant.edge #ff78f7 —
constant.other.character-class.regexp #ae81ff —
keyword.operator.quantifier.regexp #fad83b —
punctuation.definition.string.begin,punctuation.definition.string.end #fad83b —
variable.parameter.function #f8f8f2 —
comment markup.link #75715e —
markup.changed.diff #f8f8f2 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #66d9ef —
markup.inserted.diff #fad83b —
markup.deleted.diff #ae81ff —
meta.function.c,meta.function.cpp #ae81ff —
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 #f8f8f2 —
punctuation.separator.key-value #f8f8f2 —
keyword.operator.expression.import #66d9ef —
support.constant.math #f8f8f2 —
support.constant.property.math #fad83b —
variable.other.constant #f8f8f2 —
storage.type.annotation.java, storage.type.object.array.java #f8f8f2 —
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 #f8f8f2 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #f8f8f2 —
keyword.operator.instanceof.java #ff78f7 —
meta.definition.variable.name.java #ae81ff —
keyword.operator.logical #f8f8f2 —
keyword.operator.bitwise #f8f8f2 —
keyword.operator.channel #f8f8f2 —
support.constant.property-value.scss,support.constant.property-value.css #fad83b —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #f8f8f2 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #fad83b —
punctuation.separator.list.comma.css #f8f8f2 —
support.constant.color.w3c-standard-color-name.css #fad83b —
support.type.vendored.property-name.css #f8f8f2 —
support.module.node,support.type.object.module,support.module.node #f8f8f2 —
entity.name.type.module #f8f8f2 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ae81ff —
support.constant.json #fad83b —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ff78f7 —
support.type.object.console #ae81ff —
support.variable.property.process #fad83b —
entity.name.function,support.function.console #66d9ef —
keyword.operator.misc.rust #f8f8f2 —
keyword.operator.sigil.rust #ff78f7 —
keyword.operator.delete #ff78f7 —
support.type.object.dom #f8f8f2 —
support.variable.dom,support.variable.property.dom #ae81ff —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #f8f8f2 —
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 #ff78f7 —
punctuation.separator.delimiter #f8f8f2 —
punctuation.separator.c,punctuation.separator.cpp #ff78f7 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #f8f8f2 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ff78f7 —
variable.parameter.function.language.python #fad83b —
support.type.python #f8f8f2 —
keyword.operator.logical.python #ff78f7 —
variable.parameter.function.python #fad83b —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #f8f8f2 —
meta.function-call.generic.python #66d9ef —
constant.character.format.placeholder.other.python #fad83b —
keyword.operator.assignment.compound #ff78f7 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #f8f8f2 —
entity.name.namespace #f8f8f2 —
variable.language #f8f8f2 —
token.variable.parameter.java #f8f8f2 —
import.storage.java #f8f8f2 —
token.package.keyword #ff78f7 —
entity.name.function, meta.require, support.function.any-method, variable.function #66d9ef —
entity.name.type.namespace #f8f8f2 —
support.class, entity.name.type.class #f8f8f2 —
entity.name.class.identifier.namespace.type #f8f8f2 —
entity.name.class, variable.other.class.js, variable.other.class.ts #f8f8f2 —
variable.other.class.php #ae81ff —
control.elements, keyword.operator.less #fad83b —
keyword.other.special-method #66d9ef —
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 #ff78f7 —
token.storage.type.java #f8f8f2 —
support.type.property-name #f8f8f2 —
support.constant.property-value #f8f8f2 —
support.constant.font-name #fad83b —
entity.other.inherited-class #f8f8f2 —
constant.other.symbol #f8f8f2 —
punctuation.definition.constant #fad83b —
entity.other.attribute-name #fad83b —
entity.other.attribute-name.id #66d9ef normal
entity.other.attribute-name.class.css #fad83b normal
markup.heading punctuation.definition.heading, entity.name.section #66d9ef —
keyword.other.unit #ae81ff —
markup.bold,todo.bold #fad83b —
punctuation.definition.bold #f8f8f2 —
markup.italic, punctuation.definition.italic,todo.emphasis #ff78f7 —
entity.name.section.markdown #ae81ff —
punctuation.definition.heading.markdown #ae81ff —
punctuation.definition.list.begin.markdown #ae81ff —
markup.heading.setext #f8f8f2 —
punctuation.definition.bold.markdown #fad83b —
markup.inline.raw.markdown #fad83b —
markup.inline.raw.string.markdown #fad83b —
punctuation.definition.list.markdown #ae81ff —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ae81ff —
beginning.punctuation.definition.list.markdown #ae81ff —
punctuation.definition.metadata.markdown #ae81ff —
markup.underline.link.markdown,markup.underline.link.image.markdown #ff78f7 —
string.other.link.title.markdown,string.other.link.description.markdown #66d9ef —
constant.character.escape #f8f8f2 —
punctuation.section.embedded, variable.interpolation #ae81ff —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ff78f7 —
invalid.illegal.bad-ampersand.html #f8f8f2 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ae81ff —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ae81ff —
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 #fad83b —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #f8f8f2 —
support.type.property-name.json #ae81ff —
support.type.property-name.json punctuation #ae81ff —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ff78f7 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ff78f7 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f8f8f2 —
keyword.operator.error-control.php #ff78f7 —
keyword.operator.type.php #ff78f7 —
punctuation.section.array.begin.php #f8f8f2 —
punctuation.section.array.end.php #f8f8f2 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #f8f8f2 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #66d9ef —
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 #f8f8f2 —
support.constant.core.rust #fad83b —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #fad83b —
entity.name.goto-label.php,support.other.php #66d9ef —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #f8f8f2 —
keyword.operator.regexp.php #ff78f7 —
keyword.operator.comparison.php #f8f8f2 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ff78f7 —
meta.function.decorator.python #66d9ef —
support.token.decorator.python,meta.function.decorator.identifier.python #f8f8f2 —
function.parameter #f8f8f2 —
function.parameter.ruby, function.parameter.cs #f8f8f2 —
constant.language.symbol.ruby #f8f8f2 —
inline-color-decoration rgb-value #fad83b —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #f8f8f2 —
block.scope.end,block.scope.begin #f8f8f2 —
entity.name.variable.local.cs #ae81ff —
token.error-token #f44747 —
token.debug-token #ff78f7 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ff78f7 —
meta.template.expression #f8f8f2 —
keyword.operator.module #ff78f7 —
support.type.type.flowtype #66d9ef —
support.type.primitive #f8f8f2 —
meta.property.object #ae81ff —
variable.parameter.function.js #ae81ff —
keyword.other.template.begin #fad83b —
keyword.other.template.end #fad83b —
keyword.other.substitution.begin #fad83b —
keyword.other.substitution.end #fad83b —
keyword.operator.assignment #f8f8f2 —
keyword.operator.assignment.go #f8f8f2 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ff78f7 —
entity.name.package.go #f8f8f2 —
support.type.prelude.elm #f8f8f2 —
support.constant.elm #fad83b —
punctuation.quasi.element #ff78f7 —
constant.character.entity #ae81ff —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #f8f8f2 —
entity.global.clojure #f8f8f2 —
meta.symbol.clojure #ae81ff —
constant.keyword.clojure #f8f8f2 —
meta.arguments.coffee, variable.parameter.function.coffee #ae81ff —
meta.scope.prerequisites.makefile #ae81ff —
storage.modifier.import.groovy #f8f8f2 —
meta.method.groovy #66d9ef —
meta.definition.variable.name.groovy #ae81ff —
meta.definition.class.inherited.classes.groovy #fad83b —
support.variable.semantic.hlsl #f8f8f2 —
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 #ff78f7 —
text.variable, text.bracketed #ae81ff —
support.type.swift, support.type.vb.asp #f8f8f2 —
entity.name.function.xi #f8f8f2 —
entity.name.class.xi #f8f8f2 —
constant.character.character-class.regexp.xi #ae81ff —
constant.regexp.xi #ff78f7 —
keyword.control.xi #f8f8f2 —
beginning.punctuation.definition.quote.markdown.xi #fad83b —
beginning.punctuation.definition.list.markdown.xi #75715e —
constant.character.xi #66d9ef —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #75715e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f8f8f2 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ae81ff —
meta.brace.square #f8f8f2 —
comment, punctuation.definition.comment #75715e italic
markup.quote.markdown #75715e —
punctuation.definition.block.sequence.item.yaml #f8f8f2 —
constant.language.symbol.elixir #f8f8f2 —
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*
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 } !` ;
}
dk-bee | Coding Theme