Skip to main content
Aurora Borealis 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.activeBorder #fcb13f activityBar.background #070a38 activityBar.border #5A1BC2 activityBar.foreground #fcb13f activityBar.inactiveForeground #5d4b79 activityBarBadge.background #B03DB2 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 #ff6942 — variable.other.generic-type.haskell #fcb13f — storage.type.haskell #dddd03 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Aurora Borealis Theme — Aurora Borealis
activityBarBadge.foreground
#fff
badge.background #B03DB2
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #b2dc56
breadcrumb.background #0F042D
breadcrumb.focusForeground #b2dc56
breadcrumb.foreground #dddddd75
button.background #1bc22e
button.foreground #000000
button.hoverBackground #fcb13f
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e
checkbox.background #070a38
checkbox.border #00000000
checkbox.foreground #dddddd
debugExceptionWidget.background #070a38
debugExceptionWidget.border #070a38
debugToolBar.background #070a38
debugToolBar.border #070a38
diffEditor.border #444444
diffEditor.insertedTextBackground #00baff1f
diffEditor.removedTextBackground #ff10101f
dropdown.background #070a38
dropdown.border #00000000
dropdown.foreground #dddddd
editor.background #0F042D
editor.findMatchBackground #5A1BC2
editor.findMatchBorder #ffffff00
editor.findMatchHighlightBackground #fcb13f75
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #070a3875
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #dedede
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #dddddd30
editor.lineHighlightBackground #4b37ff34
editor.lineHighlightBorder #4b37ff34
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #7037ff50
editor.selectionHighlightBackground #3f3856
editor.selectionHighlightBorder #724977
editor.wordHighlightBackground #3794ff40
editor.wordHighlightStrongBackground #b2dc5675
editorBracketMatch.background #3794ff40
editorBracketMatch.border #3794ff
editorCodeLens.foreground #dedede90
editorCursor.background #000000
editorCursor.foreground #b2dc56
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f14c4c
editorGroup.border #5A1BC285
editorGroup.dropBackground #5A1BC240
editorGroup.emptyBackground #0F042D
editorGroupHeader.tabsBackground #070a38
editorGroupHeader.tabsBorder #5A1BC285
editorGutter.addedBackground #5A1BC2
editorGutter.background #0F042D
editorGutter.commentRangeForeground #dedede75
editorGutter.deletedBackground #f14c4c
editorGutter.foldingControlForeground #dedede75
editorGutter.modifiedBackground #3794ff
editorHoverWidget.background #070a38
editorHoverWidget.border #070a38
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground1 #dedede95
editorIndentGuide.background1 #5A1BC280
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #3794ff
editorLineNumber.activeForeground #dddddd
editorLineNumber.foreground #5A1BC2
editorLink.activeForeground #b2dc56
editorMarkerNavigation.background #070a38
editorMarkerNavigationError.background #ff4e00
editorMarkerNavigationInfo.background #3794ff
editorMarkerNavigationWarning.background #fcb13f
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorStickyScroll.background #070a38
editorStickyScrollHover.background #5A1BC285
editorSuggestWidget.background #070a38
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #cccccc
editorSuggestWidget.highlightForeground #b2dc56
editorSuggestWidget.selectedBackground #475822
editorUnnecessaryCode.border #f14c4c
editorUnnecessaryCode.opacity #00000070
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e229
editorWidget.background #070a38
editorWidget.foreground #cccccc
editorWidget.resizeBorder #5A1BC275
focusBorder #5A1BC2
foreground #ffffff
gitDecoration.addedResourceForeground #32e875
gitDecoration.conflictingResourceForeground #8067cb
gitDecoration.deletedResourceForeground #ff6942
gitDecoration.ignoredResourceForeground #626466
gitDecoration.modifiedResourceForeground #fcb13f
gitDecoration.stageDeletedResourceForeground #ff6942
gitDecoration.stageModifiedResourceForeground #fcb13f
gitDecoration.submoduleResourceForeground #56eef4
gitDecoration.untrackedResourceForeground #b2dc56
icon.foreground #ffffff
input.background #070a38
input.border #00000000
input.foreground #dddddd
input.placeholderForeground #dddddd
inputOption.activeBackground #007fd466
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #5A1BC2
list.activeSelectionForeground #ddeedd
list.dropBackground #383b3d
list.focusBackground #5A1BC2
list.focusForeground #dfdfdf
list.highlightForeground #b2dc56
list.hoverBackground #5A1BC2
list.hoverForeground #cccccc
list.inactiveSelectionBackground #5A1BC245
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #5A1BC2
listFilterWidget.noMatchesOutline #00000000
listFilterWidget.outline #00000000
menu.background #070a38
menu.border #00000085
menu.foreground #dddddd
menu.selectionBackground #04395e
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #bbbbbb
menubar.selectionBackground #ffffff1a
menubar.selectionBorder #dddddd
menubar.selectionForeground #dddddd
merge.commonContentBackground #27282b
merge.commonHeaderBackground #5A1BC2
merge.currentContentBackground #475822
merge.currentHeaderBackground #5A1BC2
merge.incomingContentBackground #00438f
merge.incomingHeaderBackground #0069e0
minimap.background #0F042D
minimap.errorHighlight #f14c4c
minimap.findMatchHighlight #5A1BC2
minimap.selectionHighlight #3794ff50
minimap.warningHighlight #cca700
minimapGutter.addedBackground #5A1BC2
minimapGutter.deletedBackground #f14c4c
minimapGutter.modifiedBackground #3794ff
notificationCenter.border #070a38
notificationCenterHeader.background #0F042D
notificationCenterHeader.foreground #dedede
notifications.background #070a38
notifications.border #0F042D
notifications.foreground #dedede
notificationsErrorIcon.foreground #ff4e00
notificationsInfoIcon.foreground #3794ff
notificationsWarningIcon.foreground #fcb13f
notificationToast.border #070a38
panel.background #0F042D
panel.border #dddddd15
panelSection.border #5A1BC275
panelTitle.activeBorder #B03DB2
panelTitle.activeForeground #B03DB2
panelTitle.inactiveForeground #dddddd75
peekView.border #3794ff
peekViewEditor.background #070a38
peekViewEditor.matchHighlightBackground #3794ff75
peekViewEditor.matchHighlightBorder #3794ff
peekViewEditorGutter.background #070a38
peekViewEditorStickyScroll.background #070a38
peekViewResult.background #070a38
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #b2dc5675
peekViewResult.selectionBackground #475822
peekViewResult.selectionForeground #dddddd
peekViewTitle.background #070a38
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #dddddd
pickerGroup.border #3f3f46
pickerGroup.foreground #b2dc56
progressBar.background #fcb13f
scrollbar.shadow #070a38
scrollbarSlider.activeBackground #B03DB2
scrollbarSlider.background #5A1BC275
scrollbarSlider.hoverBackground #5A1BC2
selection.background #5A1BC275
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffffff
sideBar.background #020533
sideBar.dropBackground #383b3d
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #dddddd15
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #070a38
statusBar.debuggingBackground #cc6633
statusBar.debuggingForeground #ffffff
statusBar.foreground #dddddd
statusBar.noFolderBackground #5A1BC2
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #5A1BC2
statusBarItem.remoteBackground #5A1BC2
statusBarItem.remoteForeground #ffffff
tab.activeBackground #5A1BC2
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #dddddd
tab.border #252526
tab.inactiveBackground #070a38
tab.inactiveForeground #dddddd75
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 #5A1BC275
terminal.foreground #ddeedd
terminal.selectionBackground #b2dc5675
terminalCursor.background #5A1BC2
terminalCursor.foreground #dedede
textLink.foreground #fcb13f
titleBar.activeBackground #070a38
titleBar.activeForeground #dddddd
titleBar.border #00000000
titleBar.inactiveBackground #dddddd75
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #5A1BC2
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #ff6942
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #dedede —
variable.parameter.function.language.special.self.python #4cc9e2 —
storage.modifier.lifetime.rust #dedede —
support.function.std.rust #dddd03 —
entity.name.lifetime.rust #4cc9e2 —
variable.language.rust #ff6942 —
support.constant.edge #fcb13f —
constant.other.character-class.regexp #ff6942 —
keyword.operator.quantifier.regexp #dddd03 —
punctuation.definition.string.begin,punctuation.definition.string.end #b2dc56 —
variable.parameter.function #dedede —
comment markup.link #626466 —
markup.changed.diff #4cc9e2 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #dddd03 —
markup.inserted.diff #b2dc56 —
markup.deleted.diff #ff6942 —
meta.function.c,meta.function.cpp #ff6942 —
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 #dedede —
punctuation.separator.key-value #dedede —
keyword.operator.expression.import #dddd03 —
support.constant.math #4cc9e2 —
support.constant.property.math #dddd03 —
variable.other.constant #4cc9e2 —
storage.type.annotation.java, storage.type.object.array.java #4cc9e2 —
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 #dedede —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #4cc9e2 —
keyword.operator.instanceof.java #fcb13f —
meta.definition.variable.name.java #ff6942 —
keyword.operator.logical #fcb13f —
keyword.operator.bitwise #fcb13f —
keyword.operator.channel #fcb13f —
support.constant.property-value.scss,support.constant.property-value.css #dddd03 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #fcb13f —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #dddd03 —
punctuation.separator.list.comma.css #dedede —
support.constant.color.w3c-standard-color-name.css #dddd03 —
support.type.vendored.property-name.css #fcb13f —
support.type.property-name.css #dddddd —
meta.property-list.css #FCB13F —
punctuation.section.function.begin.bracket.round.css, punctuation.section.function.end.bracket.round.css, meta.brace.round.tsx #da70d6 —
support.module.node,support.type.object.module,support.module.node #4cc9e2 —
entity.name.type.module #4cc9e2 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ff6942 —
support.constant.json #dddd03 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #fcb13f —
support.type.object.console #ff6942 —
support.variable.property.process #dddd03 —
entity.name.function,support.function.console #dddd03 —
keyword.operator.misc.rust #dedede —
keyword.operator.sigil.rust #fcb13f —
keyword.operator.delete #fcb13f —
support.type.object.dom #fcb13f —
support.variable.dom,support.variable.property.dom #ff6942 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #fcb13f —
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 #fcb13f —
punctuation.separator.delimiter #dedede —
punctuation.separator.c,punctuation.separator.cpp #fcb13f —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #fcb13f —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #fcb13f —
variable.parameter.function.language.python #dddd03 —
support.type.python #fcb13f —
keyword.operator.logical.python #fcb13f —
variable.parameter.function.python #dddd03 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #dedede —
meta.function-call.generic.python #dddd03 —
constant.character.format.placeholder.other.python #dddd03 —
keyword.operator.assignment.compound #fcb13f —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #fcb13f —
entity.name.namespace #4cc9e2 —
variable.language #4cc9e2 —
token.variable.parameter.java #dedede —
import.storage.java #4cc9e2 —
token.package.keyword #fcb13f —
entity.name.function, meta.require, support.function.any-method, variable.function #dddd03 —
entity.name.type.namespace #4cc9e2 —
support.class, entity.name.type.class #4cc9e2 —
entity.name.class.identifier.namespace.type #4cc9e2 —
entity.name.class, variable.other.class.js, variable.other.class.ts #4cc9e2 —
variable.other.class.php #ff6942 —
control.elements, keyword.operator.less #dddd03 —
keyword.other.special-method #dddd03 —
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 #fcb13f —
token.storage.type.java #4cc9e2 —
support.type.property-name #dedede —
support.constant.property-value #dedede —
support.constant.font-name #dddd03 —
entity.other.inherited-class #4cc9e2 —
constant.other.symbol #fcb13f —
punctuation.definition.constant #dddd03 —
entity.other.attribute-name #dddd03 —
entity.other.attribute-name.id #dddd03 normal
entity.other.attribute-name.class.css #dddd03 normal
markup.heading punctuation.definition.heading, entity.name.section #dddd03 —
keyword.other.unit #ff6942 —
markup.bold,todo.bold #dddd03 —
punctuation.definition.bold #4cc9e2 —
markup.italic, punctuation.definition.italic,todo.emphasis #fcb13f —
entity.name.section.markdown #ff6942 —
punctuation.definition.heading.markdown #ff6942 —
punctuation.definition.list.begin.markdown #ff6942 —
markup.heading.setext #dedede —
punctuation.definition.bold.markdown #dddd03 —
markup.inline.raw.markdown #b2dc56 —
markup.inline.raw.string.markdown #b2dc56 —
markup.raw.block.markdown #b2dc56 —
punctuation.definition.list.markdown #ff6942 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ff6942 —
beginning.punctuation.definition.list.markdown #ff6942 —
punctuation.definition.metadata.markdown #dddd03 —
markup.underline.link.markdown,markup.underline.link.image.markdown #ff6942 —
string.other.link.title.markdown,string.other.link.description.markdown #fcb13f —
meta.image.inline.markdown, meta.link.inline.markdown #dddd03 —
markup.fenced_code.block.markdown #dddd03 —
constant.character.escape #fcb13f —
punctuation.section.embedded, variable.interpolation #ff6942 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #fcb13f —
invalid.illegal.bad-ampersand.html #dedede —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ff6942 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ff6942 —
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 #b2dc56 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #fcb13f —
support.type.property-name.json #ff6942 —
support.type.property-name.json punctuation #ff6942 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #fcb13f —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #fcb13f —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #4cc9e2 —
keyword.operator.error-control.php #fcb13f —
keyword.operator.type.php #fcb13f —
punctuation.section.array.begin.php #dedede —
punctuation.section.array.end.php #dedede —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #4cc9e2 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #dddd03 —
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 #dedede —
support.constant.core.rust #dddd03 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #dddd03 —
entity.name.goto-label.php,support.other.php #dddd03 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #fcb13f —
keyword.operator.regexp.php #fcb13f —
keyword.operator.comparison.php #fcb13f —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #fcb13f —
meta.function.decorator.python #dddd03 —
support.token.decorator.python,meta.function.decorator.identifier.python #fcb13f —
function.parameter #dedede —
function.parameter.ruby, function.parameter.cs #dedede —
constant.language.symbol.ruby #fcb13f —
inline-color-decoration rgb-value #dddd03 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #4cc9e2 —
block.scope.end,block.scope.begin #dedede —
entity.name.variable.local.cs #ff6942 —
token.error-token #f44747 —
token.debug-token #fcb13f —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #fcb13f —
meta.template.expression #dedede —
keyword.operator.module #fcb13f —
support.type.type.flowtype #dddd03 —
support.type.primitive #4cc9e2 —
meta.property.object #ff6942 —
variable.parameter.function.js #ff6942 —
keyword.other.template.begin #b2dc56 —
keyword.other.template.end #b2dc56 —
keyword.other.substitution.begin #b2dc56 —
keyword.other.substitution.end #b2dc56 —
keyword.operator.assignment #fcb13f —
punctuation.definition.block.ts, punctuation.definition.generic.begin.html, punctuation.definition.generic.end.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html #fcb13f —
meta.object-binding-pattern-variable.ts #FCB13F —
keyword.operator.assignment.go #4cc9e2 —
keyword.operator.arithmetic.go, keyword.operator.address.go #fcb13f —
entity.name.package.go #4cc9e2 —
support.type.prelude.elm #fcb13f —
support.constant.elm #dddd03 —
punctuation.quasi.element #fcb13f —
constant.character.entity #ff6942 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #fcb13f —
entity.global.clojure #4cc9e2 —
meta.symbol.clojure #ff6942 —
constant.keyword.clojure #fcb13f —
meta.arguments.coffee, variable.parameter.function.coffee #ff6942 —
meta.scope.prerequisites.makefile #ff6942 —
storage.modifier.import.groovy #4cc9e2 —
meta.method.groovy #dddd03 —
meta.definition.variable.name.groovy #ff6942 —
meta.definition.class.inherited.classes.groovy #b2dc56 —
support.variable.semantic.hlsl #4cc9e2 —
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 #fcb13f —
text.variable, text.bracketed #ff6942 —
support.type.swift, support.type.vb.asp #4cc9e2 —
entity.name.function.xi #4cc9e2 —
entity.name.class.xi #fcb13f —
constant.character.character-class.regexp.xi #ff6942 —
constant.regexp.xi #fcb13f —
keyword.control.xi #fcb13f —
beginning.punctuation.definition.quote.markdown.xi #b2dc56 —
beginning.punctuation.definition.list.markdown.xi #626466 —
constant.character.xi #dddd03 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #626466 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #4cc9e2 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ff6942 —
meta.brace.square #dedede —
comment, punctuation.definition.comment #626466 italic
markup.quote.markdown #65696c —
punctuation.definition.block.sequence.item.yaml #dedede —
constant.language.symbol.elixir #fcb13f —
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
markup.reference.xref.asciidoc, markup.link.asciidoc #b2dc56 —
string.unquoted.asciidoc #ff6942 —
markup.list.asciidoc #ff6942 —
markup.admonition.asciidoc #dddd0395 —
markup.monospace.constrained.asciidoc #b2dc56 —
markup.raw.asciidoc, markup.block.literal.asciidoc, markup.block.example.asciidoc #b2dc56 —
markup.table.cell.delimiter.asciidoc, markup.table.delimiter.asciidoc #ff6942 —
meta.definition.attribute-entry.asciidoc #dddd03 —
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 } !` ;
}