Skip to main content
Home Theme VS Code Juno pale cybernight A theme based on Juno Palenight with some outrun-ish accents
Juno pale cybernight | 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 #101219 activityBar.background #232735 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #00a9a5 activityBarBadge.foreground #ffffff 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 #ec407a — variable.other.generic-type.haskell #7e57c2 — storage.type.haskell #d19a66 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Juno pale cybernight — Juno Pale Cybernight
badge.background #00a9a5
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #161824
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #00a9a5
button.foreground #ffffff
button.hoverBackground #00c9c4
button.secondaryBackground #00a9a5
button.secondaryForeground #ffffff
button.secondaryHoverBackground #00c9c4
checkbox.background #232735
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #1c1e28
debugExceptionWidget.border #47474700
debugToolBar.background #1c1e28
debugToolBar.border #47474700
diffEditor.border #444444
diffEditor.insertedTextBackground #00a9a533
diffEditor.removedTextBackground #ff000033
dropdown.background #232735
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #161824
editor.findMatchBackground #2d3144
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #ec407a8b
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3e435c8b
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #3e435c4c
editor.foreground #d4d4d4
editor.hoverHighlightBackground #3e5c7b6a
editor.inactiveSelectionBackground #2d3144
editor.lineHighlightBackground #ffffff00
editor.lineHighlightBorder #d75f8756
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #3e435c
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #627b9600
editor.wordHighlightBackground #3e435c
editor.wordHighlightStrongBackground #3e435c
editor.wordHighlightStrongBorder #ffffff00
editorBracketMatch.background #3e435c
editorBracketMatch.border #88888800
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #b73a3400
editorError.border #ffffff00
editorError.foreground #d75f87
editorGroup.border #6b6b6b83
editorGroup.emptyBackground #161824
editorGroupHeader.tabsBackground #232735
editorGroupHeader.tabsBorder #00000083
editorGutter.addedBackground #81b88b
editorGutter.background #161824
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #d75f87
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #f5aa3a
editorHoverWidget.background #161824ed
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #707070
editorIndentGuide.background #404040
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #4f97d7
editorLineNumber.activeForeground #c6c6c6
editorLineNumber.foreground #858585
editorLink.activeForeground #4f97d7
editorMarkerNavigation.background #272b3b
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #4f97d7
editorMarkerNavigationWarning.background #f5aa3a
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #161824c7
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #00a9a5
editorSuggestWidget.selectedBackground #5c6690
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #f5aa3a
editorWhitespace.foreground #e3e4e229
editorWidget.background #1c1e28
editorWidget.foreground #cccccc
editorWidget.resizeBorder #5f5f5faf
focusBorder #00a9a500
foreground #cccccc
gitDecoration.addedResourceForeground #81b88b
gitDecoration.conflictingResourceForeground #7e57c2
gitDecoration.deletedResourceForeground #d75f87
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #f5aa3a
gitDecoration.stageDeletedResourceForeground #d75f87
gitDecoration.stageModifiedResourceForeground #f5aa3a
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #cccccc
input.background #232735
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #cccccc
inputOption.activeBackground #232735
inputOption.activeBorder #ffffff00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #5c6690
list.activeSelectionForeground #ffffff
list.dropBackground #5c6690
list.focusBackground #272b3b
list.focusForeground #cccccc
list.highlightForeground #00a9a5
list.hoverBackground #373d54
list.hoverForeground #cccccc
list.inactiveSelectionBackground #5c6690
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #00a9a5
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #232735
menu.border #ffffff00
menu.foreground #cccccc
menu.selectionBackground #373d54
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #777777
menubar.selectionBackground #ffffff1a
menubar.selectionBorder #cccccc
menubar.selectionForeground #cccccc
merge.commonContentBackground #1d2034
merge.commonHeaderBackground #1d2034
merge.currentContentBackground #0c5654
merge.currentHeaderBackground #107d7a
merge.incomingContentBackground #2b5071
merge.incomingHeaderBackground #3d74a5
minimap.background #161824
minimap.errorHighlight #d75f87
minimap.findMatchHighlight #2d3144
minimap.selectionHighlight #3e435c
minimap.warningHighlight #f5aa3a
minimapGutter.addedBackground #81b88b
minimapGutter.deletedBackground #d75f87
minimapGutter.modifiedBackground #f5aa3a
notificationCenter.border #474747
notificationCenterHeader.background #232735
notificationCenterHeader.foreground #cccccc
notifications.background #232735
notifications.border #303031
notifications.foreground #cccccc
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #474747
panel.background #161824
panel.border #80808059
panelSection.border #80808059
panelTitle.activeBorder #00a9a5
panelTitle.activeForeground #e7e7e7
panelTitle.inactiveForeground #e7e7e799
peekView.border #ffffff46
peekViewEditor.background #161824
peekViewEditor.matchHighlightBackground #ec407a8b
peekViewEditor.matchHighlightBorder #ee931e00
peekViewEditorGutter.background #161824
peekViewResult.background #232735
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ec407a8b
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #00a9a5
peekViewTitleDescription.foreground #161824
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #3f3f46
pickerGroup.foreground #00a9a5
progressBar.background #00a9a5
scrollbar.shadow #000000
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646464b3
selection.background #0f1119
settings.focusedRowBackground #ffffff07
settings.headerForeground #cccccc
sideBar.background #272b3b
sideBar.dropBackground #5c6690
sideBar.foreground #ffffff
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #151721
statusBar.border #64646400
statusBar.debuggingBackground #d75f87
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #2b1d43
statusBar.noFolderBorder #ff000000
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #7b1e1e1f
statusBarItem.remoteBackground #00a9a5
statusBarItem.remoteForeground #ffffff
tab.activeBackground #232735
tab.activeBorder #00a9a5
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #9b9b9b18
tab.inactiveBackground #232735
tab.inactiveForeground #ffffff80
terminal.ansiBlack #666666
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #888888
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 #99999940
terminalCursor.background #00a9a5
terminalCursor.foreground #161824
textLink.foreground #00a9a5
titleBar.activeBackground #232735
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #43485a
titleBar.inactiveForeground #ffffff99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #ec407a
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #d4d4d4 —
variable.parameter.function.language.special.self.python #b69d6f —
storage.modifier.lifetime.rust #d4d4d4 —
support.function.std.rust #4f97d7 —
entity.name.lifetime.rust #b69d6f —
variable.language.rust #ec407a —
support.constant.edge #7e57c2 —
constant.other.character-class.regexp #ec407a —
keyword.operator.quantifier.regexp #d19a66 —
punctuation.definition.string.begin,punctuation.definition.string.end #16b0ab —
variable.parameter.function #d4d4d4 —
comment markup.link #7f848e —
markup.changed.diff #b69d6f —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #4f97d7 —
markup.inserted.diff #16b0ab —
markup.deleted.diff #ec407a —
meta.function.c,meta.function.cpp #ec407a —
punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c #d4d4d4 —
punctuation.separator.key-value #d4d4d4 —
keyword.operator.expression.import #4f97d7 —
support.constant.math #b69d6f —
support.constant.property.math #d19a66 —
variable.other.constant #b69d6f —
storage.type.annotation.java, storage.type.object.array.java #b69d6f —
punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java #d4d4d4 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #b69d6f —
keyword.operator.instanceof.java #7e57c2 —
meta.definition.variable.name.java #ec407a —
keyword.operator.logical #d4d4d4 —
keyword.operator.bitwise #d4d4d4 —
keyword.operator.channel #d4d4d4 —
support.constant.property-value.scss,support.constant.property-value.css #d19a66 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #d4d4d4 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #d19a66 —
punctuation.separator.list.comma.css #d4d4d4 —
support.constant.color.w3c-standard-color-name.css #d19a66 —
support.type.vendored.property-name.css #d4d4d4 —
support.module.node,support.type.object.module,support.module.node #b69d6f —
entity.name.type.module #b69d6f —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ec407a —
support.constant.json #d19a66 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #7e57c2 —
support.type.object.console #ec407a —
support.variable.property.process #d19a66 —
entity.name.function,support.function.console #4f97d7 —
keyword.operator.misc.rust #d4d4d4 —
keyword.operator.sigil.rust #7e57c2 —
keyword.operator.delete #7e57c2 —
support.type.object.dom #d4d4d4 —
support.variable.dom,support.variable.property.dom #ec407a —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #d4d4d4 —
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 #7e57c2 —
punctuation.separator.delimiter #d4d4d4 —
punctuation.separator.c,punctuation.separator.cpp #7e57c2 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #d4d4d4 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #7e57c2 —
variable.parameter.function.language.python #d19a66 —
support.type.python #d4d4d4 —
keyword.operator.logical.python #7e57c2 —
variable.parameter.function.python #d19a66 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #d4d4d4 —
meta.function-call.generic.python #4f97d7 —
constant.character.format.placeholder.other.python #d19a66 —
keyword.operator.assignment.compound #7e57c2 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #d4d4d4 —
entity.name.namespace #b69d6f —
variable.language #b69d6f —
token.variable.parameter.java #d4d4d4 —
import.storage.java #b69d6f —
token.package.keyword #7e57c2 —
entity.name.function, meta.require, support.function.any-method, variable.function #4f97d7 —
entity.name.type.namespace #b69d6f —
support.class, entity.name.type.class #b69d6f —
entity.name.class.identifier.namespace.type #b69d6f —
entity.name.class, variable.other.class.js, variable.other.class.ts #b69d6f —
variable.other.class.php #ec407a —
control.elements, keyword.operator.less #d19a66 —
keyword.other.special-method #4f97d7 —
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 #7e57c2 —
token.storage.type.java #b69d6f —
support.type.property-name #d4d4d4 —
support.constant.property-value #d4d4d4 —
support.constant.font-name #d19a66 —
entity.other.inherited-class #b69d6f —
constant.other.symbol #d4d4d4 —
punctuation.definition.constant #d19a66 —
entity.other.attribute-name #d19a66 —
entity.other.attribute-name.id #4f97d7 normal
entity.other.attribute-name.class.css #d19a66 normal
markup.heading punctuation.definition.heading, entity.name.section #4f97d7 —
keyword.other.unit #ec407a —
markup.bold,todo.bold #d19a66 —
punctuation.definition.bold #b69d6f —
markup.italic, punctuation.definition.italic,todo.emphasis #7e57c2 —
entity.name.section.markdown #ec407a —
punctuation.definition.heading.markdown #ec407a —
punctuation.definition.list.begin.markdown #ec407a —
markup.heading.setext #d4d4d4 —
punctuation.definition.bold.markdown #d19a66 —
markup.inline.raw.markdown #16b0ab —
markup.inline.raw.string.markdown #16b0ab —
punctuation.definition.list.markdown #ec407a —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ec407a —
beginning.punctuation.definition.list.markdown #ec407a —
punctuation.definition.metadata.markdown #ec407a —
markup.underline.link.markdown,markup.underline.link.image.markdown #7e57c2 —
string.other.link.title.markdown,string.other.link.description.markdown #4f97d7 —
constant.character.escape #d4d4d4 —
punctuation.section.embedded, variable.interpolation #ec407a —
punctuation.section.embedded.begin,punctuation.section.embedded.end #7e57c2 —
invalid.illegal.bad-ampersand.html #d4d4d4 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ec407a —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ec407a —
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 #16b0ab —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #d4d4d4 —
support.type.property-name.json #ec407a —
support.type.property-name.json punctuation #ec407a —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #7e57c2 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #7e57c2 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #b69d6f —
keyword.operator.error-control.php #7e57c2 —
keyword.operator.type.php #7e57c2 —
punctuation.section.array.begin.php #d4d4d4 —
punctuation.section.array.end.php #d4d4d4 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #b69d6f —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #4f97d7 —
punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php #d4d4d4 —
support.constant.core.rust #d19a66 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #d19a66 —
entity.name.goto-label.php,support.other.php #4f97d7 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #d4d4d4 —
keyword.operator.regexp.php #7e57c2 —
keyword.operator.comparison.php #d4d4d4 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #7e57c2 —
meta.function.decorator.python #4f97d7 —
support.token.decorator.python,meta.function.decorator.identifier.python #d4d4d4 —
function.parameter #d4d4d4 —
function.parameter.ruby, function.parameter.cs #d4d4d4 —
constant.language.symbol.ruby #d4d4d4 —
inline-color-decoration rgb-value #d19a66 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #b69d6f —
block.scope.end,block.scope.begin #d4d4d4 —
entity.name.variable.local.cs #ec407a —
token.error-token #f44747 —
token.debug-token #7e57c2 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #7e57c2 —
meta.template.expression #d4d4d4 —
keyword.operator.module #7e57c2 —
support.type.type.flowtype #4f97d7 —
support.type.primitive #b69d6f —
meta.property.object #ec407a —
variable.parameter.function.js #ec407a —
keyword.other.template.begin #16b0ab —
keyword.other.template.end #16b0ab —
keyword.other.substitution.begin #16b0ab —
keyword.other.substitution.end #16b0ab —
keyword.operator.assignment #d4d4d4 —
keyword.operator.assignment.go #b69d6f —
keyword.operator.arithmetic.go, keyword.operator.address.go #7e57c2 —
entity.name.package.go #b69d6f —
support.type.prelude.elm #d4d4d4 —
support.constant.elm #d19a66 —
punctuation.quasi.element #7e57c2 —
constant.character.entity #ec407a —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #d4d4d4 —
entity.global.clojure #b69d6f —
meta.symbol.clojure #ec407a —
constant.keyword.clojure #d4d4d4 —
meta.arguments.coffee, variable.parameter.function.coffee #ec407a —
meta.scope.prerequisites.makefile #ec407a —
storage.modifier.import.groovy #b69d6f —
meta.method.groovy #4f97d7 —
meta.definition.variable.name.groovy #ec407a —
meta.definition.class.inherited.classes.groovy #16b0ab —
support.variable.semantic.hlsl #b69d6f —
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 #7e57c2 —
text.variable, text.bracketed #ec407a —
support.type.swift, support.type.vb.asp #b69d6f —
entity.name.function.xi #b69d6f —
entity.name.class.xi #d4d4d4 —
constant.character.character-class.regexp.xi #ec407a —
constant.regexp.xi #7e57c2 —
keyword.control.xi #d4d4d4 —
beginning.punctuation.definition.quote.markdown.xi #16b0ab —
beginning.punctuation.definition.list.markdown.xi #7f848e —
constant.character.xi #4f97d7 —
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 #b69d6f —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ec407a —
meta.brace.square #d4d4d4 —
comment, punctuation.definition.comment #7f848e italic
markup.quote.markdown #7f848e —
punctuation.definition.block.sequence.item.yaml #d4d4d4 —
constant.language.symbol.elixir #d4d4d4 —
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 } !` ;
}