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 #ffffff00 activityBar.background #050f0e activityBar.border #ff134200 activityBar.foreground #ff1342 activityBar.inactiveForeground #3d996b activityBarBadge.background #ff1342 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 #e6274d — variable.other.generic-type.haskell #e62e7a — storage.type.haskell #e66c84 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Verner | Coding Theme
activityBarBadge.foreground #f2e6e9
badge.background #ff1342
badge.foreground #f2e6e9
breadcrumb.activeSelectionForeground #12ffbc
breadcrumb.background #050f0e
breadcrumb.focusForeground #12ffbc
breadcrumb.foreground #3d996b
button.background #ff1342
button.foreground #f2e6e9
button.hoverBackground #e6274d
button.secondaryBackground #12ffbc
button.secondaryForeground #0f0f0f
button.secondaryHoverBackground #83e6b4
checkbox.background #050f0e
checkbox.border #ffffff00
checkbox.foreground #12ffbc
debugExceptionWidget.background #061a17
debugExceptionWidget.border #ffffff00
debugToolBar.background #061a17
debugToolBar.border #ffffff00
diffEditor.border #ff1342
diffEditor.insertedTextBackground #062621
diffEditor.insertedTextBorder #ffffff00
diffEditor.removedTextBackground #ff134250
diffEditor.removedTextBorder #ffffff00
dropdown.background #050f0e
dropdown.border #ffffff00
dropdown.foreground #12ffbc
editor.background #050f0e
editor.findMatchBackground #ff134250
editor.findMatchBorder #ff1342
editor.findMatchHighlightBackground #ff134250
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #ff134250
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #062621
editor.foreground #f2e6e9
editor.hoverHighlightBackground #ff134250
editor.inactiveSelectionBackground #062621
editor.lineHighlightBackground #062621
editor.lineHighlightBorder #ffffff00
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #ff134250
editor.selectionHighlightBackground #ff134250
editor.selectionHighlightBorder #ff1342
editor.wordHighlightBackground #ff134250
editor.wordHighlightBorder #ff1342
editor.wordHighlightStrongBackground #ff134250
editor.wordHighlightStrongBorder #ff1342
editorBracketMatch.background #ff134250
editorBracketMatch.border #ff1342
editorCodeLens.foreground #3d996b
editorCursor.background #f2e6e9
editorCursor.foreground #ff1342
editorError.background #ffffff00
editorError.border #ffffff00
editorError.foreground #ff1342
editorGroup.border #3d996b
editorGroup.emptyBackground #050f0e
editorGroupHeader.border #ffffff00
editorGroupHeader.tabsBackground #050f0e
editorGroupHeader.tabsBorder #ffffff00
editorGutter.addedBackground #12ffbc
editorGutter.background #061a17
editorGutter.commentRangeForeground #ff1342
editorGutter.deletedBackground #ff1342
editorGutter.foldingControlForeground #ff1342
editorGutter.modifiedBackground #8fff66
editorHoverWidget.background #062621
editorHoverWidget.border #ffffff00
editorHoverWidget.foreground #3d996b
editorIndentGuide.activeBackground #ff1342
editorIndentGuide.background #3d996b
editorInfo.background #ffffff00
editorInfo.border #ffffff00
editorInfo.foreground #12ffbc
editorLineNumber.activeForeground #ff1342
editorLineNumber.foreground #3d996b
editorLink.activeForeground #ff1342
editorMarkerNavigation.background #062621
editorMarkerNavigationError.background #ff1342
editorMarkerNavigationInfo.background #12ffbc
editorMarkerNavigationWarning.background #8fff66
editorOverviewRuler.background #061a17
editorOverviewRuler.border #ffffff00
editorRuler.foreground #3d996b
editorSuggestWidget.background #061a17
editorSuggestWidget.border #061a17
editorSuggestWidget.foreground #3d996b
editorSuggestWidget.highlightForeground #12ffbc
editorSuggestWidget.selectedBackground #062621
editorWarning.background #ffffff00
editorWarning.border #ffffff00
editorWarning.foreground #8fff66
editorWhitespace.foreground #3d996b
editorWidget.background #061a17
editorWidget.foreground #3d996b
editorWidget.resizeBorder #3d996b
focusBorder #ffffff00
foreground #3d996b
gitDecoration.addedResourceForeground #12ffbc
gitDecoration.conflictingResourceForeground #ff1979
gitDecoration.deletedResourceForeground #ff1342
gitDecoration.ignoredResourceForeground #ced9d3
gitDecoration.modifiedResourceForeground #8fff66
gitDecoration.stageDeletedResourceForeground #e62e7a
gitDecoration.stageModifiedResourceForeground #91e673
gitDecoration.submoduleResourceForeground #78ffbb
gitDecoration.untrackedResourceForeground #12ffbc
icon.foreground #3d996b
input.background #050f0e
input.border #ffffff00
input.foreground #12ffbc
input.placeholderForeground #3d996b
inputOption.activeBackground #ffffff00
inputOption.activeBorder #ffffff00
inputOption.activeForeground #12ffbc
list.activeSelectionBackground #062621
list.activeSelectionForeground #12ffbc
list.dropBackground #061a17
list.focusBackground #062621
list.focusForeground #12ffbc
list.highlightForeground #ff1342
list.hoverBackground #062621
list.hoverForeground #12ffbc
list.inactiveSelectionBackground #061a17
list.inactiveSelectionForeground #12ffbc
listFilterWidget.background #062621
listFilterWidget.noMatchesOutline #ff1342
listFilterWidget.outline #00000000
menu.background #061a17
menu.border #ff000000
menu.foreground #3d996b
menu.selectionBackground #062621
menu.selectionBorder #ff000000
menu.selectionForeground #12ffbc
menu.separatorBackground #ff1342
menubar.selectionBackground #061a1700
menubar.selectionBorder #ffffff00
menubar.selectionForeground #12ffbc
merge.commonContentBackground #062621
merge.commonHeaderBackground #3d996b
merge.currentContentBackground #062621
merge.currentHeaderBackground #3d996b
merge.incomingContentBackground #062621
merge.incomingHeaderBackground #3d996b
minimap.background #050f0e
minimap.errorHighlight #ff1342
minimap.findMatchHighlight #ff134250
minimap.selectionHighlight #ff134250
minimap.warningHighlight #8fff66
minimapGutter.addedBackground #12ffbc
minimapGutter.deletedBackground #ff1342
minimapGutter.modifiedBackground #8fff66
notificationCenter.border #ffffff00
notificationCenterHeader.background #ff1342
notificationCenterHeader.foreground #f2e6e9
notifications.background #061a17
notifications.border #ff1342
notifications.foreground #3d996b
notificationsErrorIcon.foreground #ff1342
notificationsInfoIcon.foreground #12ffbc
notificationsWarningIcon.foreground #8fff66
notificationToast.border #ffffff00
panel.background #050f0e
panel.border #ff1342
panelSection.border #ff1342
panelTitle.activeBorder #ff1342
panelTitle.activeForeground #12ffbc
panelTitle.inactiveForeground #3d996b
peekView.border #ffffff00
peekViewEditor.background #062621
peekViewEditor.matchHighlightBackground #ff134275
peekViewEditor.matchHighlightBorder #ff1342
peekViewEditorGutter.background #062621
peekViewResult.background #062621
peekViewResult.fileForeground #3d996b
peekViewResult.lineForeground #ff1342
peekViewResult.matchHighlightBackground #ff134275
peekViewResult.selectionBackground #ff134275
peekViewResult.selectionForeground #f2e6e9
peekViewTitle.background #ff1342
peekViewTitleDescription.foreground #f2e6e9
peekViewTitleLabel.foreground #f2e6e9
pickerGroup.border #ff1342
pickerGroup.foreground #12ffbc
progressBar.background #ff1342
scrollbar.shadow #ffffff00
scrollbarSlider.activeBackground #ff1342
scrollbarSlider.background #062621
scrollbarSlider.hoverBackground #ff1342
selection.background #ff134250
settings.focusedRowBackground #ffffff07
settings.headerForeground #3d996b
sideBar.background #050f0e
sideBar.border #ffffff00
sideBar.dropBackground #061a17
sideBar.foreground #3d996b
sideBarSectionHeader.background #ff1342
sideBarSectionHeader.border #00ffff00
sideBarSectionHeader.foreground #f2e6e9
sideBarTitle.foreground #f2e6e9
statusBar.background #050f0e
statusBar.border #ff000000
statusBar.debuggingBackground #ff1342
statusBar.debuggingBorder #f2e6e9
statusBar.debuggingForeground #f2e6e9
statusBar.foreground #3d996b
statusBar.noFolderBackground #12ffbc
statusBar.noFolderBorder #f2e6e9
statusBar.noFolderForeground #0f0f0f
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #062621
statusBarItem.remoteBackground #ff1342
statusBarItem.remoteForeground #f2e6e9
tab.activeBackground #062621
tab.activeBorder #ff1342
tab.activeBorderTop #00000000
tab.activeForeground #12ffbc
tab.border #ffffff00
tab.hoverBackground #062621
tab.hoverBorder #ffffff00
tab.hoverForeground #12ffbc
tab.inactiveBackground #061a17
tab.inactiveForeground #3d996b
terminal.ansiBlack #0f0f0f
terminal.ansiBlue #83e6b4
terminal.ansiBrightBlack #171717
terminal.ansiBrightBlue #78ffbb
terminal.ansiBrightCyan #12ffbc
terminal.ansiBrightGreen #8fff66
terminal.ansiBrightMagenta #ff456a
terminal.ansiBrightRed #ff1342
terminal.ansiBrightWhite #f2e6e9
terminal.ansiBrightYellow #ff1979
terminal.ansiCyan #27e6b0
terminal.ansiGreen #91e673
terminal.ansiMagenta #e66c84
terminal.ansiRed #e6274d
terminal.ansiWhite #ced9d3
terminal.ansiYellow #e62e7a
terminal.border #ff1342
terminal.foreground #e6274d
terminal.selectionBackground #062621
terminalCursor.background #ff1342
terminalCursor.foreground #f2e6e9
textLink.foreground #ff1342
titleBar.activeBackground #050f0e
titleBar.activeForeground #3d996b
titleBar.border #00000000
titleBar.inactiveBackground #061a17
titleBar.inactiveForeground #3d996b
tree.indentGuidesStroke #ff1342
walkThrough.embeddedEditorBackground #00000050
widget.shadow #ffffff00 #e6274d
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #f2e6e9 —
variable.parameter.function.language.special.self.python #91e673 —
storage.modifier.lifetime.rust #f2e6e9 —
support.function.std.rust #27e6b0 —
entity.name.lifetime.rust #91e673 —
variable.language.rust #e6274d —
support.constant.edge #e62e7a —
constant.other.character-class.regexp #e6274d —
keyword.operator.quantifier.regexp #e66c84 —
punctuation.definition.string.begin,punctuation.definition.string.end #78ffbb —
variable.parameter.function #f2e6e9 —
comment markup.link #3d996b —
markup.changed.diff #91e673 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #27e6b0 —
markup.inserted.diff #78ffbb —
markup.deleted.diff #e6274d —
meta.function.c,meta.function.cpp #e6274d —
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 #f2e6e9 —
punctuation.separator.key-value #f2e6e9 —
keyword.operator.expression.import #27e6b0 —
support.constant.math #91e673 —
support.constant.property.math #e66c84 —
variable.other.constant #91e673 —
storage.type.annotation.java, storage.type.object.array.java #91e673 —
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 #f2e6e9 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #91e673 —
keyword.operator.instanceof.java #e62e7a —
meta.definition.variable.name.java #e6274d —
keyword.operator.logical #27e6b0 —
keyword.operator.bitwise #27e6b0 —
keyword.operator.channel #27e6b0 —
support.constant.property-value.scss,support.constant.property-value.css #e66c84 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #27e6b0 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #e66c84 —
punctuation.separator.list.comma.css #f2e6e9 —
support.constant.color.w3c-standard-color-name.css #e66c84 —
support.type.vendored.property-name.css #27e6b0 —
support.module.node,support.type.object.module,support.module.node #91e673 —
entity.name.type.module #91e673 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #e6274d —
support.constant.json #e66c84 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #e62e7a —
support.type.object.console #e6274d —
support.variable.property.process #e66c84 —
entity.name.function,support.function.console #27e6b0 —
keyword.operator.misc.rust #f2e6e9 —
keyword.operator.sigil.rust #e62e7a —
keyword.operator.delete #e62e7a —
support.type.object.dom #27e6b0 —
support.variable.dom,support.variable.property.dom #e6274d —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #27e6b0 —
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 #e62e7a —
punctuation.separator.delimiter #f2e6e9 —
punctuation.separator.c,punctuation.separator.cpp #e62e7a —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #27e6b0 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #e62e7a —
variable.parameter.function.language.python #e66c84 —
support.type.python #27e6b0 —
keyword.operator.logical.python #e62e7a —
variable.parameter.function.python #e66c84 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #f2e6e9 —
meta.function-call.generic.python #27e6b0 —
constant.character.format.placeholder.other.python #e66c84 —
keyword.operator.assignment.compound #e62e7a —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #27e6b0 —
entity.name.namespace #91e673 —
variable.language #91e673 —
token.variable.parameter.java #f2e6e9 —
import.storage.java #91e673 —
token.package.keyword #e62e7a —
entity.name.function, meta.require, support.function.any-method, variable.function #27e6b0 —
entity.name.type.namespace #91e673 —
support.class, entity.name.type.class #91e673 —
entity.name.class.identifier.namespace.type #91e673 —
entity.name.class, variable.other.class.js, variable.other.class.ts #91e673 —
variable.other.class.php #e6274d —
control.elements, keyword.operator.less #e66c84 —
keyword.other.special-method #27e6b0 —
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 #e62e7a —
token.storage.type.java #91e673 —
support.type.property-name #f2e6e9 —
support.constant.property-value #f2e6e9 —
support.constant.font-name #e66c84 —
entity.other.inherited-class #91e673 —
constant.other.symbol #27e6b0 —
punctuation.definition.constant #e66c84 —
entity.other.attribute-name #e66c84 —
entity.other.attribute-name.id #27e6b0 normal
entity.other.attribute-name.class.css #e66c84 normal
markup.heading punctuation.definition.heading, entity.name.section #27e6b0 —
keyword.other.unit #e6274d —
markup.bold,todo.bold #e66c84 —
punctuation.definition.bold #91e673 —
markup.italic, punctuation.definition.italic,todo.emphasis #e62e7a —
entity.name.section.markdown #e6274d —
punctuation.definition.heading.markdown #e6274d —
punctuation.definition.list.begin.markdown #e6274d —
markup.heading.setext #f2e6e9 —
punctuation.definition.bold.markdown #e66c84 —
markup.inline.raw.markdown #78ffbb —
markup.inline.raw.string.markdown #78ffbb —
punctuation.definition.list.markdown #e6274d —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #e6274d —
beginning.punctuation.definition.list.markdown #e6274d —
punctuation.definition.metadata.markdown #e6274d —
markup.underline.link.markdown,markup.underline.link.image.markdown #e62e7a —
string.other.link.title.markdown,string.other.link.description.markdown #27e6b0 —
constant.character.escape #27e6b0 —
punctuation.section.embedded, variable.interpolation #e6274d —
punctuation.section.embedded.begin,punctuation.section.embedded.end #e62e7a —
invalid.illegal.bad-ampersand.html #f2e6e9 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #e6274d —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #e6274d —
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 #78ffbb —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #27e6b0 —
support.type.property-name.json #e6274d —
support.type.property-name.json punctuation #e6274d —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #e62e7a —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #e62e7a —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #91e673 —
keyword.operator.error-control.php #e62e7a —
keyword.operator.type.php #e62e7a —
punctuation.section.array.begin.php #f2e6e9 —
punctuation.section.array.end.php #f2e6e9 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #91e673 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #27e6b0 —
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 #f2e6e9 —
support.constant.core.rust #e66c84 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #e66c84 —
entity.name.goto-label.php,support.other.php #27e6b0 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #27e6b0 —
keyword.operator.regexp.php #e62e7a —
keyword.operator.comparison.php #27e6b0 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #e62e7a —
meta.function.decorator.python #27e6b0 —
support.token.decorator.python,meta.function.decorator.identifier.python #27e6b0 —
function.parameter #f2e6e9 —
function.parameter.ruby, function.parameter.cs #f2e6e9 —
constant.language.symbol.ruby #27e6b0 —
inline-color-decoration rgb-value #e66c84 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #91e673 —
block.scope.end,block.scope.begin #f2e6e9 —
entity.name.variable.local.cs #e6274d —
token.error-token #f44747 —
token.debug-token #e62e7a —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #e62e7a —
meta.template.expression #f2e6e9 —
keyword.operator.module #e62e7a —
support.type.type.flowtype #27e6b0 —
support.type.primitive #91e673 —
meta.property.object #e6274d —
variable.parameter.function.js #e6274d —
keyword.other.template.begin #78ffbb —
keyword.other.template.end #78ffbb —
keyword.other.substitution.begin #78ffbb —
keyword.other.substitution.end #78ffbb —
keyword.operator.assignment #27e6b0 —
keyword.operator.assignment.go #91e673 —
keyword.operator.arithmetic.go, keyword.operator.address.go #e62e7a —
entity.name.package.go #91e673 —
support.type.prelude.elm #27e6b0 —
support.constant.elm #e66c84 —
punctuation.quasi.element #e62e7a —
constant.character.entity #e6274d —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #27e6b0 —
entity.global.clojure #91e673 —
meta.symbol.clojure #e6274d —
constant.keyword.clojure #27e6b0 —
meta.arguments.coffee, variable.parameter.function.coffee #e6274d —
meta.scope.prerequisites.makefile #e6274d —
storage.modifier.import.groovy #91e673 —
meta.method.groovy #27e6b0 —
meta.definition.variable.name.groovy #e6274d —
meta.definition.class.inherited.classes.groovy #78ffbb —
support.variable.semantic.hlsl #91e673 —
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 #e62e7a —
text.variable, text.bracketed #e6274d —
support.type.swift, support.type.vb.asp #91e673 —
entity.name.function.xi #91e673 —
entity.name.class.xi #27e6b0 —
constant.character.character-class.regexp.xi #e6274d —
constant.regexp.xi #e62e7a —
keyword.control.xi #27e6b0 —
beginning.punctuation.definition.quote.markdown.xi #78ffbb —
beginning.punctuation.definition.list.markdown.xi #3d996b —
constant.character.xi #27e6b0 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #3d996b —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #91e673 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #e6274d —
meta.brace.square #f2e6e9 —
comment, punctuation.definition.comment #3d996b italic
markup.quote.markdown #3d996b —
punctuation.definition.block.sequence.item.yaml #f2e6e9 —
constant.language.symbol.elixir #27e6b0 —
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 } !` ;
}