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 #2e3436 activityBar.border #2e3436 activityBar.foreground #eeeeec activityBar.inactiveForeground #ffffff66 activityBarBadge.background #b4fa70 activityBarBadge.foreground #2e3436 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 #eeeeec — variable.other.generic-type.haskell #b4fa70 — storage.type.haskell #eeeeec — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
badge.background
#b4fa70
badge.foreground #2e3436
breadcrumb.activeSelectionForeground #eeeeec
breadcrumb.background #2e3436
breadcrumb.focusForeground #eeeeec
breadcrumb.foreground #eeeeec
button.background #b4fa67
button.foreground #2e3436
button.hoverBackground #9fdc5e
button.secondaryBackground #485154
button.secondaryForeground #ffffff
button.secondaryHoverBackground #363d3f
checkbox.background #2e3436
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #2e3436
debugExceptionWidget.border #2e3436
debugToolBar.background #2e3436
debugToolBar.border #2e3436
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #2e3436
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #2e3436
editor.findMatchBackground #fc9c3c68
editor.findMatchBorder #fc9c3c68
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #eeeeec
editor.hoverHighlightBackground #485154b0
editor.inactiveSelectionBackground #3a3d41b4
editor.lineHighlightBackground #485154
editor.lineHighlightBorder #485154
editor.rangeHighlightBackground #485154b4
editor.rangeHighlightBorder #485154b7
editor.selectionBackground #485154
editor.selectionHighlightBackground #48515478
editor.selectionHighlightBorder #48515478
editor.wordHighlightBackground #575757b8
editor.wordHighlightBorder #485154
editor.wordHighlightStrongBackground #485154ab
editorBracketMatch.background #fcaf3d5a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #fce94a
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #444444
editorGroup.emptyBackground #2e3436
editorGroupHeader.border #2e3436
editorGroupHeader.tabsBackground #2e3436
editorGroupHeader.tabsBorder #2e3436
editorGutter.addedBackground #86be41
editorGutter.background #2E3436
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #d7111a
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #10a1cb
editorHoverWidget.background #2e3436
editorHoverWidget.border #485154
editorHoverWidget.foreground #eeeeec
editorIndentGuide.activeBackground1 #485154
editorIndentGuide.background1 #485154
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #fce94a
editorLineNumber.foreground #485154
editorLink.activeForeground #82c6ff
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #485154
editorSuggestWidget.background #363d3f
editorSuggestWidget.border #363d3f
editorSuggestWidget.foreground #eeeeec
editorSuggestWidget.highlightForeground #b4fa70
editorSuggestWidget.selectedBackground #485154
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e229
editorWidget.background #2e3436
editorWidget.foreground #eeeeec
editorWidget.resizeBorder #2e3436
focusBorder #485154
foreground #eeeeec
gitDecoration.addedResourceForeground #b4fa70
gitDecoration.conflictingResourceForeground #a8a8f7
gitDecoration.deletedResourceForeground #f5735d
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #fce94a
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #ddaf3e
gitDecoration.submoduleResourceForeground #bedffd
gitDecoration.untrackedResourceForeground #76be67
icon.foreground #eeeeec
input.background #2e3436
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #485154
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #485154
list.activeSelectionForeground #ffffff
list.dropBackground #383b3d
list.focusBackground #363d3f
list.focusForeground #cccccc
list.highlightForeground #b4fa70
list.hoverBackground #363d3f
list.hoverForeground #cccccc
list.inactiveSelectionBackground #363d3f
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #363d3f
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #2e3436
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #363d3f
menu.selectionBorder #363d3f
menu.selectionForeground #ffffff
menu.separatorBackground #485154
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #282828ad
merge.commonHeaderBackground #383838bd
merge.currentContentBackground #27403bb2
merge.currentHeaderBackground #367366ab
merge.incomingContentBackground #28384ba8
merge.incomingHeaderBackground #39608fad
minimap.background #2e3436
minimap.errorHighlight #f48771
minimap.findMatchHighlight #fc9c3c68
minimap.selectionHighlight #485154b4
minimap.warningHighlight #cca700
minimapGutter.addedBackground #86be41
minimapGutter.deletedBackground #d7111a
minimapGutter.modifiedBackground #10a1cb
notificationCenter.border #2e3436
notificationCenterHeader.background #2e3436
notificationCenterHeader.foreground #cccccc
notifications.background #2e3436
notifications.border #2e3436
notifications.foreground #eeeeec
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #2e3436
panel.background #2e3436
panel.border #363d3f
panelSection.border #363d3f
panelTitle.activeBorder #e7e7e7
panelTitle.activeForeground #e7e7e7
panelTitle.inactiveForeground #e7e7e799
peekView.border #007acc
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #252526
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #2e3436
pickerGroup.foreground #b4fa5e
progressBar.background #b4fa5e
scrollbar.shadow #000000
scrollbarSlider.activeBackground #363d3f
scrollbarSlider.background #2e3436
scrollbarSlider.hoverBackground #485154
selection.background #363d3f
settings.focusedRowBackground #ffffff07
settings.headerForeground #eeeeec
sideBar.background #2e3436
sideBar.border #2e3436
sideBar.dropBackground #383b3d
sideBar.foreground #eeeeec
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #2e3436
statusBar.debuggingBackground #2e3436
statusBar.debuggingForeground #eeeeec
statusBar.foreground #eeeeec
statusBar.noFolderBackground #2e3436
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #2e3436
statusBarItem.remoteForeground #eeeeec
tab.activeBackground #2e3436
tab.activeBorder #2e3436
tab.activeBorderTop #2e3436
tab.activeForeground #eeeeec
tab.border #2e3436
tab.hoverBackground #485154
tab.hoverBorder #485154
tab.inactiveBackground #363d3f
tab.inactiveForeground #ffffff80
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 #363d3f
terminal.foreground #cccccc
terminal.selectionBackground #363d3f
terminalCursor.background #fce94f
terminalCursor.foreground #ffffff
textLink.foreground #2e3436
titleBar.activeBackground #2e3436
titleBar.activeForeground #eeeeec
titleBar.border #2e3436
titleBar.inactiveBackground #363d3f
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #171717 #eeeeec
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #eeeeec —
variable.parameter.function.language.special.self.python #eeeeec —
storage.modifier.lifetime.rust #eeeeec —
support.function.std.rust #fcaf3c —
entity.name.lifetime.rust #eeeeec —
variable.language.rust #eeeeec —
support.constant.edge #b4fa70 —
constant.other.character-class.regexp #BDB0C4 —
keyword.operator.quantifier.regexp #eeeeec —
punctuation.definition.string.begin,punctuation.definition.string.end #e9b96e —
variable.parameter.function #eeeeec —
comment markup.link #73d216 —
markup.changed.diff #eeeeec —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #fcaf3c —
markup.inserted.diff #e9b96e —
markup.deleted.diff #eeeeec —
meta.function.c,meta.function.cpp #eeeeec —
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 #eeeeec —
punctuation.separator.key-value #eeeeec —
keyword.operator.expression.import #fcaf3c —
support.constant.math #BDB0C4 —
support.constant.property.math #BDB0C4 —
variable.other.constant #eeeeec —
storage.type.annotation.java, storage.type.object.array.java #eeeeec —
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 #eeeeec —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #eeeeec —
keyword.operator.instanceof.java #b4fa70 —
meta.definition.variable.name.java #eeeeec —
keyword.operator.logical #fce94a —
keyword.operator.bitwise #fce94a —
keyword.operator.channel #fce94a —
support.constant.property-value.scss,support.constant.property-value.css #eeeeec —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #fce94a —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #eeeeec —
punctuation.separator.list.comma.css #eeeeec —
support.constant.color.w3c-standard-color-name.css #eeeeec —
support.type.vendored.property-name.css #fce94a —
support.module.node,support.type.object.module,support.module.node #eeeeec —
entity.name.type.module #eeeeec —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #eeeeec —
support.constant.json #BDB0C4 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #b4fa70 —
support.type.object.console #eeeeec —
support.variable.property.process #eeeeec —
entity.name.function,support.function.console #fcaf3c —
keyword.operator.misc.rust #eeeeec —
keyword.operator.sigil.rust #b4fa70 —
keyword.operator.delete #b4fa70 —
support.type.object.dom #fce94a —
support.variable.dom,support.variable.property.dom #eeeeec —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #fce94a —
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 #b4fa70 —
punctuation.separator.delimiter #eeeeec —
punctuation.separator.c,punctuation.separator.cpp #b4fa70 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #fce94a —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #b4fa70 —
variable.parameter.function.language.python #eeeeec —
support.type.python #fce94a —
keyword.operator.logical.python #b4fa70 —
variable.parameter.function.python #eeeeec —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #eeeeec —
meta.function-call.generic.python #fcaf3c —
constant.character.format.placeholder.other.python #eeeeec —
keyword.operator.assignment.compound #b4fa70 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #fce94a —
entity.name.namespace #eeeeec —
variable.language #eeeeec —
token.variable.parameter.java #eeeeec —
import.storage.java #eeeeec —
token.package.keyword #b4fa70 —
entity.name.function, meta.require, support.function.any-method, variable.function #fcaf3c —
entity.name.type.namespace #eeeeec —
support.class, entity.name.type.class #eeeeec —
entity.name.class.identifier.namespace.type #eeeeec —
entity.name.class, variable.other.class.js, variable.other.class.ts #eeeeec —
variable.other.class.php #eeeeec —
control.elements, keyword.operator.less #eeeeec —
keyword.other.special-method #fcaf3c —
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 #b4fa70 —
token.storage.type.java #eeeeec —
support.type.property-name #eeeeec —
support.constant.property-value #eeeeec —
support.constant.font-name #eeeeec —
entity.other.inherited-class #eeeeec —
constant.other.symbol #fce94a —
punctuation.definition.constant #eeeeec —
entity.other.attribute-name #eeeeec —
entity.other.attribute-name.id, entity.other.attribute-name.js #fcaf3c —
entity.other.attribute-name.class.css #B5ABBF —
markup.heading punctuation.definition.heading, entity.name.section #fcaf3c —
keyword.other.unit #eeeeec —
markup.bold,todo.bold #eeeeec —
punctuation.definition.bold #eeeeec —
markup.italic, punctuation.definition.italic,todo.emphasis #b4fa70 —
entity.name.section.markdown #eeeeec —
punctuation.definition.heading.markdown #eeeeec —
punctuation.definition.list.begin.markdown #eeeeec —
markup.heading.setext #eeeeec —
punctuation.definition.bold.markdown #eeeeec —
markup.inline.raw.markdown #e9b96e —
markup.inline.raw.string.markdown #e9b96e —
punctuation.definition.list.markdown #eeeeec —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #eeeeec —
beginning.punctuation.definition.list.markdown #eeeeec —
punctuation.definition.metadata.markdown #eeeeec —
markup.underline.link.markdown,markup.underline.link.image.markdown #b4fa70 —
string.other.link.title.markdown,string.other.link.description.markdown #fcaf3c —
constant.character.escape #fce94a —
punctuation.section.embedded, variable.interpolation #eeeeec —
punctuation.section.embedded.begin,punctuation.section.embedded.end #b4fa70 —
invalid.illegal.bad-ampersand.html #eeeeec —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #eeeeec —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #eeeeec —
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 #e9b96e —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #fce94a —
support.type.property-name.json #eeeeec —
support.type.property-name.json punctuation #eeeeec —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #b4fa70 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #b4fa70 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #eeeeec —
keyword.operator.error-control.php #b4fa70 —
keyword.operator.type.php #b4fa70 —
punctuation.section.array.begin.php #eeeeec —
punctuation.section.array.end.php #eeeeec —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #eeeeec —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #fcaf3c —
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 #eeeeec —
support.constant.core.rust #eeeeec —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #eeeeec —
entity.name.goto-label.php,support.other.php #fcaf3c —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #fce94a —
keyword.operator.regexp.php #b4fa70 —
keyword.operator.comparison.php #fce94a —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #b4fa70 —
meta.function.decorator.python #fcaf3c —
support.token.decorator.python,meta.function.decorator.identifier.python #fce94a —
function.parameter #eeeeec —
function.parameter.ruby, function.parameter.cs #eeeeec —
constant.language.symbol.ruby #fce94a —
inline-color-decoration rgb-value #eeeeec —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #eeeeec —
block.scope.end,block.scope.begin #eeeeec —
entity.name.variable.local.cs #eeeeec —
token.error-token #f44747 —
token.debug-token #b4fa70 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #b4fa70 —
meta.template.expression #eeeeec —
keyword.operator.module #b4fa70 —
support.type.type.flowtype #fcaf3c —
support.type.primitive #eeeeec —
meta.property.object #eeeeec —
variable.parameter.function.js #eeeeec —
keyword.other.template.begin #e9b96e —
keyword.other.template.end #e9b96e —
keyword.other.substitution.begin #e9b96e —
keyword.other.substitution.end #e9b96e —
keyword.operator.assignment #fce94a —
keyword.operator.assignment.go #eeeeec —
keyword.operator.arithmetic.go, keyword.operator.address.go #b4fa70 —
entity.name.package.go #eeeeec —
support.type.prelude.elm #fce94a —
support.constant.elm #eeeeec —
punctuation.quasi.element #b4fa70 —
constant.character.entity #eeeeec —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #fce94a —
entity.global.clojure #eeeeec —
meta.symbol.clojure #eeeeec —
constant.keyword.clojure #fce94a —
meta.arguments.coffee, variable.parameter.function.coffee #eeeeec —
meta.scope.prerequisites.makefile #eeeeec —
storage.modifier.import.groovy #eeeeec —
meta.method.groovy #fcaf3c —
meta.definition.variable.name.groovy #eeeeec —
meta.definition.class.inherited.classes.groovy #e9b96e —
support.variable.semantic.hlsl #eeeeec —
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 #b4fa70 —
text.variable, text.bracketed #eeeeec —
support.type.swift, support.type.vb.asp #eeeeec —
entity.name.function.xi #eeeeec —
entity.name.class.xi #fce94a —
constant.character.character-class.regexp.xi #eeeeec —
constant.regexp.xi #b4fa70 —
keyword.control.xi #fce94a —
beginning.punctuation.definition.quote.markdown.xi #e9b96e —
beginning.punctuation.definition.list.markdown.xi #73d216 —
constant.character.xi #fcaf3c —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #73d216 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #eeeeec —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #eeeeec —
meta.brace.square #eeeeec —
comment, punctuation.definition.comment #73d216 italic
markup.quote.markdown #73d216 —
punctuation.definition.block.sequence.item.yaml #eeeeec —
constant.language.symbol.elixir #fce94a —
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
entity.other.attribute-name.tsx, entity.other.attribute-name.jsx #BDB0C4 —
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 } !` ;
}
tango-dark | Coding Theme