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 #0c1b13 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #2d9d78 activityBarBadge.foreground #ffffff badge.background #4d4d4d tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle keyword.other.macros #e49287 — keyword.other.macrosdebug #f16653 — keyword.other.pseudocommands #f5ad41 — keyword.tbscript #d5ec80 — keyword.system.tbscript
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Emerald Sky — Emerald Sky
badge.foreground
#ffffff
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #003640
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #ece6e6cc
button.background #336b5b
button.foreground #ffffff
button.hoverBackground #498c79
button.secondaryBackground #2d4133
button.secondaryForeground #ffffff
button.secondaryHoverBackground #3e5c47
checkbox.background #3c3c3c
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #333333
debugExceptionWidget.border #474747
debugToolBar.background #05100A
debugToolBar.border #474747
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #1c3025
dropdown.border #00000000
dropdown.foreground #cccccc
dropdown.listBackground #097167
editor.background #05100A
editor.findMatchBackground #3e422e20
editor.findMatchBorder #b3cc35c0
editor.findMatchHighlightBackground #60591320
editor.findMatchHighlightBorder #ffffff3c
editor.findRangeHighlightBackground #3a3d4120
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #d4d4d4
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #4f523f20
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #282828
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #244c4e
editor.selectionForeground #b3cc35
editor.selectionHighlightBackground #3e422e20
editor.selectionHighlightBorder #b3cc35c0
editor.wordHighlightBackground #57575720
editor.wordHighlightStrongBackground #244c4e20
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #ff9079
editorGroup.border #444444
editorGroup.emptyBackground #05100A
editorGroupHeader.tabsBackground #09181b
editorGutter.addedBackground #587c0c
editorGutter.background #0c1b13
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #252526
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground1 #707070
editorIndentGuide.background1 #404040
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #c6c6c6
editorLineNumber.dimmedForeground #808080
editorLineNumber.foreground #858585
editorLink.activeForeground #7bb7e8
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorMultiCursor.primary.background #000000
editorMultiCursor.primary.foreground #aeafad
editorMultiCursor.secondary.background #000000
editorMultiCursor.secondary.foreground #aeafad
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #1c3025
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #24c08d
editorSuggestWidget.selectedBackground #126b35
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e220
editorWidget.background #243620
editorWidget.foreground #cccccc
editorWidget.resizeBorder #5F5F5F
focusBorder #2d9d78
foreground #cccccc
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 #cccccc
input.background #222d20
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #007fd466
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #097167
list.activeSelectionForeground #ffffff
list.dropBackground #4f6963
list.focusBackground #2d6062
list.focusForeground #cccccc
list.highlightForeground #3e8c72
list.hoverBackground #24543a
list.hoverForeground #cccccc
list.inactiveSelectionBackground #1c3025
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #653723
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #1c3025
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #097167
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #bbbbbb
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #28282820
merge.commonHeaderBackground #38383820
merge.currentContentBackground #27403B20
merge.currentHeaderBackground #36736620
merge.incomingContentBackground #28384B20
merge.incomingHeaderBackground #395F8F20
minimap.background #05100A
minimap.errorHighlight #ff9079
minimap.findMatchHighlight #50759620
minimap.selectionHighlight #10464b20
minimap.warningHighlight #cca700
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #474747
notificationCenterHeader.background #103020
notificationCenterHeader.foreground #cccccc
notifications.background #0d2020
notifications.border #303031
notifications.foreground #cccccc
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #474747
panel.background #081a10
panel.border #80808059
panelSection.border #80808059
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 #3f3f46
pickerGroup.foreground #6ebfd7
progressBar.background #15bdc0
scrollbar.shadow #000000
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646850bb
searchEditor.findMatchBackground #3e422e20
searchEditor.findMatchBorder #b3cc35c0
searchEditor.textInputBorder #8a876c
selection.background #256aa7
settings.focusedRowBackground #ffffff07
settings.headerForeground #cccccc
sideBar.background #081a10
sideBar.dropBackground #383b3d
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #17493b
statusBar.debuggingBackground #c05f2f
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #68217a
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #115e44
statusBarItem.remoteForeground #ffffff
tab.activeBackground #1f5560
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #252526
tab.inactiveBackground #194045
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.background #000000
terminal.border #80808059
terminal.foreground #cccccc
terminal.selectionBackground #0b88d340
terminalCursor.background #0087FF
terminalCursor.foreground #ffffff
textLink.foreground #42d7ad
titleBar.activeBackground #2f4f46
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #0a170f99
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #2de7d8
keyword.strings.tbscript #afa1e9 —
keyword.terminal.tbscript #627cd3 —
keyword.disk.tbscript #b56df8 —
keyword.other.gui.tbscript #bf3be7 —
keyword.other.members.tbscript #18a3ff —
constant.character.escaped.dbl.tbscript #f57df5 —
constant.character.escaped.single.tbscript #eb73eb —
constant.numeric.tbscript #1ccbd1 —
constant.numeric.hexidecimal.tbscript #3ee2ab —
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 #8cb8e8 —
variable.other.generic-type.haskell #cfd39b —
storage.type.haskell #4faeb8 —
support.variable.magic.python #8cb8e8 —
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #d4d4d4 —
variable.parameter.function.language.special.self.python #57a593 —
storage.modifier.lifetime.rust #d4d4d4 —
support.function.std.rust #cdb16f —
entity.name.lifetime.rust #57a593 —
variable.language.rust #8cb8e8 —
support.constant.edge #cfd39b —
constant.other.character-class.regexp #8cb8e8 —
keyword.operator.quantifier.regexp #4faeb8 —
punctuation.definition.string.begin,punctuation.definition.string.end #eea75b —
variable.parameter.function #d4d4d4 —
comment markup.link #1eb419 —
markup.changed.diff #57a593 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #cdb16f —
markup.inserted.diff #eea75b —
markup.deleted.diff #8cb8e8 —
meta.function.c,meta.function.cpp #8cb8e8 —
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 #d4d4d4 —
punctuation.separator.key-value #d4d4d4 —
keyword.operator.expression.import #cdb16f —
support.constant.math #57a593 —
support.constant.property.math #4faeb8 —
variable.other.constant #57a593 —
storage.type.annotation.java, storage.type.object.array.java #57a593 —
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 #d4d4d4 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #57a593 —
keyword.operator.instanceof.java #cfd39b —
meta.definition.variable.name.java #8cb8e8 —
keyword.operator.logical #be80a3 —
keyword.operator.bitwise #be80a3 —
keyword.operator.channel #be80a3 —
support.constant.property-value.scss,support.constant.property-value.css #4faeb8 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #be80a3 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #4faeb8 —
punctuation.separator.list.comma.css #d4d4d4 —
support.constant.color.w3c-standard-color-name.css #4faeb8 —
support.type.vendored.property-name.css #be80a3 —
support.module.node,support.type.object.module,support.module.node #57a593 —
entity.name.type.module #57a593 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #8cb8e8 —
support.constant.json #4faeb8 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #cfd39b —
support.type.object.console #8cb8e8 —
support.variable.property.process #4faeb8 —
entity.name.function,support.function.console #cdb16f —
keyword.operator.misc.rust #d4d4d4 —
keyword.operator.sigil.rust #cfd39b —
keyword.operator.delete #cfd39b —
support.type.object.dom #be80a3 —
support.variable.dom,support.variable.property.dom #8cb8e8 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #be80a3 —
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 #cfd39b —
punctuation.separator.delimiter #d4d4d4 —
punctuation.separator.c,punctuation.separator.cpp #cfd39b —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #be80a3 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #cfd39b —
variable.parameter.function.language.python #4faeb8 —
support.type.python #be80a3 —
keyword.operator.logical.python #cfd39b —
variable.parameter.function.python #4faeb8 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #d4d4d4 —
meta.function-call.generic.python #cdb16f —
constant.character.format.placeholder.other.python #4faeb8 —
keyword.operator.assignment.compound #cfd39b —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #be80a3 —
keyword.control.rcscript #e7cb65 —
keyword.control.class.rcscript #2db190 —
keyword.control.type.rcscript #4fc4a5 —
keyword.other.rcscript #548dcb —
keyword.other.virtualkeys.rcscript #0eabb0 —
keyword.storage.modifier.user.defined.rcscript #3baac1 —
keyword.storage.type.versioninfo.rcscript #346faa —
keyword.other.styles.control.rcscript #5fd5b0 —
keyword.other.styles.window.rcscript #84b6d5 —
keyword.other.exstyles.rcscript #817dca —
keyword.storage.type.font.rcscript #fba5fa —
keyword.storage.type.resources.rcscript #078a70 —
entity.name.namespace #57a593 —
variable.language #57a593 —
token.variable.parameter.java #d4d4d4 —
import.storage.java #57a593 —
token.package.keyword #cfd39b —
entity.name.function, meta.require, support.function.any-method, variable.function #cdb16f —
entity.name.type.namespace #57a593 —
support.class, entity.name.type.class #57a593 —
entity.name.class.identifier.namespace.type #57a593 —
entity.name.class, variable.other.class.js, variable.other.class.ts #57a593 —
variable.other.class.php #8cb8e8 —
control.elements, keyword.operator.less #4faeb8 —
keyword.other.special-method #cdb16f —
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 #cfd39b —
token.storage.type.java #57a593 —
support.type.property-name #d4d4d4 —
support.constant.property-value #d4d4d4 —
support.constant.font-name #4faeb8 —
entity.other.inherited-class #57a593 —
constant.other.symbol #be80a3 —
punctuation.definition.constant #4faeb8 —
entity.other.attribute-name #4faeb8 —
entity.other.attribute-name.id #cdb16f
entity.other.attribute-name.class.css #4faeb8
markup.heading punctuation.definition.heading, entity.name.section #cdb16f —
keyword.other.unit #8cb8e8 —
markup.bold,todo.bold #4faeb8 —
punctuation.definition.bold #57a593 —
markup.italic, punctuation.definition.italic,todo.emphasis #cfd39b —
entity.name.section.markdown #8cb8e8 —
punctuation.definition.heading.markdown #8cb8e8 —
punctuation.definition.list.begin.markdown #8cb8e8 —
markup.heading.setext #d4d4d4 —
punctuation.definition.bold.markdown #4faeb8 —
markup.inline.raw.markdown #eea75b —
markup.inline.raw.string.markdown #eea75b —
punctuation.definition.list.markdown #8cb8e8 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #8cb8e8 —
beginning.punctuation.definition.list.markdown #8cb8e8 —
punctuation.definition.metadata.markdown #8cb8e8 —
markup.underline.link.markdown,markup.underline.link.image.markdown #cfd39b —
string.other.link.title.markdown,string.other.link.description.markdown #cdb16f —
constant.character.escape #be80a3 —
punctuation.section.embedded, variable.interpolation #8cb8e8 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #cfd39b —
invalid.illegal.bad-ampersand.html #d4d4d4 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #8cb8e8 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #8cb8e8 —
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 #eea75b —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #be80a3 —
support.type.property-name.json #8cb8e8 —
support.type.property-name.json punctuation #8cb8e8 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #cfd39b —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #cfd39b —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #57a593 —
keyword.operator.error-control.php #cfd39b —
keyword.operator.type.php #cfd39b —
punctuation.section.array.begin.php #d4d4d4 —
punctuation.section.array.end.php #d4d4d4 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #57a593 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #cdb16f —
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 #d4d4d4 —
support.constant.core.rust #4faeb8 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #4faeb8 —
entity.name.goto-label.php,support.other.php #cdb16f —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #be80a3 —
keyword.operator.regexp.php #cfd39b —
keyword.operator.comparison.php #be80a3 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #cfd39b —
meta.function.decorator.python #cdb16f —
support.token.decorator.python,meta.function.decorator.identifier.python #be80a3 —
function.parameter #d4d4d4 —
function.parameter.ruby, function.parameter.cs #d4d4d4 —
constant.language.symbol.ruby #be80a3 —
inline-color-decoration rgb-value #4faeb8 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #57a593 —
block.scope.end,block.scope.begin #d4d4d4 —
entity.name.variable.local.cs #8cb8e8 —
token.error-token #f44747 —
token.debug-token #cfd39b —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #cfd39b —
meta.template.expression #d4d4d4 —
keyword.operator.module #cfd39b —
support.type.type.flowtype #cdb16f —
support.type.primitive #57a593 —
meta.property.object #8cb8e8 —
variable.parameter.function.js #8cb8e8 —
keyword.other.template.begin #eea75b —
keyword.other.template.end #eea75b —
keyword.other.substitution.begin #eea75b —
keyword.other.substitution.end #eea75b —
keyword.operator.assignment #be80a3 —
keyword.operator.assignment.go #57a593 —
keyword.operator.arithmetic.go, keyword.operator.address.go #cfd39b —
entity.name.package.go #57a593 —
support.type.prelude.elm #be80a3 —
support.constant.elm #4faeb8 —
punctuation.quasi.element #cfd39b —
constant.character.entity #8cb8e8 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #be80a3 —
entity.global.clojure #57a593 —
meta.symbol.clojure #8cb8e8 —
constant.keyword.clojure #be80a3 —
meta.arguments.coffee, variable.parameter.function.coffee #8cb8e8 —
meta.scope.prerequisites.makefile #8cb8e8 —
storage.modifier.import.groovy #57a593 —
meta.method.groovy #cdb16f —
meta.definition.variable.name.groovy #8cb8e8 —
meta.definition.class.inherited.classes.groovy #eea75b —
support.variable.semantic.hlsl #57a593 —
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 #cfd39b —
text.variable, text.bracketed #8cb8e8 —
support.type.swift, support.type.vb.asp #57a593 —
entity.name.function.xi #57a593 —
entity.name.class.xi #be80a3 —
constant.character.character-class.regexp.xi #8cb8e8 —
constant.regexp.xi #cfd39b —
keyword.control.xi #be80a3 —
beginning.punctuation.definition.quote.markdown.xi #eea75b —
beginning.punctuation.definition.list.markdown.xi #1eb419 —
constant.character.xi #cdb16f —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #1eb419 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #57a593 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #8cb8e8 —
meta.brace.square #d4d4d4 —
comment, punctuation.definition.comment #1eb419 —
markup.quote.markdown #1eb419 —
punctuation.definition.block.sequence.item.yaml #d4d4d4 —
constant.language.symbol.elixir #be80a3 —
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 —
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*
Emerald Sky | Coding Theme
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 } !` ;
}