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 #22292a activityBar.border #1c2121 activityBar.foreground #ceecea activityBar.inactiveForeground #667577 activityBarBadge.background #277e8c activityBarBadge.foreground #ffffff 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 #dbbdbd — variable.other.generic-type.haskell #a4ebd4 — storage.type.haskell #ffab70 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Lemon Tree Dark — Lemon Tree Dark
badge.background
#425c5a
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #222d2e
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #ceecea
button.background #2e5653
button.foreground #ffffff
button.hoverBackground #28847d
button.secondaryBackground #445452
button.secondaryForeground #ffffff
button.secondaryHoverBackground #446664
checkbox.background #374342
checkbox.border #00000000
checkbox.foreground #ceecea
debugExceptionWidget.background #333333
debugExceptionWidget.border #474747
debugToolBar.background #333333
debugToolBar.border #474747
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff100428
dropdown.background #374342
dropdown.border #00000000
dropdown.foreground #ceecea
editor.background #222d2e
editor.findMatchBackground #515c6a
editor.findMatchBorder #74879f
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #ceecea
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #455655
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #333b3a
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #334342
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #375a58
editorBracketMatch.background #ceecea20
editorBracketMatch.border #888888
editorCodeLens.foreground #5a7d7b
editorCursor.background #0a0a0a
editorCursor.foreground #ffb239
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #181b1b
editorGroup.emptyBackground #222d2e
editorGroupHeader.border #1c1f1f
editorGroupHeader.tabsBackground #1f2526
editorGutter.addedBackground #587c0c
editorGutter.background #222d2e
editorGutter.commentRangeForeground #78908f
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #78908f
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #233132
editorHoverWidget.border #2a5458
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #5a9d98
editorIndentGuide.background #334342
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #19a0a9
editorLineNumber.foreground #40585a
editorLink.activeForeground #54f2e8
editorMarkerNavigation.background #2e3636
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #6ed0e6
editorMarkerNavigationWarning.background #f5e6a4d3
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #2a4341
editorSuggestWidget.background #233132
editorSuggestWidget.border #2a5458
editorSuggestWidget.foreground #ceecea
editorSuggestWidget.highlightForeground #7eb4b0
editorSuggestWidget.selectedBackground #344948
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #537371
editorWidget.background #222d2e
editorWidget.foreground #cccccc
editorWidget.resizeBorder #5F5F5F
focusBorder #7da19f
foreground #ceecea
gitDecoration.addedResourceForeground #81b88b
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #c74e39
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #ceecea
input.background #374342
input.border #00000000
input.foreground #ceecea
input.placeholderForeground #a6a6a6
inputOption.activeBackground #487572
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #094771
list.activeSelectionForeground #ffffff
list.dropBackground #2c3434
list.focusBackground #435151
list.focusForeground #ceecea
list.highlightForeground #0097fb
list.hoverBackground #2e3636
list.hoverForeground #cccccc
list.inactiveSelectionBackground #303f3e
list.inactiveSelectionForeground #ceecea
listFilterWidget.background #653723
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #222d2e
menu.border #00000085
menu.foreground #afc0bf
menu.selectionBackground #344342
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #344342
menubar.selectionBackground #344342
menubar.selectionBorder #334342
menubar.selectionForeground #ceecea
merge.commonContentBackground #283538
merge.commonHeaderBackground #2e4145
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #2a535c
merge.incomingHeaderBackground #4590a1
minimap.background #222d2e
minimap.errorHighlight #f48771
minimap.findMatchHighlight #515c6a
minimap.selectionHighlight #334342
minimap.warningHighlight #cca700
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #474747
notificationCenterHeader.background #303031
notificationCenterHeader.foreground #cccccc
notifications.background #222d2e
notifications.border #303031
notifications.foreground #ceecea
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #191d1d
panel.background #1f2526
panel.border #1c2121
panelSection.border #1a1d1d
panelTitle.activeBorder #4b6f75
panelTitle.activeForeground #ceecea
panelTitle.inactiveForeground #ceecea58
peekView.border #2a5458
peekViewEditor.background #233132
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #233132
peekViewResult.background #233132
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #243b3d
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #3f3f46
pickerGroup.foreground #407a80
progressBar.background #b1e6e2
scrollbar.shadow #222d2e
scrollbarSlider.activeBackground #334041
scrollbarSlider.background #222d2e
scrollbarSlider.hoverBackground #374647
selection.background #539b9b
settings.focusedRowBackground #ffffff07
settings.headerForeground #ceecea
sideBar.background #1f2526
sideBar.border #191b1b
sideBar.dropBackground #2c3434
sideBar.foreground #ceecea
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #ceecea
sideBarTitle.foreground #ceecea
statusBar.background #1f2526
statusBar.border #1e2121
statusBar.debuggingBackground #2f5960
statusBar.debuggingBorder #0c98b0
statusBar.debuggingForeground #ffffff
statusBar.foreground #ceecea
statusBar.noFolderBackground #1f2526
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #16825d
statusBarItem.remoteForeground #ffffff
tab.activeBackground #222d2e
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ceecea
tab.border #171c1d
tab.inactiveBackground #1f2526
tab.inactiveForeground #ceecea55
terminal.ansiBlack #444747
terminal.ansiBlue #6ed0e6
terminal.ansiBrightBlack #5c6464
terminal.ansiBrightBlue #9ce8f9
terminal.ansiBrightCyan #9cfafd
terminal.ansiBrightGreen #2cf0c4
terminal.ansiBrightMagenta #ffc398
terminal.ansiBrightRed #f9ebeb
terminal.ansiBrightWhite #e1f2f1
terminal.ansiBrightYellow #fdf2c0
terminal.ansiCyan #6ee2e6
terminal.ansiGreen #0fd1a5
terminal.ansiMagenta #ffab70
terminal.ansiRed #dbbdbd
terminal.ansiWhite #ceecea
terminal.ansiYellow #f5e6a4
terminal.border #1a1d1d
terminal.foreground #ceecea
terminal.selectionBackground #3e4948
terminalCursor.background #ffa700
terminalCursor.foreground #151515
textLink.foreground #14c0b3
titleBar.activeBackground #222d2e
titleBar.activeForeground #ceecea
titleBar.border #1e1f1f
titleBar.inactiveBackground #1e2526
titleBar.inactiveForeground #667b7a
tree.indentGuidesStroke #384b4a
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #dbbdbd
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ceecea —
variable.parameter.function.language.special.self.python #f5e6a4 —
storage.modifier.lifetime.rust #ceecea —
support.function.std.rust #6ed0e6 —
entity.name.lifetime.rust #f5e6a4 —
variable.language.rust #dbbdbd —
support.constant.edge #a4ebd4 —
constant.other.character-class.regexp #dbbdbd —
keyword.operator.quantifier.regexp #ffab70 —
punctuation.definition.string.begin,punctuation.definition.string.end #0fd1a5 —
variable.parameter.function #ceecea —
comment markup.link #677574 —
markup.changed.diff #f5e6a4 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #6ed0e6 —
markup.inserted.diff #0fd1a5 —
markup.deleted.diff #dbbdbd —
meta.function.c,meta.function.cpp #dbbdbd —
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 #ceecea —
punctuation.separator.key-value #ceecea —
keyword.operator.expression.import #6ed0e6 —
support.constant.math #f5e6a4 —
support.constant.property.math #ffab70 —
variable.other.constant #f5e6a4 —
storage.type.annotation.java, storage.type.object.array.java #f5e6a4 —
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 #ceecea —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #f5e6a4 —
keyword.operator.instanceof.java #a4ebd4 —
meta.definition.variable.name.java #dbbdbd —
keyword.operator.logical #6ee2e6 —
keyword.operator.bitwise #6ee2e6 —
keyword.operator.channel #6ee2e6 —
support.constant.property-value.scss,support.constant.property-value.css #ffab70 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #6ee2e6 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ffab70 —
punctuation.separator.list.comma.css #ceecea —
support.constant.color.w3c-standard-color-name.css #ffab70 —
support.type.vendored.property-name.css #6ee2e6 —
support.module.node,support.type.object.module,support.module.node #f5e6a4 —
entity.name.type.module #f5e6a4 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #dbbdbd —
support.constant.json #ffab70 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #a4ebd4 —
support.type.object.console #dbbdbd —
support.variable.property.process #ffab70 —
entity.name.function,support.function.console #6ed0e6 —
keyword.operator.misc.rust #ceecea —
keyword.operator.sigil.rust #a4ebd4 —
keyword.operator.delete #a4ebd4 —
support.type.object.dom #6ee2e6 —
support.variable.dom,support.variable.property.dom #dbbdbd —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #6ee2e6 —
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 #a4ebd4 —
punctuation.separator.delimiter #ceecea —
punctuation.separator.c,punctuation.separator.cpp #a4ebd4 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #6ee2e6 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #a4ebd4 —
variable.parameter.function.language.python #ffab70 —
support.type.python #6ee2e6 —
keyword.operator.logical.python #a4ebd4 —
variable.parameter.function.python #ffab70 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ceecea —
meta.function-call.generic.python #6ed0e6 —
constant.character.format.placeholder.other.python #ffab70 —
keyword.operator.assignment.compound #a4ebd4 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #6ee2e6 —
entity.name.namespace #f5e6a4 —
variable.language #f5e6a4 —
token.variable.parameter.java #ceecea —
import.storage.java #f5e6a4 —
token.package.keyword #a4ebd4 —
entity.name.function, meta.require, support.function.any-method, variable.function #6ed0e6 —
entity.name.type.namespace #f5e6a4 —
support.class, entity.name.type.class #f5e6a4 —
entity.name.class.identifier.namespace.type #f5e6a4 —
entity.name.class, variable.other.class.js, variable.other.class.ts #f5e6a4 —
variable.other.class.php #dbbdbd —
control.elements, keyword.operator.less #ffab70 —
keyword.other.special-method #6ed0e6 —
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 #a4ebd4 —
token.storage.type.java #f5e6a4 —
support.type.property-name #ceecea —
support.constant.property-value #ceecea —
support.constant.font-name #ffab70 —
entity.other.inherited-class #f5e6a4 —
constant.other.symbol #6ee2e6 —
punctuation.definition.constant #ffab70 —
entity.other.attribute-name #ffab70 —
entity.other.attribute-name.id #6ed0e6 normal
entity.other.attribute-name.class.css #ffab70 normal
markup.heading punctuation.definition.heading, entity.name.section #6ed0e6 —
keyword.other.unit #dbbdbd —
markup.bold,todo.bold #ffab70 —
punctuation.definition.bold #f5e6a4 —
markup.italic, punctuation.definition.italic,todo.emphasis #a4ebd4 —
entity.name.section.markdown #dbbdbd —
punctuation.definition.heading.markdown #dbbdbd —
punctuation.definition.list.begin.markdown #dbbdbd —
markup.heading.setext #ceecea —
punctuation.definition.bold.markdown #ffab70 —
markup.inline.raw.markdown #0fd1a5 —
markup.inline.raw.string.markdown #0fd1a5 —
punctuation.definition.list.markdown #dbbdbd —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #dbbdbd —
beginning.punctuation.definition.list.markdown #dbbdbd —
punctuation.definition.metadata.markdown #dbbdbd —
markup.underline.link.markdown,markup.underline.link.image.markdown #a4ebd4 —
string.other.link.title.markdown,string.other.link.description.markdown #6ed0e6 —
constant.character.escape #6ee2e6 —
punctuation.section.embedded, variable.interpolation #dbbdbd —
punctuation.section.embedded.begin,punctuation.section.embedded.end #a4ebd4 —
invalid.illegal.bad-ampersand.html #ceecea —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #dbbdbd —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #dbbdbd —
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 #0fd1a5 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #6ee2e6 —
support.type.property-name.json #dbbdbd —
support.type.property-name.json punctuation #dbbdbd —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #a4ebd4 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #a4ebd4 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f5e6a4 —
keyword.operator.error-control.php #a4ebd4 —
keyword.operator.type.php #a4ebd4 —
punctuation.section.array.begin.php #ceecea —
punctuation.section.array.end.php #ceecea —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #f5e6a4 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #6ed0e6 —
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 #ceecea —
support.constant.core.rust #ffab70 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ffab70 —
entity.name.goto-label.php,support.other.php #6ed0e6 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #6ee2e6 —
keyword.operator.regexp.php #a4ebd4 —
keyword.operator.comparison.php #6ee2e6 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #a4ebd4 —
meta.function.decorator.python #6ed0e6 —
support.token.decorator.python,meta.function.decorator.identifier.python #6ee2e6 —
function.parameter #ceecea —
function.parameter.ruby, function.parameter.cs #ceecea —
constant.language.symbol.ruby #6ee2e6 —
inline-color-decoration rgb-value #ffab70 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #f5e6a4 —
block.scope.end,block.scope.begin #ceecea —
entity.name.variable.local.cs #dbbdbd —
token.error-token #f44747 —
token.debug-token #a4ebd4 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #a4ebd4 —
meta.template.expression #ceecea —
keyword.operator.module #a4ebd4 —
support.type.type.flowtype #6ed0e6 —
support.type.primitive #f5e6a4 —
meta.property.object #dbbdbd —
variable.parameter.function.js #dbbdbd —
keyword.other.template.begin #0fd1a5 —
keyword.other.template.end #0fd1a5 —
keyword.other.substitution.begin #0fd1a5 —
keyword.other.substitution.end #0fd1a5 —
keyword.operator.assignment #6ee2e6 —
keyword.operator.assignment.go #f5e6a4 —
keyword.operator.arithmetic.go, keyword.operator.address.go #a4ebd4 —
entity.name.package.go #f5e6a4 —
support.type.prelude.elm #6ee2e6 —
support.constant.elm #ffab70 —
punctuation.quasi.element #a4ebd4 —
constant.character.entity #dbbdbd —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #6ee2e6 —
entity.global.clojure #f5e6a4 —
meta.symbol.clojure #dbbdbd —
constant.keyword.clojure #6ee2e6 —
meta.arguments.coffee, variable.parameter.function.coffee #dbbdbd —
meta.scope.prerequisites.makefile #dbbdbd —
storage.modifier.import.groovy #f5e6a4 —
meta.method.groovy #6ed0e6 —
meta.definition.variable.name.groovy #dbbdbd —
meta.definition.class.inherited.classes.groovy #0fd1a5 —
support.variable.semantic.hlsl #f5e6a4 —
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 #a4ebd4 —
text.variable, text.bracketed #dbbdbd —
support.type.swift, support.type.vb.asp #f5e6a4 —
entity.name.function.xi #f5e6a4 —
entity.name.class.xi #6ee2e6 —
constant.character.character-class.regexp.xi #dbbdbd —
constant.regexp.xi #a4ebd4 —
keyword.control.xi #6ee2e6 —
beginning.punctuation.definition.quote.markdown.xi #0fd1a5 —
beginning.punctuation.definition.list.markdown.xi #677574 —
constant.character.xi #6ed0e6 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #677574 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f5e6a4 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #dbbdbd —
meta.brace.square #ceecea —
comment, punctuation.definition.comment #677574 italic
markup.quote.markdown #677574 —
punctuation.definition.block.sequence.item.yaml #ceecea —
constant.language.symbol.elixir #6ee2e6 —
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 } !` ;
}
Lemon Tree Dark | Coding Theme