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 #41487530 activityBar.background #171928 activityBar.border #7081d014 activityBar.foreground #ebfafa activityBar.inactiveForeground #7081d04A activityBarBadge.background #37f499 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 #a48cf2 — variable.other.generic-type.haskell #37f499 — storage.type.haskell #f16c75 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Eldritch | Coding Theme
activityBarBadge.foreground #0f101a
badge.background #323449
badge.foreground #f16c75
breadcrumb.activeSelectionForeground #37f499
breadcrumb.background #3234494a
breadcrumb.focusForeground #37f499
breadcrumb.foreground #7081d09A
button.background #7081d0
button.foreground #ebfafa
button.hoverBackground #495489
button.secondaryBackground #37f499
button.secondaryForeground #323449
button.secondaryHoverBackground #1f9e6f
checkbox.background #323449
checkbox.border #0f0f0f00
checkbox.foreground #ebfafa
debugExceptionWidget.background #171928
debugExceptionWidget.border #474747
debugToolBar.background #171928
debugToolBar.border #474747
diffEditor.border #04d1f9
diffEditor.insertedTextBackground #37f49934
diffEditor.removedTextBackground #f16c755a
dropdown.background #323449
dropdown.border #0f0f0f00
dropdown.foreground #ebfafa
editor.background #171928
editor.findMatchBackground #9fa9dd68
editor.findMatchBorder #9fa9dd
editor.findMatchHighlightBackground #f7c67f2A
editor.findMatchHighlightBorder #f7c67f30
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #7081d056
editor.foreground #ebfafa
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #323449af
editor.lineHighlightBackground #7081d010
editor.lineHighlightBorder #7081d009
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #bf4f8e40
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #7081d050
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #04d1f958
editorBracketMatch.background #0064001a
editorBracketMatch.border #04d1f9
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #37f499
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f16c75
editorGroup.border #7081d030
editorGroup.dropBackground #7081d030
editorGroup.emptyBackground #171928
editorGroupHeader.tabsBackground #171928
editorGutter.addedBackground #37f499
editorGutter.background #171928
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #f16c75
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #04d1f9
editorHoverWidget.background #323449
editorHoverWidget.border #a48cf2
editorHoverWidget.foreground #ebfafa
editorIndentGuide.activeBackground #37f49952
editorIndentGuide.background #04d1f92e
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #7081d0
editorLineNumber.activeForeground #37f499
editorLineNumber.foreground #7081d03A
editorLink.activeForeground #04d1f9
editorMarkerNavigation.background #323449
editorMarkerNavigationError.background #f16c75
editorMarkerNavigationInfo.background #04d1f9
editorMarkerNavigationWarning.background #f7c67f
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #9fa9dd
editorStickyScroll.background #0f101a
editorStickyScroll.shadow #7081d010
editorStickyScrollHover.background #7081d030
editorSuggestWidget.background #323449
editorSuggestWidget.border #7081d0
editorSuggestWidget.foreground #ebfafa
editorSuggestWidget.highlightForeground #04d1f9
editorSuggestWidget.selectedBackground #7081d06e
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #f7c67f
editorWhitespace.foreground #bf4f8e80
editorWidget.background #171928
editorWidget.foreground #ebfafa
editorWidget.resizeBorder #7081d07A
focusBorder #04d1f981
foreground #ebfafa
gitDecoration.addedResourceForeground #37f499
gitDecoration.conflictingResourceForeground #a48cf2
gitDecoration.deletedResourceForeground #f16c75
gitDecoration.ignoredResourceForeground #7081d0
gitDecoration.modifiedResourceForeground #f7c67f
gitDecoration.stageDeletedResourceForeground #f16c75
gitDecoration.stageModifiedResourceForeground #f7c67f
gitDecoration.submoduleResourceForeground #9fa9dd
gitDecoration.untrackedResourceForeground #04d1f9
icon.foreground #7081d0A0
input.background #323449
input.border #0f0f0f00
input.foreground #ebfafa
input.placeholderForeground #ebfafa5A
inputOption.activeBackground #7081d0
inputOption.activeBorder #007acc00
inputOption.activeForeground #0f101a
list.activeSelectionBackground #7081d03A
list.activeSelectionForeground #ebfafa
list.dropBackground #323449
list.focusBackground #323449
list.focusForeground #ebfafa
list.highlightForeground #04d1f9
list.hoverBackground #9fa9dd15
list.hoverForeground #ebfafa
list.inactiveSelectionBackground #7081d01A
list.inactiveSelectionForeground #ebfafa9A
listFilterWidget.background #323449
listFilterWidget.noMatchesOutline #f16c75
listFilterWidget.outline #37f499
menu.background #171928
menu.border #00000085
menu.foreground #ebfafa
menu.selectionBackground #323449
menu.selectionBorder #04d1f9
menu.selectionForeground #04d1f9
menu.separatorBackground #a48cf2
menubar.selectionBackground #9fa9dd
menubar.selectionForeground #04d1f9
merge.commonContentBackground #323449
merge.commonHeaderBackground #323449
merge.currentContentBackground #27403b
merge.currentHeaderBackground #37f49956
merge.incomingContentBackground #04d1f9
merge.incomingHeaderBackground #04d1f946
minimap.background #171928
minimap.errorHighlight #f16c75
minimap.findMatchHighlight #9fa9dd68
minimap.selectionHighlight #9fa9dd70
minimap.warningHighlight #f7c67f
minimapGutter.addedBackground #37f499
minimapGutter.deletedBackground #f16c75
minimapGutter.modifiedBackground #04d1f9
notificationCenter.border #a48cf2
notificationCenterHeader.background #171928
notificationCenterHeader.foreground #ebfafa
notifications.background #171928
notifications.border #a48cf2
notifications.foreground #ebfafa
notificationsErrorIcon.foreground #f16c75
notificationsInfoIcon.foreground #04d1f9
notificationsWarningIcon.foreground #f7c67f
notificationToast.border #37f499
panel.background #0f101a
panel.border #a48cf230
panelSection.border #37f499
panelStickyScroll.shadow #7081d030
panelTitle.activeBorder #37f499
panelTitle.activeForeground #04d1f9
panelTitle.inactiveForeground #9fa9dd
peekView.border #7081d0
peekViewEditor.background #0f101a
peekViewEditor.matchHighlightBackground #ff8f0030
peekViewEditor.matchHighlightBorder #ee931e93
peekViewEditorGutter.background #0f101a
peekViewResult.background #171928
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #171928
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #3f3f46
pickerGroup.foreground #3794ff
progressBar.background #a48cf2
scrollbar.shadow #0f101a
scrollbarSlider.activeBackground #7081d0
scrollbarSlider.background #7081d0
scrollbarSlider.hoverBackground #7081d0
selection.background #04d1f930
settings.focusedRowBackground #ffffff07
settings.headerForeground #ebfafa
sideBar.background #171928
sideBar.border #7081d030
sideBar.dropBackground #323449
sideBar.foreground #ebfafa
sideBarActivityBarTop.border #7081d030
sideBarSectionHeader.background #1d1d1d00
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #37f499
sideBarStickyScroll.background #0f101a
sideBarStickyScroll.shadow #7081d030
sideBarTitle.foreground #9fa9dd7A
statusBar.background #171928
statusBar.border #7081d030
statusBar.debuggingBackground #f16c75
statusBar.debuggingForeground #ebfafa
statusBar.foreground #7081d07A
statusBar.noFolderBackground #a48cf2
statusBar.noFolderBorder #37f499
statusBar.noFolderForeground #ebfafa
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #41487530
statusBarItem.remoteBackground #37f499
statusBarItem.remoteForeground #ebfafa
tab.activeBackground #323449
tab.activeBorder #04d1f9
tab.activeBorderTop #00000000
tab.activeForeground #04d1f9
tab.border #323449
tab.hoverBackground #7081d0
tab.hoverForeground #ebfafa
tab.inactiveBackground #3234497c
tab.inactiveForeground #7081d0
terminal.ansiBlack #21222c
terminal.ansiBlue #9071f4
terminal.ansiBrightBlack #7081d0
terminal.ansiBrightBlue #a48cf2
terminal.ansiBrightCyan #66e4fd
terminal.ansiBrightGreen #69f8b3
terminal.ansiBrightMagenta #fd92ce
terminal.ansiBrightRed #f16c75
terminal.ansiBrightWhite #ffffff
terminal.ansiBrightYellow #f1fc79
terminal.ansiCyan #04d1f9
terminal.ansiGreen #37f499
terminal.ansiMagenta #f265b5
terminal.ansiRed #f9515d
terminal.ansiWhite #ebfafa
terminal.ansiYellow #e9f941
terminal.background #0f101a
terminal.border #7081d030
terminal.foreground #ebfafa
terminal.selectionBackground #bf4f8e80
terminalCursor.background #0f101a
terminalCursor.foreground #37f499
terminalOverviewRuler.border #7081d000
textLink.foreground #04d1f9
titleBar.activeBackground #171928
titleBar.activeForeground #9fa9dd
titleBar.border #7081d030
titleBar.inactiveBackground #171928
titleBar.inactiveForeground #9fa9dd
tree.indentGuidesStroke #a48cf266
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0f101a #a48cf2
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ebfafa —
variable.parameter.function.language.special.self.python #04d1f9 —
storage.modifier.lifetime.rust #ebfafa —
support.function.std.rust #f265b5 —
entity.name.lifetime.rust #04d1f9 —
variable.language.rust #a48cf2 —
support.constant.edge #37f499 —
constant.other.character-class.regexp #a48cf2 —
keyword.operator.quantifier.regexp #f16c75 —
punctuation.definition.string.begin,punctuation.definition.string.end #f1fc79 —
variable.parameter.function #ebfafa —
markup.changed.diff #04d1f9 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #f265b5 —
markup.inserted.diff #f1fc79 —
markup.deleted.diff #a48cf2 —
meta.function.c,meta.function.cpp #a48cf2 —
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 #ebfafa —
punctuation.separator.key-value #ebfafa —
keyword.operator.expression.import #f265b5 —
support.constant.math #04d1f9 —
support.constant.property.math #f16c75 —
variable.other.constant #04d1f9 —
storage.type.annotation.java, storage.type.object.array.java #04d1f9 —
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 #ebfafa —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #04d1f9 —
keyword.operator.instanceof.java #37f499 —
meta.definition.variable.name.java #a48cf2 —
keyword.operator.logical #04d1f9 —
keyword.operator.bitwise #04d1f9 —
keyword.operator.channel #04d1f9 —
support.constant.property-value.scss,support.constant.property-value.css #f16c75 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #04d1f9 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #f16c75 —
punctuation.separator.list.comma.css #ebfafa —
support.constant.color.w3c-standard-color-name.css #f16c75 —
support.type.vendored.property-name.css #04d1f9 —
support.module.node,support.type.object.module,support.module.node #04d1f9 —
entity.name.type.module #04d1f9 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #a48cf2 —
support.constant.json #f16c75 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #37f499 —
support.type.object.console #a48cf2 —
support.variable.property.process #f16c75 —
entity.name.function,support.function.console #f265b5 —
keyword.operator.misc.rust #ebfafa —
keyword.operator.sigil.rust #37f499 —
keyword.operator.delete #37f499 —
support.type.object.dom #04d1f9 —
support.variable.dom,support.variable.property.dom #a48cf2 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #04d1f9 —
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 #37f499 —
punctuation.separator.delimiter #ebfafa —
punctuation.separator.c,punctuation.separator.cpp #37f499 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #04d1f9 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #37f499 —
variable.parameter.function.language.python #f16c75 —
support.type.python #04d1f9 —
keyword.operator.logical.python #37f499 —
variable.parameter.function.python #f16c75 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ebfafa —
meta.function-call.generic.python #f265b5 —
constant.character.format.placeholder.other.python #f16c75 —
keyword.operator.assignment.compound #37f499 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #04d1f9 —
entity.name.namespace #04d1f9 —
variable.language #04d1f9 —
token.variable.parameter.java #ebfafa —
import.storage.java #04d1f9 —
token.package.keyword #37f499 —
entity.name.function, meta.require, support.function.any-method, variable.function #f265b5 —
entity.name.type.namespace #04d1f9 —
support.class, entity.name.type.class #04d1f9 —
entity.name.class.identifier.namespace.type #04d1f9 —
entity.name.class, variable.other.class.js, variable.other.class.ts #04d1f9 —
variable.other.class.php #a48cf2 —
control.elements, keyword.operator.less #f16c75 —
keyword.other.special-method #f265b5 —
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 #37f499 —
token.storage.type.java #04d1f9 —
support.type.property-name #ebfafa —
support.constant.property-value #ebfafa —
support.constant.font-name #f16c75 —
entity.other.inherited-class #04d1f9 —
constant.other.symbol #04d1f9 —
punctuation.definition.constant #f16c75 —
entity.other.attribute-name #f16c75 —
entity.other.attribute-name.id #f265b5 normal
entity.other.attribute-name.class.css #f16c75 normal
markup.heading punctuation.definition.heading, entity.name.section #f265b5 —
keyword.other.unit #a48cf2 —
markup.bold,todo.bold #f16c75 —
punctuation.definition.bold #04d1f9 —
markup.italic, punctuation.definition.italic,todo.emphasis #37f499 —
entity.name.section.markdown #a48cf2 —
heading.1.markdown punctuation.definition.heading.markdown, heading.1.markdown entity.name.section.markdown #37f499 bold
heading.2.markdown punctuation.definition.heading.markdown, heading.2.markdown entity.name.section.markdown #04d1f9 bold
heading.3.markdown punctuation.definition.heading.markdown, heading.3.markdown entity.name.section.markdown #a48cf2 bold
heading.4.markdown punctuation.definition.heading.markdown, heading.4.markdown entity.name.section.markdown #f16c75 bold
heading.5.markdown punctuation.definition.heading.markdown, heading.5.markdown entity.name.section.markdown #f1fc79 bold
heading.6.markdown punctuation.definition.heading.markdown, heading.6.markdown entity.name.section.markdown #f1fc79 bold
punctuation.definition.list.begin.markdown #a48cf2 —
markup.heading.setext #ebfafa —
punctuation.definition.bold.markdown #f16c75 —
markup.inline.raw.markdown #f1fc79 —
markup.inline.raw.string.markdown #f1fc79 —
punctuation.definition.list.markdown #a48cf2 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #a48cf2 —
beginning.punctuation.definition.list.markdown #a48cf2 —
punctuation.definition.metadata.markdown #a48cf2 —
markup.underline.link.markdown,markup.underline.link.image.markdown #37f499 —
string.other.link.title.markdown,string.other.link.description.markdown #f265b5 —
constant.character.escape #04d1f9 —
punctuation.section.embedded, variable.interpolation #a48cf2 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #37f499 —
invalid.illegal.bad-ampersand.html #ebfafa —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #a48cf2 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #a48cf2 —
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 #f1fc79 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #04d1f9 —
support.type.property-name.json #a48cf2 —
support.type.property-name.json punctuation #a48cf2 —
support.class.njk #f265b5 bold
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #37f499 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #37f499 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #04d1f9 —
keyword.operator.error-control.php #37f499 —
keyword.operator.type.php #37f499 —
punctuation.section.array.begin.php #ebfafa —
punctuation.section.array.end.php #ebfafa —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #04d1f9 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #f265b5 —
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 #ebfafa —
support.constant.core.rust #f16c75 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #f16c75 —
entity.name.goto-label.php,support.other.php #f265b5 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #04d1f9 —
keyword.operator.regexp.php #37f499 —
keyword.operator.comparison.php #04d1f9 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #37f499 —
meta.function.decorator.python #f265b5 —
support.token.decorator.python,meta.function.decorator.identifier.python #04d1f9 —
function.parameter #ebfafa —
function.parameter.ruby, function.parameter.cs #ebfafa —
constant.language.symbol.ruby #04d1f9 —
inline-color-decoration rgb-value #f16c75 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #04d1f9 —
block.scope.end,block.scope.begin #ebfafa —
entity.name.variable.local.cs #a48cf2 —
token.error-token #f44747 —
token.debug-token #37f499 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #37f499 —
meta.template.expression #ebfafa —
keyword.operator.module #37f499 —
support.type.type.flowtype #f265b5 —
support.type.primitive #04d1f9 —
meta.property.object #a48cf2 —
variable.parameter.function.js #a48cf2 —
keyword.other.template.begin #f1fc79 —
keyword.other.template.end #f1fc79 —
keyword.other.substitution.begin #f1fc79 —
keyword.other.substitution.end #f1fc79 —
keyword.operator.assignment #04d1f9 —
keyword.operator.assignment.go #04d1f9 —
keyword.operator.arithmetic.go, keyword.operator.address.go #37f499 —
entity.name.package.go #04d1f9 —
support.type.prelude.elm #04d1f9 —
support.constant.elm #f16c75 —
punctuation.quasi.element #37f499 —
constant.character.entity #a48cf2 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #04d1f9 —
entity.global.clojure #04d1f9 —
meta.symbol.clojure #a48cf2 —
constant.keyword.clojure #04d1f9 —
meta.arguments.coffee, variable.parameter.function.coffee #a48cf2 —
meta.scope.prerequisites.makefile #a48cf2 —
storage.modifier.import.groovy #04d1f9 —
meta.method.groovy #f265b5 —
meta.definition.variable.name.groovy #a48cf2 —
meta.definition.class.inherited.classes.groovy #f1fc79 —
support.variable.semantic.hlsl #04d1f9 —
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 #37f499 —
text.variable, text.bracketed #a48cf2 —
support.type.swift, support.type.vb.asp #04d1f9 —
entity.name.function.xi #04d1f9 —
entity.name.class.xi #04d1f9 —
constant.character.character-class.regexp.xi #a48cf2 —
constant.regexp.xi #37f499 —
keyword.control.xi #04d1f9 —
beginning.punctuation.definition.quote.markdown.xi #f1fc79 —
constant.character.xi #f265b5 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #7081d0 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #04d1f9 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #a48cf2 —
meta.brace.square #ebfafa —
beginning.punctuation.definition.list.markdown.xi #7081d0 —
comment markup.link #7081d0 —
comment, punctuation.definition.comment #7081d0 italic
comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class #a48cf2 —
comment.block.documentation entity.name.type.instance #37f499 italic
comment.block.documentation entity.name.type punctuation.definition.bracket #a48cf2 —
comment.block.documentation variable #f7c67f italic
markup.quote.markdown #7081d0 —
punctuation.definition.block.sequence.item.yaml #ebfafa —
support.type.property-name.table.toml #f265b5 bold
constant.language.symbol.elixir #04d1f9 —
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...
~/my-project
main*
Button.tsx
31
$
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 } !` ;
}