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 #131216 activityBar.background #131216 activityBar.border #21232c activityBar.foreground #f8524f activityBar.inactiveForeground #403c4e activityBarBadge.background #403c4e 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 #ffd089 — variable.other.generic-type.haskell #87a4a0 — storage.type.haskell #ffd089 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#131313
badge.background #4d4d4d
badge.foreground #d7cdba
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #181818
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #d7cdbacc
button.background #131216
button.foreground #f8524f
button.hoverBackground #87a4a000
button.secondaryBackground #403c4e
button.secondaryForeground #843e42
button.secondaryHoverBackground #45494e
checkbox.background #21232c
checkbox.border #00000000
checkbox.foreground #d7cdba
debugExceptionWidget.background #333333
debugExceptionWidget.border #474747
debugToolBar.background #333333
debugToolBar.border #47474700
diffEditor.border #21232c
diffEditor.insertedTextBackground #6b862e33
diffEditor.removedTextBackground #ba575733
dropdown.background #21232c
dropdown.border #00000000
dropdown.foreground #d7cdba
editor.background #131216
editor.findMatchBackground #87a4a050
editor.findMatchBorder #275c9f00
editor.findMatchHighlightBackground #ffd08955
editor.findMatchHighlightBorder #d7cdba00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #d7cdba00
editor.foldBackground #264f784d
editor.foreground #d7cdba
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #3a3d41
editor.lineHighlightBackground #d7cdba00
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #d7cdba0b
editor.rangeHighlightBorder #d7cdba00
editor.selectionBackground #21232c
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #403c4e
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #403c4e
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #d7cdba
editorError.background #B73A3400
editorError.border #d7cdba00
editorError.foreground #f48771
editorGroup.border #21232c
editorGroup.emptyBackground #181818
editorGroupHeader.tabsBackground #131216
editorGutter.addedBackground #87a4a0
editorGutter.background #131216
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #f8524f
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #ffd089
editorHoverWidget.background #21232c
editorHoverWidget.border #403c4e00
editorHoverWidget.foreground #d7cdba
editorIndentGuide.activeBackground #403c4e
editorIndentGuide.background #21232c
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #e0d8c9
editorLineNumber.foreground #403c4e
editorLink.activeForeground #4e94ce
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #a76456
editorMarkerNavigationInfo.background #567794
editorMarkerNavigationWarning.background #998d58
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #21232c
editorSuggestWidget.background #21232c
editorSuggestWidget.border #45454500
editorSuggestWidget.focusHighlightForeground #843e42
editorSuggestWidget.foreground #e0d8c9
editorSuggestWidget.highlightForeground #843e42
editorSuggestWidget.selectedBackground #403c4e
editorWarning.background #A9904000
editorWarning.border #d7cdba00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e229
editorWidget.background #131216
editorWidget.foreground #d7cdba
editorWidget.resizeBorder #5F5F5F00
focusBorder #87a4a0
foreground #d7cdba
gitDecoration.addedResourceForeground #87a4a0
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #843e42
gitDecoration.ignoredResourceForeground #403c4e
gitDecoration.modifiedResourceForeground #ffd089
gitDecoration.stageDeletedResourceForeground #843e42
gitDecoration.stageModifiedResourceForeground #ffd089
gitDecoration.submoduleResourceForeground #f8524f
gitDecoration.untrackedResourceForeground #87a4a0
icon.foreground #843e42
input.background #21232c
input.border #00000000
input.foreground #d7cdba
input.placeholderForeground #403c4e
inputOption.activeBackground #ffd08966
inputOption.activeBorder #f8524f00
inputOption.activeForeground #d7cdba
list.activeSelectionBackground #13121600
list.activeSelectionForeground #f8524f
list.dropBackground #383b3d
list.focusBackground #383b3d
list.focusForeground #843e42
list.highlightForeground #f8524f
list.hoverBackground #13121600
list.hoverForeground #843e42
list.inactiveSelectionBackground #131216
list.inactiveSelectionForeground #f8524f
listFilterWidget.background #843e42
listFilterWidget.noMatchesOutline #e68e85
listFilterWidget.outline #00000000
menu.background #21232c
menu.border #00000000
menu.foreground #d7cdba
menu.selectionBackground #403c4e
menu.selectionBorder #00000000
menu.selectionForeground #f8524f
menu.separatorBackground #e0d8c9
menubar.selectionBackground #d7cdba00
menubar.selectionForeground #f8524f
merge.commonContentBackground #21232c
merge.commonHeaderBackground #21232c
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #131216
minimap.errorHighlight #f8524f
minimap.findMatchHighlight #87a4a050
minimap.selectionHighlight #403c4e
minimap.warningHighlight #ffd089
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #47474700
notificationCenterHeader.background #303031
notificationCenterHeader.foreground #d7cdba
notifications.background #21232c
notifications.border #30303100
notifications.foreground #d7cdba
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #47474700
panel.background #131216
panel.border #21232c
panelSection.border #80808059
panelTitle.activeBorder #403c4e
panelTitle.activeForeground #d7cdba
panelTitle.inactiveForeground #d7cdba99
peekView.border #f8524f
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #21232c
peekViewResult.fileForeground #d7cdba
peekViewResult.lineForeground #e0d8c9
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #d7cdba
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #d7cdbab3
peekViewTitleLabel.foreground #d7cdba
pickerGroup.border #3f3f46
pickerGroup.foreground #87a4a0
progressBar.background #87a4a0
scrollbar.shadow #000000
scrollbarSlider.activeBackground #403c4e66
scrollbarSlider.background #21232c66
scrollbarSlider.hoverBackground #403c4eb3
selection.background #843e42
settings.focusedRowBackground #d7cdba07
settings.headerForeground #843e42
sideBar.background #131216
sideBar.border #21232c
sideBar.dropBackground #383b3d
sideBar.foreground #d7cdba
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #d7cdba00
sideBarSectionHeader.foreground #d7cdba
sideBarTitle.foreground #e0d8c9
statusBar.background #131216
statusBar.border #21232c
statusBar.debuggingBackground #131216
statusBar.debuggingForeground #d7cdba
statusBar.foreground #403c4e
statusBar.noFolderBackground #131216
statusBar.noFolderForeground #d7cdba
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #131216
statusBarItem.remoteBackground #87a4a0
statusBarItem.remoteForeground #131216
tab.activeBackground #131216
tab.activeBorder #403c4e00
tab.activeBorderTop #f8524f
tab.activeForeground #f8524f
tab.border #403c4e00
tab.inactiveBackground #131216
tab.inactiveForeground #403c4e
terminal.ansiBlack #21232c
terminal.ansiBlue #843e42
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #843e42
terminal.ansiBrightCyan #87a4a0
terminal.ansiBrightGreen #87a4a0
terminal.ansiBrightMagenta #f8524f
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #e0d8c9
terminal.ansiBrightYellow #ffd089
terminal.ansiCyan #87a4a0
terminal.ansiGreen #87a4a0
terminal.ansiMagenta #f8524f
terminal.ansiRed #f8524f
terminal.ansiWhite #e0d8c9
terminal.ansiYellow #ffd089
terminal.border #403c4e
terminal.foreground #d7cdba
terminal.selectionBackground #d7cdba10
terminalCursor.background #843e42
terminalCursor.foreground #21232c
textLink.foreground #87a4a0
titleBar.activeBackground #131216
titleBar.activeForeground #d7cdba
titleBar.border #00000000
titleBar.inactiveBackground #131216
titleBar.inactiveForeground #d7cdba99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000099 #ffd089
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #843e42 —
variable.parameter.function.language.special.self.python #f8524f —
storage.modifier.lifetime.rust #843e42 —
support.function.std.rust #87a4a0 —
entity.name.lifetime.rust #f8524f —
variable.language.rust #ffd089 —
support.constant.edge #87a4a0 —
constant.other.character-class.regexp #ffd089 —
keyword.operator.quantifier.regexp #ffd089 —
punctuation.definition.string.begin,punctuation.definition.string.end #843e42 —
variable.parameter.function #843e42 —
comment markup.link #403c4e —
markup.changed.diff #f8524f —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #87a4a0 —
markup.inserted.diff #843e42 —
markup.deleted.diff #ffd089 —
meta.function.c,meta.function.cpp #ffd089 —
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 #843e42 —
punctuation.separator.key-value #843e42 —
keyword.operator.expression.import #87a4a0 —
support.constant.math #f8524f —
support.constant.property.math #ffd089 —
variable.other.constant #f8524f —
storage.type.annotation.java, storage.type.object.array.java #f8524f —
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 #843e42 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #f8524f —
keyword.operator.instanceof.java #87a4a0 —
meta.definition.variable.name.java #ffd089 —
keyword.operator.logical #f8524f —
keyword.operator.bitwise #f8524f —
keyword.operator.channel #f8524f —
support.constant.property-value.scss,support.constant.property-value.css #ffd089 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #f8524f —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ffd089 —
punctuation.separator.list.comma.css #843e42 —
support.constant.color.w3c-standard-color-name.css #ffd089 —
support.type.vendored.property-name.css #f8524f —
support.module.node,support.type.object.module,support.module.node #f8524f —
entity.name.type.module #f8524f —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ffd089 —
support.constant.json #ffd089 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #87a4a0 —
support.type.object.console #ffd089 —
support.variable.property.process #ffd089 —
entity.name.function,support.function.console #87a4a0 —
keyword.operator.misc.rust #843e42 —
keyword.operator.sigil.rust #87a4a0 —
keyword.operator.delete #87a4a0 —
support.type.object.dom #f8524f —
support.variable.dom,support.variable.property.dom #ffd089 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #f8524f —
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 #87a4a0 —
punctuation.separator.delimiter #843e42 —
punctuation.separator.c,punctuation.separator.cpp #87a4a0 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #f8524f —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #87a4a0 —
variable.parameter.function.language.python #ffd089 —
support.type.python #f8524f —
keyword.operator.logical.python #87a4a0 —
variable.parameter.function.python #ffd089 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #843e42 —
meta.function-call.generic.python #87a4a0 —
constant.character.format.placeholder.other.python #ffd089 —
keyword.operator.assignment.compound #87a4a0 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #f8524f —
entity.name.namespace #87a4a0 —
variable.language #f8524f —
token.variable.parameter.java #843e42 —
import.storage.java #f8524f —
token.package.keyword #87a4a0 —
entity.name.function, meta.require, support.function.any-method, variable.function #87a4a0 —
entity.name.type.namespace #f8524f —
support.class, entity.name.type.class #f8524f —
entity.name.class.identifier.namespace.type #f8524f —
entity.name.class, variable.other.class.js, variable.other.class.ts #f8524f —
variable.other.class.php #ffd089 —
control.elements, keyword.operator.less #ffd089 —
keyword.other.special-method #87a4a0 —
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 #87a4a0 —
token.storage.type.java #f8524f —
support.type.property-name #843e42 —
support.constant.property-value #843e42 —
support.constant.font-name #ffd089 —
entity.other.inherited-class #f8524f —
constant.other.symbol #f8524f —
punctuation.definition.constant #ffd089 —
entity.other.attribute-name #ffd089 —
entity.other.attribute-name.id #87a4a0 —
entity.other.attribute-name.class.css #ffd089 —
markup.heading punctuation.definition.heading, entity.name.section #87a4a0 —
keyword.other.unit #ffd089 —
markup.bold,todo.bold #ffd089 —
punctuation.definition.bold #f8524f —
markup.italic, punctuation.definition.italic,todo.emphasis #87a4a0 —
entity.name.section.markdown #ffd089 —
punctuation.definition.heading.markdown #ffd089 —
punctuation.definition.list.begin.markdown #ffd089 —
markup.heading.setext #843e42 —
punctuation.definition.bold.markdown #ffd089 —
markup.inline.raw.markdown #843e42 —
markup.inline.raw.string.markdown #843e42 —
punctuation.definition.list.markdown #ffd089 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ffd089 —
beginning.punctuation.definition.list.markdown #ffd089 —
punctuation.definition.metadata.markdown #ffd089 —
markup.underline.link.markdown,markup.underline.link.image.markdown #87a4a0 —
string.other.link.title.markdown,string.other.link.description.markdown #87a4a0 —
constant.character.escape #f8524f —
punctuation.section.embedded, variable.interpolation #ffd089 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #87a4a0 —
invalid.illegal.bad-ampersand.html #843e42 —
invalid.deprecated #d7cdba —
invalid.unimplemented #d7cdba —
source.json meta.structure.dictionary.json > string.quoted.json #ffd089 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ffd089 —
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 #843e42 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #f8524f —
support.type.property-name.json #ffd089 —
support.type.property-name.json punctuation #ffd089 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #87a4a0 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #87a4a0 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f8524f —
keyword.operator.error-control.php #87a4a0 —
keyword.operator.type.php #87a4a0 —
punctuation.section.array.begin.php #843e42 —
punctuation.section.array.end.php #843e42 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #f8524f —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #87a4a0 —
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 #843e42 —
support.constant.core.rust #ffd089 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ffd089 —
entity.name.goto-label.php,support.other.php #87a4a0 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #f8524f —
keyword.operator.regexp.php #87a4a0 —
keyword.operator.comparison.php #f8524f —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #87a4a0 —
meta.function.decorator.python #87a4a0 —
support.token.decorator.python,meta.function.decorator.identifier.python #f8524f —
function.parameter #843e42 —
function.parameter.ruby, function.parameter.cs #843e42 —
constant.language.symbol.ruby #f8524f —
inline-color-decoration rgb-value #ffd089 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #f8524f —
block.scope.end,block.scope.begin #843e42 —
entity.name.variable.local.cs #ffd089 —
token.error-token #f44747 —
token.debug-token #87a4a0 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #87a4a0 —
meta.template.expression #843e42 —
keyword.operator.module #87a4a0 —
support.type.type.flowtype #87a4a0 —
support.type.primitive #f8524f —
meta.property.object #ffd089 —
variable.parameter.function.js #ffd089 —
keyword.other.template.begin #843e42 —
keyword.other.template.end #843e42 —
keyword.other.substitution.begin #843e42 —
keyword.other.substitution.end #843e42 —
keyword.operator.assignment #f8524f —
keyword.operator.assignment.go #f8524f —
keyword.operator.arithmetic.go, keyword.operator.address.go #87a4a0 —
entity.name.package.go #f8524f —
support.type.prelude.elm #f8524f —
support.constant.elm #ffd089 —
punctuation.quasi.element #87a4a0 —
constant.character.entity #ffd089 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #f8524f —
entity.global.clojure #f8524f —
meta.symbol.clojure #ffd089 —
constant.keyword.clojure #f8524f —
meta.arguments.coffee, variable.parameter.function.coffee #ffd089 —
meta.scope.prerequisites.makefile #ffd089 —
storage.modifier.import.groovy #f8524f —
meta.method.groovy #87a4a0 —
meta.definition.variable.name.groovy #ffd089 —
meta.definition.class.inherited.classes.groovy #843e42 —
support.variable.semantic.hlsl #f8524f —
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 #87a4a0 —
text.variable, text.bracketed #ffd089 —
support.type.swift, support.type.vb.asp #f8524f —
entity.name.function.xi #f8524f —
entity.name.class.xi #f8524f —
constant.character.character-class.regexp.xi #ffd089 —
constant.regexp.xi #87a4a0 —
keyword.control.xi #f8524f —
beginning.punctuation.definition.quote.markdown.xi #843e42 —
beginning.punctuation.definition.list.markdown.xi #403c4e —
constant.character.xi #87a4a0 —
constant.other.color.rgb-value.xi #d7cdba —
punctuation.definition.tag.xi #403c4e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f8524f —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ffd089 —
meta.brace.square #843e42 —
comment, punctuation.definition.comment #403c4e italic
markup.quote.markdown #403c4e —
punctuation.definition.block.sequence.item.yaml #843e42 —
constant.language.symbol.elixir #ffd089 —
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 } !` ;
}
noori | Coding Theme