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 #0a0a0a activityBar.background #0a0a0a activityBar.border #00000000 activityBar.foreground #ffffff activityBar.inactiveForeground #555555 activityBarBadge.background #7b0000 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 #c22828 — variable.other.generic-type.haskell #9669f7 — storage.type.haskell #ffffff — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Deep Burgundy Theme — Deep Burgundy
activityBarBadge.foreground
#ffffff
badge.background #7b0000
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #a50000
breadcrumb.background #0a0a0a
breadcrumb.focusForeground #a50000
breadcrumb.foreground #828282
button.background #430000
button.foreground #ffffff
button.hoverBackground #7d20207c
button.secondaryBackground #242424
button.secondaryForeground #cfcfcf
button.secondaryHoverBackground #3333337e
checkbox.background #0a0a0a
checkbox.border #00000000
checkbox.foreground #d7d7d7
debugExceptionWidget.background #111111
debugExceptionWidget.border #00000000
debugToolBar.background #111111
debugToolBar.border #00000000
diffEditor.border #00000000
diffEditor.insertedTextBackground #0482003e
diffEditor.insertedTextBorder #0a0a0a
diffEditor.removedTextBackground #5000ff33
diffEditor.removedTextBorder #0a0a0a
dropdown.background #0a0a0a
dropdown.border #00000000
dropdown.foreground #d7d7d7
editor.background #0a0a0a
editor.findMatchBackground #0040ff52
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #ffcc0046
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #66666630
editor.findRangeHighlightBorder #f2f2f200
editor.foldBackground #2831564d
editor.foreground #ffffff
editor.hoverHighlightBackground #a0cfff40
editor.inactiveSelectionBackground #171717
editor.lineHighlightBackground #1110173c
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #f96f6f0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #262626
editor.selectionHighlightBackground #ffadad26
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #ff000034
editor.wordHighlightBorder #ff000000
editor.wordHighlightStrongBackground #2cff0046
editor.wordHighlightStrongBorder #ff000000
editorBracketMatch.background #ff97281c
editorBracketMatch.border #a30000
editorCodeLens.foreground #9ea19c9b
editorCursor.background #000000
editorCursor.foreground #b6b6b6
editorError.background #7b444200
editorError.border #ffffff00
editorError.foreground #c42100
editorGroup.border #00000070
editorGroup.emptyBackground #0a0a0a
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #0a0a0a
editorGroupHeader.tabsBorder #ff929200
editorGutter.addedBackground #a5e419
editorGutter.background #0a0a0a
editorGutter.commentRangeForeground #eeeeee
editorGutter.deletedBackground #cd0009
editorGutter.foldingControlForeground #eeeeee
editorGutter.modifiedBackground #4400ff
editorHoverWidget.background #111111
editorHoverWidget.border #00000000
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground1 #c4c4c4a1
editorIndentGuide.background1 #333333
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #7048ff
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #515151
editorLink.activeForeground #54b2ff
editorMarkerNavigation.background #111111
editorMarkerNavigationError.background #b20000
editorMarkerNavigationInfo.background #5f48ff
editorMarkerNavigationWarning.background #ff8f00
editorOverviewRuler.background #5e5e5e00
editorOverviewRuler.border #c0afaf00
editorRuler.foreground #333333
editorSuggestWidget.background #111111
editorSuggestWidget.border #45454544
editorSuggestWidget.foreground #b0b0b0
editorSuggestWidget.highlightForeground #a50000
editorSuggestWidget.selectedBackground #51515130
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffbf00
editorWhitespace.foreground #646464
editorWidget.background #111111
editorWidget.foreground #888888
editorWidget.resizeBorder #00000000
focusBorder #00000000
foreground #999999
gitDecoration.addedResourceForeground #a1ffb2
gitDecoration.conflictingResourceForeground #95a5ff
gitDecoration.deletedResourceForeground #ff6e6e
gitDecoration.ignoredResourceForeground #414141
gitDecoration.modifiedResourceForeground #ffeb9e
gitDecoration.stageDeletedResourceForeground #f06f59
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #999999
input.background #0a0a0a
input.border #00000000
input.foreground #d7d7d7
input.placeholderForeground #848484
inputOption.activeBackground #430000
inputOption.activeBorder #00000000
inputOption.activeForeground #ffffff
list.activeSelectionBackground #111111
list.activeSelectionForeground #ffffff
list.dropBackground #111111
list.focusBackground #7171712c
list.focusForeground #ffffff
list.highlightForeground #8c0000
list.hoverBackground #00000000
list.hoverForeground #ffffff
list.inactiveSelectionBackground #111111
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #222222
listFilterWidget.noMatchesOutline #00000000
listFilterWidget.outline #00000000
menu.background #111111
menu.border #00000000
menu.foreground #dddddd
menu.selectionBackground #0a0a0a
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #ffffff54
menubar.selectionBackground #111111
menubar.selectionBorder #e60f0f00
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #093600
merge.currentHeaderBackground #00470b
merge.incomingContentBackground #16003d
merge.incomingHeaderBackground #22005e
minimap.background #0a0a0a
minimap.errorHighlight #c42100
minimap.findMatchHighlight #0040ff52
minimap.selectionHighlight #262626
minimap.warningHighlight #ffbf00
minimapGutter.addedBackground #a5e419
minimapGutter.deletedBackground #cd0009
minimapGutter.modifiedBackground #4400ff
notificationCenter.border #00000000
notificationCenterHeader.background #111111
notificationCenterHeader.foreground #fbfbfb
notifications.background #111111
notifications.border #00000000
notifications.foreground #cccccc
notificationsErrorIcon.foreground #b20000
notificationsInfoIcon.foreground #5f48ff
notificationsWarningIcon.foreground #ff8f00
notificationToast.border #47474700
panel.background #0a0a0a
panel.border #00000000
panelSection.border #ffffff0a
panelTitle.activeBorder #840000
panelTitle.activeForeground #840000
panelTitle.inactiveForeground #9f9f9f
peekView.border #7bb4d900
peekViewEditor.background #111111
peekViewEditor.matchHighlightBackground #ffb30024
peekViewEditor.matchHighlightBorder #00000000
peekViewEditorGutter.background #111111
peekViewResult.background #111111
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ff432f2e
peekViewResult.selectionBackground #ff333333
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #111111
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffbdbd
pickerGroup.border #00000000
pickerGroup.foreground #880000
progressBar.background #680000
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #303030
scrollbarSlider.background #131313
scrollbarSlider.hoverBackground #212121
selection.background #54000070
settings.focusedRowBackground #ffffff07
settings.headerForeground #999999
sideBar.background #0a0a0a
sideBar.border #00000000
sideBar.dropBackground #111111
sideBar.foreground #e4e4e4
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #00000000
sideBarSectionHeader.foreground #840000
sideBarTitle.foreground #dddddd
statusBar.background #430000
statusBar.border #0a0a0a
statusBar.debuggingBackground #9d003b
statusBar.debuggingBorder #0a0a0a
statusBar.debuggingForeground #fbfbfb
statusBar.foreground #fbfbfb
statusBar.noFolderBackground #3300a3
statusBar.noFolderBorder #0a0a0a
statusBar.noFolderForeground #eeeeee
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #ffd700
statusBarItem.remoteForeground #000000
tab.activeBackground #0a0a0a
tab.activeBorder #00000000
tab.activeBorderTop #640000
tab.activeForeground #eaeaea
tab.border #25252600
tab.hoverBackground #111111
tab.hoverBorder #00000000
tab.hoverForeground #ffffff
tab.inactiveBackground #0a0a0a
tab.inactiveForeground #999999
terminal.ansiBlack #3d3d3d
terminal.ansiBlue #4b67fd
terminal.ansiBrightBlack #797979
terminal.ansiBrightBlue #90a1ff
terminal.ansiBrightCyan #8de6e2
terminal.ansiBrightGreen #96fb92
terminal.ansiBrightMagenta #ff89bb
terminal.ansiBrightRed #ff8787
terminal.ansiBrightWhite #ffffff
terminal.ansiBrightYellow #fde08b
terminal.ansiCyan #2ad9d1
terminal.ansiGreen #31c42c
terminal.ansiMagenta #e63a83
terminal.ansiRed #ad0000
terminal.ansiWhite #c0c0c0
terminal.ansiYellow #ffbf00
terminal.border #ffffff0a
terminal.foreground #ffffffd3
terminal.selectionBackground #3636362a
terminalCursor.background #77000081
terminalCursor.foreground #ffffff
textLink.foreground #920000
titleBar.activeBackground #0a0a0a
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #0a0a0a
titleBar.inactiveForeground #999999
tree.indentGuidesStroke #333333
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000054 #c22828
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff —
variable.parameter.function.language.special.self.python #f0dc8b —
storage.modifier.lifetime.rust #ffffff —
support.function.std.rust #95a5ff —
entity.name.lifetime.rust #f0dc8b —
variable.language.rust #c22828 —
support.constant.edge #9669f7 —
constant.other.character-class.regexp #c22828 —
keyword.operator.quantifier.regexp #ffffff —
punctuation.definition.string.begin,punctuation.definition.string.end #a1e076 —
variable.parameter.function #ffffff —
comment markup.link #fbfbfb74 —
markup.changed.diff #f0dc8b —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #95a5ff —
markup.inserted.diff #a1e076 —
markup.deleted.diff #c22828 —
meta.function.c,meta.function.cpp #c22828 —
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 #ffffff —
punctuation.separator.key-value #ffffff —
keyword.operator.expression.import #95a5ff —
support.constant.math #f0dc8b —
support.constant.property.math #ffffff —
variable.other.constant #f0dc8b —
storage.type.annotation.java, storage.type.object.array.java #f0dc8b —
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 #ffffff —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #f0dc8b —
keyword.operator.instanceof.java #9669f7 —
meta.definition.variable.name.java #c22828 —
keyword.operator.logical #ffffff —
keyword.operator.bitwise #ffffff —
keyword.operator.channel #ffffff —
support.constant.property-value.scss,support.constant.property-value.css #ffffff —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ffffff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ffffff —
punctuation.separator.list.comma.css #ffffff —
support.constant.color.w3c-standard-color-name.css #ffffff —
support.type.vendored.property-name.css #ffffff —
support.module.node,support.type.object.module,support.module.node #f0dc8b —
entity.name.type.module #f0dc8b —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #c22828 —
support.constant.json #ffffff —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #9669f7 —
support.type.object.console #c22828 —
support.variable.property.process #ffffff —
entity.name.function,support.function.console #95a5ff —
keyword.operator.misc.rust #ffffff —
keyword.operator.sigil.rust #9669f7 —
keyword.operator.delete #9669f7 —
support.type.object.dom #ffffff —
support.variable.dom,support.variable.property.dom #c22828 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ffffff —
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 #9669f7 —
punctuation.separator.delimiter #ffffff —
punctuation.separator.c,punctuation.separator.cpp #9669f7 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ffffff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #9669f7 —
variable.parameter.function.language.python #ffffff —
support.type.python #ffffff —
keyword.operator.logical.python #9669f7 —
variable.parameter.function.python #ffffff —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ffffff —
meta.function-call.generic.python #95a5ff —
constant.character.format.placeholder.other.python #ffffff —
keyword.operator.assignment.compound #9669f7 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ffffff —
entity.name.namespace #f0dc8b —
variable.language #f0dc8b —
token.variable.parameter.java #ffffff —
import.storage.java #f0dc8b —
token.package.keyword #9669f7 —
entity.name.function, meta.require, support.function.any-method, variable.function #95a5ff —
entity.name.type.namespace #f0dc8b —
support.class, entity.name.type.class #f0dc8b —
entity.name.class.identifier.namespace.type #f0dc8b —
entity.name.class, variable.other.class.js, variable.other.class.ts #f0dc8b —
variable.other.class.php #c22828 —
control.elements, keyword.operator.less #ffffff —
keyword.other.special-method #95a5ff —
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 #9669f7 —
token.storage.type.java #f0dc8b —
support.type.property-name #ffffff —
support.constant.property-value #ffffff —
support.constant.font-name #ffffff —
entity.other.inherited-class #f0dc8b —
constant.other.symbol #ffffff —
punctuation.definition.constant #ffffff —
entity.other.attribute-name #ffffff —
entity.other.attribute-name.id #95a5ff —
entity.other.attribute-name.class.css #ffffff —
markup.heading punctuation.definition.heading, entity.name.section #95a5ff —
keyword.other.unit #c22828 —
markup.bold,todo.bold #ffffff —
punctuation.definition.bold #f0dc8b —
markup.italic, punctuation.definition.italic,todo.emphasis #9669f7 —
entity.name.section.markdown #c22828 —
punctuation.definition.heading.markdown #c22828 —
punctuation.definition.list.begin.markdown #c22828 —
markup.heading.setext #ffffff —
punctuation.definition.bold.markdown #ffffff —
markup.inline.raw.markdown #a1e076 —
markup.inline.raw.string.markdown #a1e076 —
punctuation.definition.list.markdown #c22828 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #c22828 —
beginning.punctuation.definition.list.markdown #c22828 —
punctuation.definition.metadata.markdown #c22828 —
markup.underline.link.markdown,markup.underline.link.image.markdown #9669f7 —
string.other.link.title.markdown,string.other.link.description.markdown #95a5ff —
constant.character.escape #ffffff —
punctuation.section.embedded, variable.interpolation #c22828 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #9669f7 —
invalid.illegal.bad-ampersand.html #ffffff —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #c22828 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #c22828 —
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 #a1e076 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ffffff —
support.type.property-name.json #c22828 —
support.type.property-name.json punctuation #c22828 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #9669f7 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #9669f7 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f0dc8b —
keyword.operator.error-control.php #9669f7 —
keyword.operator.type.php #9669f7 —
punctuation.section.array.begin.php #ffffff —
punctuation.section.array.end.php #ffffff —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #f0dc8b —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #95a5ff —
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 #ffffff —
support.constant.core.rust #ffffff —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ffffff —
entity.name.goto-label.php,support.other.php #95a5ff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ffffff —
keyword.operator.regexp.php #9669f7 —
keyword.operator.comparison.php #ffffff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #9669f7 —
meta.function.decorator.python #95a5ff —
support.token.decorator.python,meta.function.decorator.identifier.python #ffffff —
function.parameter #ffffff —
function.parameter.ruby, function.parameter.cs #ffffff —
constant.language.symbol.ruby #ffffff —
inline-color-decoration rgb-value #ffffff —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #f0dc8b —
block.scope.end,block.scope.begin #ffffff —
entity.name.variable.local.cs #c22828 —
token.error-token #f44747 —
token.debug-token #9669f7 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #9669f7 —
meta.template.expression #ffffff —
keyword.operator.module #9669f7 —
support.type.type.flowtype #95a5ff —
support.type.primitive #f0dc8b —
meta.property.object #c22828 —
variable.parameter.function.js #c22828 —
keyword.other.template.begin #a1e076 —
keyword.other.template.end #a1e076 —
keyword.other.substitution.begin #a1e076 —
keyword.other.substitution.end #a1e076 —
keyword.operator.assignment #ffffff —
keyword.operator.assignment.go #f0dc8b —
keyword.operator.arithmetic.go, keyword.operator.address.go #9669f7 —
entity.name.package.go #f0dc8b —
support.type.prelude.elm #ffffff —
support.constant.elm #ffffff —
punctuation.quasi.element #9669f7 —
constant.character.entity #c22828 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ffffff —
entity.global.clojure #f0dc8b —
meta.symbol.clojure #c22828 —
constant.keyword.clojure #ffffff —
meta.arguments.coffee, variable.parameter.function.coffee #c22828 —
meta.scope.prerequisites.makefile #c22828 —
storage.modifier.import.groovy #f0dc8b —
meta.method.groovy #95a5ff —
meta.definition.variable.name.groovy #c22828 —
meta.definition.class.inherited.classes.groovy #a1e076 —
support.variable.semantic.hlsl #f0dc8b —
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 #9669f7 —
text.variable, text.bracketed #c22828 —
support.type.swift, support.type.vb.asp #f0dc8b —
entity.name.function.xi #f0dc8b —
entity.name.class.xi #ffffff —
constant.character.character-class.regexp.xi #c22828 —
constant.regexp.xi #9669f7 —
keyword.control.xi #ffffff —
beginning.punctuation.definition.quote.markdown.xi #a1e076 —
beginning.punctuation.definition.list.markdown.xi #fbfbfb74 —
constant.character.xi #95a5ff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #fbfbfb74 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f0dc8b —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #c22828 —
meta.brace.square #ffffff —
comment, punctuation.definition.comment #fbfbfb74 italic
markup.quote.markdown #fbfbfb74 —
punctuation.definition.block.sequence.item.yaml #ffffff —
constant.language.symbol.elixir #ffffff —
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 } !` ;
}
Deep Burgundy Theme | Coding Theme