Skip to main content
Home Theme VS Code Athabasca Theme A dark, colorful theme inspired by Glacier for Sublime Text
Athabasca 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.background #0a1016 activityBar.foreground #75ffcd activityBar.inactiveForeground #8a96a885 activityBarBadge.background #75ffcd activityBarBadge.foreground #0e141b badge.background #75ffcd 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 #75ffcd — variable.other.generic-type.haskell #ded78c — storage.type.haskell #3fccff — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Athabasca Theme — Athabasca Light
badge.foreground
#0e141b
breadcrumb.activeSelectionForeground #e6e6e6
breadcrumb.background #121c27
breadcrumb.focusForeground #e6e6e6
breadcrumb.foreground #8a96a8
button.background #75ffcd
button.foreground #0e141b
button.hoverBackground #46997b
button.secondaryBackground #18242f
button.secondaryForeground #e6e6e6
button.secondaryHoverBackground #45494e
checkbox.background #18242f
checkbox.border #00000000
checkbox.foreground #e6e6e6
debugExceptionWidget.background #18242f
debugExceptionWidget.border #30475f9f
debugToolBar.background #18242f
debugToolBar.border #30475f9f
diffEditor.border #18242f
diffEditor.insertedTextBackground #75ffcd33
diffEditor.removedTextBackground #f0424233
dropdown.background #18242f
dropdown.border #00000000
dropdown.foreground #e6e6e6
editor.background #0c151c
editor.findMatchBackground #75ffcd44
editor.findMatchBorder #75ffcd99
editor.findMatchHighlightBackground #75ffcd22
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #30475f66
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #30475f66
editor.foreground #e3f0ff
editor.hoverHighlightBackground #c5bf7c40
editor.inactiveSelectionBackground #30475f44
editor.lineHighlightBackground #070a0d77
editor.lineHighlightBorder #ffffff00
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #30475f99
editor.selectionHighlightBackground #30475f66
editor.selectionHighlightBorder #30475f99
editor.wordHighlightBackground #f5754244
editor.wordHighlightStrongBackground #f5754240
editorBracketHighlight.foreground1 #faf19e
editorBracketHighlight.foreground2 #d270d7
editorBracketHighlight.foreground3 #f36767
editorBracketHighlight.foreground4 #8acee7
editorBracketHighlight.foreground5 #f89e7a
editorBracketHighlight.foreground6 #d5fff0
editorBracketMatch.background #266d8733
editorBracketMatch.border #266d87cc
editorCodeLens.foreground #8a96a8
editorCursor.background #0e141b
editorCursor.foreground #f7ef9c
editorError.background #ffffff00
editorError.border #ffffff00
editorError.foreground #f57542
editorGroup.border #18242f00
editorGroup.emptyBackground #0c151c
editorGroupHeader.border #30475f66
editorGroupHeader.tabsBackground #0a1016
editorGutter.addedBackground #75ffcd99
editorGutter.background #0b1218
editorGutter.commentRangeForeground #30475f
editorGutter.deletedBackground #f0424299
editorGutter.foldingControlForeground #30475f
editorGutter.modifiedBackground #3caed7
editorHoverWidget.background #252526
editorHoverWidget.border #30475f
editorHoverWidget.foreground #e6e6e6aa
editorIndentGuide.activeBackground #30475f
editorIndentGuide.background #30475f66
editorInfo.background #ffffff00
editorInfo.border #ffffff00
editorInfo.foreground #3caed7bb
editorLineNumber.activeForeground #266d87
editorLineNumber.foreground #30475f99
editorLink.activeForeground #3caed7
editorMarkerNavigation.background #18242f
editorMarkerNavigationError.background #f04242
editorMarkerNavigationInfo.background #3caed7
editorMarkerNavigationWarning.background #f7ef9c
editorOverviewRuler.background #0c151c
editorOverviewRuler.border #30475f44
editorRuler.foreground #30475f66
editorSuggestWidget.background #14202c
editorSuggestWidget.border #30475f66
editorSuggestWidget.foreground #b7c4d7
editorSuggestWidget.highlightForeground #75ffcd
editorSuggestWidget.selectedBackground #266d877c
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #f7ef9ccc
editorWhitespace.foreground #30475f
editorWidget.background #0e171ff5
editorWidget.foreground #9dacc2
editorWidget.resizeBorder #266d8789
focusBorder #75ffcd
foreground #e6e6e6
gitDecoration.addedResourceForeground #75ffcd
gitDecoration.conflictingResourceForeground #d64379
gitDecoration.deletedResourceForeground #f04242
gitDecoration.ignoredResourceForeground #8a96a872
gitDecoration.modifiedResourceForeground #f7ef9c
gitDecoration.stageDeletedResourceForeground #a82e2e
gitDecoration.stageModifiedResourceForeground #c5bf7c
gitDecoration.submoduleResourceForeground #3caed7
gitDecoration.untrackedResourceForeground #46997b
icon.foreground #e6e6e6
input.background #18242f
input.border #00000000
input.foreground #e6e6e6
input.placeholderForeground #e6e6e672
inputOption.activeBackground #75ffcd
inputOption.activeBorder #ffffff00
inputOption.activeForeground #0e141b
list.activeSelectionBackground #266d8730
list.activeSelectionForeground #75ffcd
list.dropBackground #46997b28
list.focusBackground #18242f9b
list.focusForeground #e6e6e6
list.highlightForeground #75ffcd
list.hoverBackground #18242f2e
list.hoverForeground #cfdff0
list.inactiveSelectionBackground #18242f2e
list.inactiveSelectionForeground #aec4db
listFilterWidget.background #18242f
listFilterWidget.noMatchesOutline #f04242a5
listFilterWidget.outline #00000000
menu.background #0e141b
menu.border #00000085
menu.foreground #b0b3ba
menu.selectionBackground #75ffcd00
menu.selectionBorder #00000000
menu.selectionForeground #75ffcd
menu.separatorBackground #515b67
menubar.selectionBackground #0e141b
menubar.selectionForeground #fafafa
merge.commonContentBackground #8a96a822
merge.commonHeaderBackground #8a96a855
merge.currentContentBackground #46997b33
merge.currentHeaderBackground #46997b66
merge.incomingContentBackground #266d8733
merge.incomingHeaderBackground #266d8766
minimap.background #0c151c
minimap.errorHighlight #f57542
minimap.findMatchHighlight #75ffcd44
minimap.selectionHighlight #30475f99
minimap.warningHighlight #f7ef9ccc
minimapGutter.addedBackground #75ffcd99
minimapGutter.deletedBackground #f0424299
minimapGutter.modifiedBackground #3caed7
notificationCenter.border #30475f66
notificationCenterHeader.background #0e161f
notificationCenterHeader.foreground #75ffcd
notifications.background #14202c
notifications.border #30475f66
notifications.foreground #c5cfde
notificationsErrorIcon.foreground #f04242
notificationsInfoIcon.foreground #3caed7
notificationsWarningIcon.foreground #ffb452
notificationToast.border #30475f66
panel.background #0c151c
panel.border #30475f7e
panelSection.border #30475f7e
panelTitle.activeBorder #75ffcd
panelTitle.activeForeground #75ffcd
panelTitle.inactiveForeground #8a96a8
peekView.border #266d87aa
peekViewEditor.background #30475f
peekViewEditor.matchHighlightBackground #c5bf7c44
peekViewEditor.matchHighlightBorder #c5bf7c99
peekViewEditorGutter.background #0e141bbb
peekViewResult.background #0e141b77
peekViewResult.fileForeground #e6e6e6
peekViewResult.lineForeground #fafafa
peekViewResult.matchHighlightBackground #c5bf7c66
peekViewResult.selectionBackground #75ffcd
peekViewResult.selectionForeground #0e141b
peekViewTitle.background #266d87
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #30475f66
pickerGroup.foreground #46997b
progressBar.background #75ffcd
scrollbar.shadow #0c151c
scrollbarSlider.activeBackground #30475fcc
scrollbarSlider.background #30475f66
scrollbarSlider.hoverBackground #30475fb3
selection.background #30475fab
settings.focusedRowBackground #ffffff07
settings.headerForeground #e6e6e6
sideBar.background #0a1016
sideBar.dropBackground #46997b28
sideBar.foreground #8a96a8
sideBarSectionHeader.background #18242f68
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #75ffcd
sideBarTitle.foreground #8a96a8
statusBar.background #0a1016
statusBar.debuggingBackground #f57542
statusBar.debuggingForeground #ffffff
statusBar.foreground #8a96a8
statusBar.noFolderBackground #bf33c7
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #46997b
statusBarItem.remoteForeground #0e141b
tab.activeBackground #121c27
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #fafafa
tab.border #ffffff00
tab.hoverBackground #121c2762
tab.hoverForeground #e6e6e6
tab.inactiveBackground #0a1016
tab.inactiveForeground #8a96a8
terminal.ansiBlack #263849
terminal.ansiBlue #4c6b88
terminal.ansiBrightBlack #728ba5
terminal.ansiBrightBlue #88b2d9
terminal.ansiBrightCyan #3caed7
terminal.ansiBrightGreen #75ffcd
terminal.ansiBrightMagenta #d64379
terminal.ansiBrightRed #f04242
terminal.ansiBrightWhite #fafafa
terminal.ansiBrightYellow #ffb452
terminal.ansiCyan #3288a7
terminal.ansiGreen #46997b
terminal.ansiMagenta #a40e45
terminal.ansiRed #a82e2e
terminal.ansiWhite #e6e6e6
terminal.ansiYellow #b07426
terminal.border #30475f7e
terminal.foreground #8a96a8
terminal.selectionBackground #30475f99
textLink.foreground #75ffcd
titleBar.activeBackground #0a1016
titleBar.activeForeground #8a96a8
titleBar.border #00000000
titleBar.inactiveBackground #0a1016
titleBar.inactiveForeground #515b67
tree.indentGuidesStroke #30475f66
walkThrough.embeddedEditorBackground #00000050
widget.shadow #03050887 #75ffcd
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #e3f0ff —
variable.parameter.function.language.special.self.python #ff4366 —
storage.modifier.lifetime.rust #e3f0ff —
support.function.std.rust #e4524b —
entity.name.lifetime.rust #ff4366 —
variable.language.rust #75ffcd —
support.constant.edge #ded78c —
constant.other.character-class.regexp #75ffcd —
keyword.operator.quantifier.regexp #3fccff —
punctuation.definition.string.begin,punctuation.definition.string.end #f2eec1 —
variable.parameter.function #e3f0ff —
comment markup.link #515b67 —
markup.changed.diff #ff4366 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #e4524b —
markup.inserted.diff #f2eec1 —
markup.deleted.diff #75ffcd —
meta.function.c,meta.function.cpp #75ffcd —
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 #e3f0ff —
punctuation.separator.key-value #e3f0ff —
keyword.operator.expression.import #e4524b —
support.constant.math #ff4366 —
support.constant.property.math #3fccff —
variable.other.constant #ff4366 —
storage.type.annotation.java, storage.type.object.array.java #ff4366 —
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 #e3f0ff —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ff4366 —
keyword.operator.instanceof.java #ded78c —
meta.definition.variable.name.java #75ffcd —
keyword.operator.logical #ffa352 —
keyword.operator.bitwise #ffa352 —
keyword.operator.channel #ffa352 —
support.constant.property-value.scss,support.constant.property-value.css #3fccff —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ffa352 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #3fccff —
punctuation.separator.list.comma.css #e3f0ff —
support.constant.color.w3c-standard-color-name.css #3fccff —
support.type.vendored.property-name.css #ffa352 —
support.module.node,support.type.object.module,support.module.node #ff4366 —
entity.name.type.module #ff4366 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #75ffcd —
support.constant.json #3fccff —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ded78c —
support.type.object.console #75ffcd —
support.variable.property.process #3fccff —
entity.name.function,support.function.console #e4524b —
keyword.operator.misc.rust #e3f0ff —
keyword.operator.sigil.rust #ded78c —
keyword.operator.delete #ded78c —
support.type.object.dom #ffa352 —
support.variable.dom,support.variable.property.dom #75ffcd —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ffa352 —
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 #ded78c —
punctuation.separator.delimiter #e3f0ff —
punctuation.separator.c,punctuation.separator.cpp #ded78c —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ffa352 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ded78c —
variable.parameter.function.language.python #3fccff —
support.type.python #ffa352 —
keyword.operator.logical.python #ded78c —
variable.parameter.function.python #3fccff —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #e3f0ff —
meta.function-call.generic.python #e4524b —
constant.character.format.placeholder.other.python #3fccff —
keyword.operator.assignment.compound #ded78c —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ffa352 —
entity.name.namespace #ff4366 —
variable.language #ff4366 —
token.variable.parameter.java #e3f0ff —
import.storage.java #ff4366 —
token.package.keyword #ded78c —
entity.name.function, meta.require, support.function.any-method, variable.function #e4524b —
entity.name.type.namespace #ff4366 —
support.class, entity.name.type.class #ff4366 —
entity.name.class.identifier.namespace.type #ff4366 —
entity.name.class, variable.other.class.js, variable.other.class.ts #ff4366 —
variable.other.class.php #75ffcd —
control.elements, keyword.operator.less #3fccff —
keyword.other.special-method #e4524b —
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 #ded78c —
token.storage.type.java #ff4366 —
support.type.property-name #e3f0ff —
support.constant.property-value #e3f0ff —
support.constant.font-name #3fccff —
entity.other.inherited-class #ff4366 —
constant.other.symbol #ffa352 —
punctuation.definition.constant #3fccff —
entity.other.attribute-name #3fccff —
entity.other.attribute-name.id #e4524b normal
entity.other.attribute-name.class.css #3fccff normal
markup.heading punctuation.definition.heading, entity.name.section #e4524b —
keyword.other.unit #75ffcd —
markup.bold,todo.bold #3fccff —
punctuation.definition.bold #ff4366 —
markup.italic, punctuation.definition.italic,todo.emphasis #ded78c —
entity.name.section.markdown #75ffcd —
punctuation.definition.heading.markdown #75ffcd —
punctuation.definition.list.begin.markdown #75ffcd —
markup.heading.setext #e3f0ff —
punctuation.definition.bold.markdown #3fccff —
markup.inline.raw.markdown #f2eec1 —
markup.inline.raw.string.markdown #f2eec1 —
punctuation.definition.list.markdown #75ffcd —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #75ffcd —
beginning.punctuation.definition.list.markdown #75ffcd —
punctuation.definition.metadata.markdown #75ffcd —
markup.underline.link.markdown,markup.underline.link.image.markdown #ded78c —
string.other.link.title.markdown,string.other.link.description.markdown #e4524b —
constant.character.escape #ffa352 —
punctuation.section.embedded, variable.interpolation #75ffcd —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ded78c —
invalid.illegal.bad-ampersand.html #e3f0ff —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #75ffcd —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #75ffcd —
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 #f2eec1 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ffa352 —
support.type.property-name.json #75ffcd —
support.type.property-name.json punctuation #75ffcd —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ded78c —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ded78c —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ff4366 —
keyword.operator.error-control.php #ded78c —
keyword.operator.type.php #ded78c —
punctuation.section.array.begin.php #e3f0ff —
punctuation.section.array.end.php #e3f0ff —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ff4366 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #e4524b —
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 #e3f0ff —
support.constant.core.rust #3fccff —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #3fccff —
entity.name.goto-label.php,support.other.php #e4524b —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ffa352 —
keyword.operator.regexp.php #ded78c —
keyword.operator.comparison.php #ffa352 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ded78c —
meta.function.decorator.python #e4524b —
support.token.decorator.python,meta.function.decorator.identifier.python #ffa352 —
function.parameter #e3f0ff —
function.parameter.ruby, function.parameter.cs #e3f0ff —
constant.language.symbol.ruby #ffa352 —
inline-color-decoration rgb-value #3fccff —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ff4366 —
block.scope.end,block.scope.begin #e3f0ff —
entity.name.variable.local.cs #75ffcd —
token.error-token #f44747 —
token.debug-token #ded78c —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ded78c —
meta.template.expression #e3f0ff —
keyword.operator.module #ded78c —
support.type.type.flowtype #e4524b —
support.type.primitive #ff4366 —
meta.property.object #75ffcd —
variable.parameter.function.js #75ffcd —
keyword.other.template.begin #f2eec1 —
keyword.other.template.end #f2eec1 —
keyword.other.substitution.begin #f2eec1 —
keyword.other.substitution.end #f2eec1 —
keyword.operator.assignment #ffa352 —
keyword.operator.assignment.go #ff4366 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ded78c —
entity.name.package.go #ff4366 —
support.type.prelude.elm #ffa352 —
support.constant.elm #3fccff —
punctuation.quasi.element #ded78c —
constant.character.entity #75ffcd —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ffa352 —
entity.global.clojure #ff4366 —
meta.symbol.clojure #75ffcd —
constant.keyword.clojure #ffa352 —
meta.arguments.coffee, variable.parameter.function.coffee #75ffcd —
meta.scope.prerequisites.makefile #75ffcd —
storage.modifier.import.groovy #ff4366 —
meta.method.groovy #e4524b —
meta.definition.variable.name.groovy #75ffcd —
meta.definition.class.inherited.classes.groovy #f2eec1 —
support.variable.semantic.hlsl #ff4366 —
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 #ded78c —
text.variable, text.bracketed #75ffcd —
support.type.swift, support.type.vb.asp #ff4366 —
entity.name.function.xi #ff4366 —
entity.name.class.xi #ffa352 —
constant.character.character-class.regexp.xi #75ffcd —
constant.regexp.xi #ded78c —
keyword.control.xi #ffa352 —
beginning.punctuation.definition.quote.markdown.xi #f2eec1 —
beginning.punctuation.definition.list.markdown.xi #515b67 —
constant.character.xi #e4524b —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #515b67 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ff4366 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #75ffcd —
meta.brace.square #e3f0ff —
comment, punctuation.definition.comment #515b67 italic
markup.quote.markdown #515b67 —
punctuation.definition.block.sequence.item.yaml #e3f0ff —
constant.language.symbol.elixir #ffa352 —
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 } !` ;
}