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 #1b2636 activityBar.border #000000 activityBar.foreground #9dabef activityBar.inactiveForeground #fdfdff66 activityBarBadge.background #007acc activityBarBadge.foreground #f7f7f7 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 #a5b4fc — variable.other.generic-type.haskell #3b82f6 — storage.type.haskell #8b5cf6 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Hallow Essence — Hallow Essence
badge.background
#ff9c9c
badge.foreground #000000
breadcrumb.activeSelectionForeground #9dabef
breadcrumb.background #1e2a3b
breadcrumb.focusForeground #9dabef
breadcrumb.foreground #8899a3
button.background #2a4c82
button.foreground #ffffff
button.hoverBackground #1d9bee
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e
checkbox.background #3c3c3c
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #2b2d34
debugExceptionWidget.border #47474700
debugToolBar.background #2b2d34
debugToolBar.border #47474700
diffEditor.border #00000000
diffEditor.insertedTextBackground #79943a33
diffEditor.insertedTextBorder #864c4c
diffEditor.removedTextBackground #ff4e4e33
diffEditor.removedTextBorder #8a41418b
dropdown.background #3c3c3c
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #1e2a3b
editor.findMatchBackground #515c6a
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #eaa50055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #35445866
editor.findRangeHighlightBorder #f2f2f200
editor.foldBackground #2831564d
editor.foreground #8b5cf6
editor.hoverHighlightBackground #a0cfff40
editor.inactiveSelectionBackground #3a3d41
editor.lineHighlightBackground #1110173c
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #f96f6f0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #1e2a3b
editor.selectionHighlightBackground #ffadad26
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #575757b8
editor.wordHighlightBorder #ff000000
editor.wordHighlightStrongBackground #03679fb8
editor.wordHighlightStrongBorder #ff000000
editorBracketMatch.background #ff97281c
editorBracketMatch.border #ff9077
editorCodeLens.foreground #9ea19c9b
editorCursor.background #090028
editorCursor.foreground #b3b4b2
editorError.background #7b444200
editorError.border #ffffff00
editorError.foreground #ff4620
editorGroup.border #00000070
editorGroup.emptyBackground #1e2a3b
editorGroupHeader.border #1d1d21
editorGroupHeader.tabsBackground #1b2636
editorGroupHeader.tabsBorder #ff787800
editorGutter.addedBackground #55ba0f
editorGutter.background #1e2a3b
editorGutter.commentRangeForeground #cbc4c4
editorGutter.deletedBackground #c41f26
editorGutter.foldingControlForeground #cbc4c4
editorGutter.modifiedBackground #26a8cd
editorHoverWidget.background #1e2a3b
editorHoverWidget.border #3b82f6
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #4c7880
editorIndentGuide.background #374464
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #5186b6
editorLineNumber.activeForeground #b0b1ff
editorLineNumber.foreground #3f4c61
editorLink.activeForeground #54b2ff
editorMarkerNavigation.background #1e2a3b
editorMarkerNavigationError.background #8a4d4d
editorMarkerNavigationInfo.background #527fa7
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #5e5e5e00
editorOverviewRuler.border #c0afaf00
editorRuler.foreground #1e2a3b
editorSuggestWidget.background #1e2a3b
editorSuggestWidget.border #45454544
editorSuggestWidget.foreground #8da5b6
editorSuggestWidget.highlightForeground #3b82f6
editorSuggestWidget.selectedBackground #1b2336
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffe46c
editorWhitespace.foreground #fbfff829
editorWidget.background #1a1c2a
editorWidget.foreground #b2a8a8
editorWidget.resizeBorder #9dabef
focusBorder #00699d00
foreground #9dabef
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 #9dabef
input.background #3c3c3c
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #007fd466
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #262a49
list.activeSelectionForeground #00fff3
list.dropBackground #2c2e47
list.focusBackground #21445a
list.focusForeground #cfcfcf
list.highlightForeground #0097fb
list.hoverBackground #4c4c7700
list.hoverForeground #ffffff
list.inactiveSelectionBackground #1e2a3b
list.inactiveSelectionForeground #00dbff
listFilterWidget.background #6d3a3a
listFilterWidget.noMatchesOutline #f0564700
listFilterWidget.outline #c2c2c200
menu.background #1e2a3b
menu.border #8a7b7b00
menu.foreground #8d9dbc
menu.selectionBackground #1b2634
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #4f677b54
menubar.selectionBackground #1e2a3b
menubar.selectionBorder #e60f0f00
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #1e2a3b
minimap.errorHighlight #ff4620
minimap.findMatchHighlight #515c6a
minimap.selectionHighlight #1e2a3b
minimap.warningHighlight #ffe46c
minimapGutter.addedBackground #55ba0f
minimapGutter.deletedBackground #c41f26
minimapGutter.modifiedBackground #26a8cd
notificationCenter.border #47474700
notificationCenterHeader.background #24283b
notificationCenterHeader.foreground #fbfbfb
notifications.background #1b2636
notifications.border #30303100
notifications.foreground #9dabef
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #47474700
panel.background #1b2636
panel.border #00000059
panelSection.border #80808000
panelTitle.activeBorder #b1e2ff
panelTitle.activeForeground #9dabef
panelTitle.inactiveForeground #e7e7e799
peekView.border #3b82f6
peekViewEditor.background #1e2a3b
peekViewEditor.matchHighlightBackground #ee860056
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #1e2a3b
peekViewResult.background #141c30
peekViewResult.fileForeground #cbfdff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e2a3b
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #cbfdff
pickerGroup.border #51517100
pickerGroup.foreground #9dabef
progressBar.background #9dabef
scrollbar.shadow #282828
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #49485a20
scrollbarSlider.hoverBackground #49485a20
selection.background #225596
settings.focusedRowBackground #ffffff07
settings.headerForeground #9dabef
sideBar.background #1b2636
sideBar.border #000000
sideBar.dropBackground #2c2e47
sideBar.foreground #9dabef
sideBarSectionHeader.background #ffffff00
sideBarSectionHeader.border #00000054
sideBarSectionHeader.foreground #9dabef
sideBarTitle.foreground #9dabef
statusBar.background #1e2a3b
statusBar.border #000000
statusBar.debuggingBackground #cc3333
statusBar.debuggingBorder #000000
statusBar.debuggingForeground #ffffff
statusBar.foreground #9dabef
statusBar.noFolderBackground #68217a
statusBar.noFolderBorder #000000
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #16825d
statusBarItem.remoteForeground #9dabef
tab.activeBackground #1e2a3b
tab.activeBorder #9dabef
tab.activeBorderTop #5affb200
tab.activeForeground #ffffff
tab.border #25252600
tab.hoverBorder #00000000
tab.inactiveBackground #1b2636
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 #80808000
terminal.foreground #beb6b6
terminal.selectionBackground #8eb3c440
terminalCursor.background #0087FF
terminalCursor.foreground #ffffff
textLink.foreground #5591d7
titleBar.activeBackground #1b2636
titleBar.activeForeground #9dabef
titleBar.border #000000
titleBar.inactiveBackground #1b2636
titleBar.inactiveForeground #9dabef
tree.indentGuidesStroke #9dabef
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #a5b4fc
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #8b5cf6 —
variable.parameter.function.language.special.self.python #ec4899 —
storage.modifier.lifetime.rust #8b5cf6 —
support.function.std.rust #59b4ff —
entity.name.lifetime.rust #ec4899 —
variable.language.rust #a5b4fc —
support.constant.edge #3b82f6 —
constant.other.character-class.regexp #a5b4fc —
keyword.operator.quantifier.regexp #8b5cf6 —
punctuation.definition.string.begin,punctuation.definition.string.end #91ff81 —
variable.parameter.function #8b5cf6 —
comment markup.link #64748b —
markup.changed.diff #ec4899 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #59b4ff —
markup.inserted.diff #91ff81 —
markup.deleted.diff #a5b4fc —
meta.function.c,meta.function.cpp #a5b4fc —
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 #8b5cf6 —
punctuation.separator.key-value #8b5cf6 —
keyword.operator.expression.import #59b4ff —
support.constant.math #ec4899 —
support.constant.property.math #8b5cf6 —
variable.other.constant #ec4899 —
storage.type.annotation.java, storage.type.object.array.java #ec4899 —
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 #8b5cf6 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ec4899 —
keyword.operator.instanceof.java #3b82f6 —
meta.definition.variable.name.java #a5b4fc —
keyword.operator.logical #128cc6 —
keyword.operator.bitwise #128cc6 —
keyword.operator.channel #128cc6 —
support.constant.property-value.scss,support.constant.property-value.css #8b5cf6 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #128cc6 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #8b5cf6 —
punctuation.separator.list.comma.css #8b5cf6 —
support.constant.color.w3c-standard-color-name.css #8b5cf6 —
support.type.vendored.property-name.css #128cc6 —
support.module.node,support.type.object.module,support.module.node #ec4899 —
entity.name.type.module #ec4899 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #a5b4fc —
support.constant.json #8b5cf6 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #3b82f6 —
support.type.object.console #a5b4fc —
support.variable.property.process #8b5cf6 —
entity.name.function,support.function.console #59b4ff —
keyword.operator.misc.rust #8b5cf6 —
keyword.operator.sigil.rust #3b82f6 —
keyword.operator.delete #3b82f6 —
support.type.object.dom #128cc6 —
support.variable.dom,support.variable.property.dom #a5b4fc —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #128cc6 —
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 #3b82f6 —
punctuation.separator.delimiter #8b5cf6 —
punctuation.separator.c,punctuation.separator.cpp #3b82f6 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #128cc6 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #3b82f6 —
variable.parameter.function.language.python #8b5cf6 —
support.type.python #128cc6 —
keyword.operator.logical.python #3b82f6 —
variable.parameter.function.python #8b5cf6 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #8b5cf6 —
meta.function-call.generic.python #59b4ff —
constant.character.format.placeholder.other.python #8b5cf6 —
keyword.operator.assignment.compound #3b82f6 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #128cc6 —
entity.name.namespace #ec4899 —
variable.language #ec4899 —
token.variable.parameter.java #8b5cf6 —
import.storage.java #ec4899 —
token.package.keyword #3b82f6 —
entity.name.function, meta.require, support.function.any-method, variable.function #59b4ff —
entity.name.type.namespace #ec4899 —
support.class, entity.name.type.class #ec4899 —
entity.name.class.identifier.namespace.type #ec4899 —
entity.name.class, variable.other.class.js, variable.other.class.ts #ec4899 —
variable.other.class.php #a5b4fc —
control.elements, keyword.operator.less #8b5cf6 —
keyword.other.special-method #59b4ff —
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 #3b82f6 —
token.storage.type.java #ec4899 —
support.type.property-name #8b5cf6 —
support.constant.property-value #8b5cf6 —
support.constant.font-name #8b5cf6 —
entity.other.inherited-class #ec4899 —
constant.other.symbol #128cc6 —
punctuation.definition.constant #8b5cf6 —
entity.other.attribute-name #8b5cf6 —
entity.other.attribute-name.id #59b4ff normal
entity.other.attribute-name.class.css #8b5cf6 normal
markup.heading punctuation.definition.heading, entity.name.section #59b4ff —
keyword.other.unit #a5b4fc —
markup.bold,todo.bold #8b5cf6 —
punctuation.definition.bold #ec4899 —
markup.italic, punctuation.definition.italic,todo.emphasis #3b82f6 —
entity.name.section.markdown #a5b4fc —
punctuation.definition.heading.markdown #a5b4fc —
punctuation.definition.list.begin.markdown #a5b4fc —
markup.heading.setext #8b5cf6 —
punctuation.definition.bold.markdown #8b5cf6 —
markup.inline.raw.markdown #91ff81 —
markup.inline.raw.string.markdown #91ff81 —
punctuation.definition.list.markdown #a5b4fc —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #a5b4fc —
beginning.punctuation.definition.list.markdown #a5b4fc —
punctuation.definition.metadata.markdown #a5b4fc —
markup.underline.link.markdown,markup.underline.link.image.markdown #3b82f6 —
string.other.link.title.markdown,string.other.link.description.markdown #59b4ff —
constant.character.escape #128cc6 —
punctuation.section.embedded, variable.interpolation #a5b4fc —
punctuation.section.embedded.begin,punctuation.section.embedded.end #3b82f6 —
invalid.illegal.bad-ampersand.html #8b5cf6 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #a5b4fc —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #a5b4fc —
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 #91ff81 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #128cc6 —
support.type.property-name.json #a5b4fc —
support.type.property-name.json punctuation #a5b4fc —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #3b82f6 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #3b82f6 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ec4899 —
keyword.operator.error-control.php #3b82f6 —
keyword.operator.type.php #3b82f6 —
punctuation.section.array.begin.php #8b5cf6 —
punctuation.section.array.end.php #8b5cf6 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ec4899 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #59b4ff —
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 #8b5cf6 —
support.constant.core.rust #8b5cf6 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #8b5cf6 —
entity.name.goto-label.php,support.other.php #59b4ff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #128cc6 —
keyword.operator.regexp.php #3b82f6 —
keyword.operator.comparison.php #128cc6 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #3b82f6 —
meta.function.decorator.python #59b4ff —
support.token.decorator.python,meta.function.decorator.identifier.python #128cc6 —
function.parameter #8b5cf6 —
function.parameter.ruby, function.parameter.cs #8b5cf6 —
constant.language.symbol.ruby #128cc6 —
inline-color-decoration rgb-value #8b5cf6 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ec4899 —
block.scope.end,block.scope.begin #8b5cf6 —
entity.name.variable.local.cs #a5b4fc —
token.error-token #f44747 —
token.debug-token #3b82f6 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #3b82f6 —
meta.template.expression #8b5cf6 —
keyword.operator.module #3b82f6 —
support.type.type.flowtype #59b4ff —
support.type.primitive #ec4899 —
meta.property.object #a5b4fc —
variable.parameter.function.js #a5b4fc —
keyword.other.template.begin #91ff81 —
keyword.other.template.end #91ff81 —
keyword.other.substitution.begin #91ff81 —
keyword.other.substitution.end #91ff81 —
keyword.operator.assignment #128cc6 —
keyword.operator.assignment.go #ec4899 —
keyword.operator.arithmetic.go, keyword.operator.address.go #3b82f6 —
entity.name.package.go #ec4899 —
support.type.prelude.elm #128cc6 —
support.constant.elm #8b5cf6 —
punctuation.quasi.element #3b82f6 —
constant.character.entity #a5b4fc —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #128cc6 —
entity.global.clojure #ec4899 —
meta.symbol.clojure #a5b4fc —
constant.keyword.clojure #128cc6 —
meta.arguments.coffee, variable.parameter.function.coffee #a5b4fc —
meta.scope.prerequisites.makefile #a5b4fc —
storage.modifier.import.groovy #ec4899 —
meta.method.groovy #59b4ff —
meta.definition.variable.name.groovy #a5b4fc —
meta.definition.class.inherited.classes.groovy #91ff81 —
support.variable.semantic.hlsl #ec4899 —
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 #3b82f6 —
text.variable, text.bracketed #a5b4fc —
support.type.swift, support.type.vb.asp #ec4899 —
entity.name.function.xi #ec4899 —
entity.name.class.xi #128cc6 —
constant.character.character-class.regexp.xi #a5b4fc —
constant.regexp.xi #3b82f6 —
keyword.control.xi #128cc6 —
beginning.punctuation.definition.quote.markdown.xi #91ff81 —
beginning.punctuation.definition.list.markdown.xi #64748b —
constant.character.xi #59b4ff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #64748b —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ec4899 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #a5b4fc —
meta.brace.square #8b5cf6 —
comment, punctuation.definition.comment #64748b italic
markup.quote.markdown #64748b —
punctuation.definition.block.sequence.item.yaml #8b5cf6 —
constant.language.symbol.elixir #128cc6 —
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 } !` ;
}
Hallow Essence | Coding Theme