Skip to main content
🍡 Dango Theme | Coding Theme
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 #020815 activityBar.background #020815 activityBar.border #02081500 activityBar.foreground #fbf8e9 activityBar.inactiveForeground #fbf8e981 activityBarBadge.background #fb65a3 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 #6a8ee4 — variable.other.generic-type.haskell #fb65a3 — storage.type.haskell #f93f8c — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
🍡 Dango Theme — Dango Theme
activityBarBadge.foreground #fbf8e9
badge.background #fb65a362
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #050c1b
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #9cff8f
button.foreground #020815
button.hoverBackground #7ee271
button.secondaryBackground #fb65a3
button.secondaryForeground #fbf8e9
button.secondaryHoverBackground #e84a8c
checkbox.background #020815
checkbox.border #050c1b
checkbox.foreground #fbf8e9
debugExceptionWidget.background #050c1b
debugExceptionWidget.border #474747
debugToolBar.background #050c1b
debugToolBar.border #474747
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #020815
dropdown.border #050c1b
dropdown.foreground #fbf8e9
editor.background #050c1b
editor.findMatchBackground #fb65a397
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #fb65a332
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #fbf8e9
editor.hoverHighlightBackground #fb65a332
editor.inactiveSelectionBackground #fb65a320
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #ffffff00
editor.rangeHighlightBackground #ffffff22
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #fb65a332
editor.selectionHighlightBackground #fb65a348
editor.selectionHighlightBorder #495f7700
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #fb65a332
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #fd6e51
editorGroup.border #444444
editorGroup.emptyBackground #050c1b
editorGroupHeader.tabsBackground #020815
editorGroupHeader.tabsBorder #020815
editorGutter.addedBackground #81b80d
editorGutter.background #050c1b
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #b8151c
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0ca1cb
editorHoverWidget.background #020815
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #707070
editorIndentGuide.background #404040
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #c6c6c6
editorLineNumber.foreground #909090
editorLink.activeForeground #fb65a3
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #252526
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #0097fb
editorSuggestWidget.selectedBackground #062f4a
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e229
editorWidget.background #050c1b
editorWidget.foreground #cccccc
editorWidget.resizeBorder #5F5F5F
focusBorder #020815
foreground #fbf8e9
gitDecoration.addedResourceForeground #50d769
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #e63d1f
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #fbf8e9
input.background #020815
input.border #050c1b
input.foreground #fbf8e9
input.placeholderForeground #fbf8e9
inputOption.activeBackground #9cff8f
inputOption.activeBorder #ffffff00
inputOption.activeForeground #020815
list.activeSelectionBackground #050c1b
list.activeSelectionForeground #ffffff
list.dropBackground #fb65a362
list.focusBackground #020815
list.focusForeground #ffffff
list.highlightForeground #9cff8f
list.hoverBackground #fb65a30c
list.hoverForeground #ffffff
list.inactiveSelectionBackground #020815
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #fb65a362
listFilterWidget.noMatchesOutline #f21600
listFilterWidget.outline #ffffff00
menu.background #050c1b
menu.border #020815
menu.foreground #cccccc
menu.selectionBackground #fb65a362
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #bbbbbb46
menubar.selectionBackground #ffd6e732
menubar.selectionBorder #ff000000
menubar.selectionForeground #cccccc
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #050c1b
minimap.errorHighlight #fd6e51
minimap.findMatchHighlight #fb65a397
minimap.selectionHighlight #fb65a332
minimap.warningHighlight #cca700
minimapGutter.addedBackground #81b80d
minimapGutter.deletedBackground #b8151c
minimapGutter.modifiedBackground #0ca1cb
notificationCenter.border #020815
notificationCenterHeader.background #020815
notificationCenterHeader.foreground #cccccc
notifications.background #050c1b
notifications.border #020815
notifications.foreground #cccccc
notificationsErrorIcon.foreground #ff5330
notificationsInfoIcon.foreground #329eff
notificationsWarningIcon.foreground #ffd100
notificationToast.border #474747
panel.background #020815
panel.border #80808042
panelSection.border #80808059
panelTitle.activeBorder #9cff8f
panelTitle.activeForeground #fbf8e9
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 #050c1b
pickerGroup.foreground #fb65a3
progressBar.background #9cff8f
scrollbar.shadow #000000
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646464b3
selection.background #fb65a372
settings.focusedRowBackground #ffffff07
settings.headerForeground #fbf8e9
sideBar.background #020815
sideBar.border #00000000
sideBar.dropBackground #fb65a362
sideBar.foreground #fbf8e9b7
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #fbf8e92e
sideBarSectionHeader.foreground #fbf8e9
sideBarTitle.foreground #fbf8e9
statusBar.background #020815
statusBar.border #ffffff00
statusBar.debuggingBackground #020815
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #020815
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #9cff8f
statusBarItem.remoteForeground #020815
tab.activeBackground #020815
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #020815
tab.inactiveBackground #050c1b
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 #80808059
terminal.foreground #cccccc
terminal.selectionBackground #fb65a332
terminalCursor.background #9cff8f64
terminalCursor.foreground #ffffff
textLink.foreground #fbf8e9
titleBar.activeBackground #020815
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #020815
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #9CFF8F
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #6a8ee4
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #fbf8e9 —
variable.parameter.function.language.special.self.python #9cff8f —
storage.modifier.lifetime.rust #fbf8e9 —
support.function.std.rust #61afef —
entity.name.lifetime.rust #9cff8f —
variable.language.rust #6a8ee4 —
support.constant.edge #fb65a3 —
constant.other.character-class.regexp #6a8ee4 —
keyword.operator.quantifier.regexp #f93f8c —
punctuation.definition.string.begin,punctuation.definition.string.end #fffef8 —
variable.parameter.function #fbf8e9 —
comment markup.link #7f848e —
markup.changed.diff #9cff8f —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #61afef —
markup.inserted.diff #fffef8 —
markup.deleted.diff #6a8ee4 —
meta.function.c,meta.function.cpp #6a8ee4 —
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 #fbf8e9 —
punctuation.separator.key-value #fbf8e9 —
keyword.operator.expression.import #61afef —
support.constant.math #9cff8f —
support.constant.property.math #f93f8c —
variable.other.constant #9cff8f —
storage.type.annotation.java, storage.type.object.array.java #9cff8f —
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 #fbf8e9 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #9cff8f —
keyword.operator.instanceof.java #fb65a3 —
meta.definition.variable.name.java #6a8ee4 —
keyword.operator.logical #fbf8e9 —
keyword.operator.bitwise #fbf8e9 —
keyword.operator.channel #fbf8e9 —
support.constant.property-value.scss,support.constant.property-value.css #f93f8c —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #fbf8e9 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #f93f8c —
punctuation.separator.list.comma.css #fbf8e9 —
support.constant.color.w3c-standard-color-name.css #f93f8c —
support.type.vendored.property-name.css #fbf8e9 —
support.module.node,support.type.object.module,support.module.node #9cff8f —
entity.name.type.module #9cff8f —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #6a8ee4 —
support.constant.json #f93f8c —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #fb65a3 —
support.type.object.console #6a8ee4 —
support.variable.property.process #f93f8c —
entity.name.function,support.function.console #61afef —
keyword.operator.misc.rust #fbf8e9 —
keyword.operator.sigil.rust #fb65a3 —
keyword.operator.delete #fb65a3 —
support.type.object.dom #fbf8e9 —
support.variable.dom,support.variable.property.dom #6a8ee4 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #fbf8e9 —
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 #fb65a3 —
punctuation.separator.delimiter #fbf8e9 —
punctuation.separator.c,punctuation.separator.cpp #fb65a3 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #fbf8e9 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #fb65a3 —
variable.parameter.function.language.python #f93f8c —
support.type.python #fbf8e9 —
keyword.operator.logical.python #fb65a3 —
variable.parameter.function.python #f93f8c —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #fbf8e9 —
meta.function-call.generic.python #61afef —
constant.character.format.placeholder.other.python #f93f8c —
keyword.operator.assignment.compound #fb65a3 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #fbf8e9 —
entity.name.namespace #9cff8f —
variable.language #9cff8f —
token.variable.parameter.java #fbf8e9 —
import.storage.java #9cff8f —
token.package.keyword #fb65a3 —
entity.name.function, meta.require, support.function.any-method, variable.function #61afef —
entity.name.type.namespace #9cff8f —
support.class, entity.name.type.class #9cff8f —
entity.name.class.identifier.namespace.type #9cff8f —
entity.name.class, variable.other.class.js, variable.other.class.ts #9cff8f —
variable.other.class.php #6a8ee4 —
control.elements, keyword.operator.less #f93f8c —
keyword.other.special-method #61afef —
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 #fb65a3 —
token.storage.type.java #9cff8f —
support.type.property-name #fbf8e9 —
support.constant.property-value #fbf8e9 —
support.constant.font-name #f93f8c —
entity.other.inherited-class #9cff8f —
constant.other.symbol #fbf8e9 —
punctuation.definition.constant #f93f8c —
entity.other.attribute-name #f93f8c —
entity.other.attribute-name.id #61afef normal
entity.other.attribute-name.class.css #f93f8c normal
markup.heading punctuation.definition.heading, entity.name.section #61afef —
keyword.other.unit #6a8ee4 —
markup.bold,todo.bold #f93f8c —
punctuation.definition.bold #9cff8f —
markup.italic, punctuation.definition.italic,todo.emphasis #fb65a3 —
entity.name.section.markdown #6a8ee4 —
punctuation.definition.heading.markdown #6a8ee4 —
punctuation.definition.list.begin.markdown #6a8ee4 —
markup.heading.setext #fbf8e9 —
punctuation.definition.bold.markdown #f93f8c —
markup.inline.raw.markdown #fffef8 —
markup.inline.raw.string.markdown #fffef8 —
punctuation.definition.list.markdown #6a8ee4 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #6a8ee4 —
beginning.punctuation.definition.list.markdown #6a8ee4 —
punctuation.definition.metadata.markdown #6a8ee4 —
markup.underline.link.markdown,markup.underline.link.image.markdown #fb65a3 —
string.other.link.title.markdown,string.other.link.description.markdown #61afef —
constant.character.escape #fbf8e9 —
punctuation.section.embedded, variable.interpolation #6a8ee4 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #fb65a3 —
invalid.illegal.bad-ampersand.html #fbf8e9 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #6a8ee4 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #6a8ee4 —
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 #fffef8 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #fbf8e9 —
support.type.property-name.json #6a8ee4 —
support.type.property-name.json punctuation #6a8ee4 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #fb65a3 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #fb65a3 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #9cff8f —
keyword.operator.error-control.php #fb65a3 —
keyword.operator.type.php #fb65a3 —
punctuation.section.array.begin.php #fbf8e9 —
punctuation.section.array.end.php #fbf8e9 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #9cff8f —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #61afef —
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 #fbf8e9 —
support.constant.core.rust #f93f8c —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #f93f8c —
entity.name.goto-label.php,support.other.php #61afef —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #fbf8e9 —
keyword.operator.regexp.php #fb65a3 —
keyword.operator.comparison.php #fbf8e9 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #fb65a3 —
meta.function.decorator.python #61afef —
support.token.decorator.python,meta.function.decorator.identifier.python #fbf8e9 —
function.parameter #fbf8e9 —
function.parameter.ruby, function.parameter.cs #fbf8e9 —
constant.language.symbol.ruby #fbf8e9 —
inline-color-decoration rgb-value #f93f8c —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #9cff8f —
block.scope.end,block.scope.begin #fbf8e9 —
entity.name.variable.local.cs #6a8ee4 —
token.error-token #f44747 —
token.debug-token #fb65a3 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #fb65a3 —
meta.template.expression #fbf8e9 —
keyword.operator.module #fb65a3 —
support.type.type.flowtype #61afef —
support.type.primitive #9cff8f —
meta.property.object #6a8ee4 —
variable.parameter.function.js #6a8ee4 —
keyword.other.template.begin #fffef8 —
keyword.other.template.end #fffef8 —
keyword.other.substitution.begin #fffef8 —
keyword.other.substitution.end #fffef8 —
keyword.operator.assignment #fbf8e9 —
keyword.operator.assignment.go #9cff8f —
keyword.operator.arithmetic.go, keyword.operator.address.go #fb65a3 —
entity.name.package.go #9cff8f —
support.type.prelude.elm #fbf8e9 —
support.constant.elm #f93f8c —
punctuation.quasi.element #fb65a3 —
constant.character.entity #6a8ee4 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #fbf8e9 —
entity.global.clojure #9cff8f —
meta.symbol.clojure #6a8ee4 —
constant.keyword.clojure #fbf8e9 —
meta.arguments.coffee, variable.parameter.function.coffee #6a8ee4 —
meta.scope.prerequisites.makefile #6a8ee4 —
storage.modifier.import.groovy #9cff8f —
meta.method.groovy #61afef —
meta.definition.variable.name.groovy #6a8ee4 —
meta.definition.class.inherited.classes.groovy #fffef8 —
support.variable.semantic.hlsl #9cff8f —
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 #fb65a3 —
text.variable, text.bracketed #6a8ee4 —
support.type.swift, support.type.vb.asp #9cff8f —
entity.name.function.xi #9cff8f —
entity.name.class.xi #fbf8e9 —
constant.character.character-class.regexp.xi #6a8ee4 —
constant.regexp.xi #fb65a3 —
keyword.control.xi #fbf8e9 —
beginning.punctuation.definition.quote.markdown.xi #fffef8 —
beginning.punctuation.definition.list.markdown.xi #7f848e —
constant.character.xi #61afef —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #7f848e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #9cff8f —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #6a8ee4 —
meta.brace.square #fbf8e9 —
comment, punctuation.definition.comment #7f848e italic
markup.quote.markdown #7f848e —
punctuation.definition.block.sequence.item.yaml #fbf8e9 —
constant.language.symbol.elixir #fbf8e9 —
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 } !` ;
}