Skip to main content
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
activityBar.activeBackground #c792ea36 activityBar.background #01010a activityBar.border #c792ea activityBar.foreground #c792ea activityBar.inactiveForeground #8477a3 activityBarBadge.background #b376fd 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 #a6d9fb — variable.other.generic-type.haskell #ffdfa7 — storage.type.haskell #ff84a7 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Sweet Night — Sweet Night
activityBarBadge.foreground
#fffff0
badge.background #a466ff
badge.foreground #fffff0
breadcrumb.activeSelectionForeground #d1caca
breadcrumb.background #3a3a86
breadcrumb.focusForeground #d1caca
breadcrumb.foreground #ffffffcc
button.background #ae59e6
button.foreground #fffff0
button.hoverBackground #8b47b8
button.secondaryBackground #381871
button.secondaryForeground #fffff0
button.secondaryHoverBackground #450cab
checkbox.background #10102c
checkbox.border #00000000
checkbox.foreground #fffff0
debugExceptionWidget.background #1e1e64
debugExceptionWidget.border #b4b4b4
debugToolBar.background #1e1e64
debugToolBar.border #b4b4b4
diffEditor.border #b6b6b6
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #10102c
dropdown.border #00000000
dropdown.foreground #fffff0
editor.background #0b0b19
editor.findMatchBackground #1a2e47
editor.findMatchBorder #74879f
editor.findMatchHighlightBackground #f9d7b478
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #523c6866
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #712fc04d
editor.foreground #fffff0
editor.hoverHighlightBackground #2b32a340
editor.inactiveSelectionBackground #7c7eff66
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #8b83ec
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #7cbbff6a
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #004972b8
editorBracketMatch.background #0056001a
editorBracketMatch.border #888888
editorCodeLens.foreground #e8e8e8
editorCursor.background #000000
editorCursor.foreground #f0f0f0
editorError.background #c4403900
editorError.border #ffffff00
editorError.foreground #f75959
editorGroup.border #bababa
editorGroup.emptyBackground #0b0b19
editorGroupHeader.tabsBackground #0b0b19
editorGutter.addedBackground #9cd523
editorGutter.background #01010a
editorGutter.commentRangeForeground #e4e4e4
editorGutter.deletedBackground #f20510
editorGutter.foldingControlForeground #e4e4e4
editorGutter.modifiedBackground #0fb3e2
editorHoverWidget.background #252526
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground1 #b8b8b8
editorIndentGuide.background1 #c4c4c4
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #c792ea
editorLink.activeForeground #6676ff
editorMarkerNavigation.background #4242c7
editorMarkerNavigationError.background #18eee4
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #c792ea
editorSuggestWidget.background #1f2a82
editorSuggestWidget.border #a7a7a7
editorSuggestWidget.foreground #fffff0
editorSuggestWidget.highlightForeground #c792ea
editorSuggestWidget.selectedBackground #062f4a
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #c4a100
editorWhitespace.foreground #e3e4e229
editorWidget.background #1e1e64
editorWidget.foreground #cccccc
editorWidget.resizeBorder #8484ff
focusBorder #654288
foreground #fffff0
gitDecoration.addedResourceForeground #81b88b
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #c74e39
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #fffff0
input.background #10102c
input.border #00000000
input.foreground #fffff0
input.placeholderForeground #fffff0
inputOption.activeBackground #d14df766
inputOption.activeBorder #007acc00
inputOption.activeForeground #fffff0
list.activeSelectionBackground #8531bc
list.activeSelectionForeground #ffffff
list.dropBackground #2b1b43
list.focusBackground #7c32a9
list.focusForeground #cccccc
list.highlightForeground #c792ea
list.hoverBackground #4c3eb2
list.hoverForeground #e2deff
list.inactiveSelectionBackground #8531bc
list.inactiveSelectionForeground #bdcfd9
listFilterWidget.background #73319f
listFilterWidget.noMatchesOutline #f20039
listFilterWidget.outline #00000000
menu.background #1e1e64
menu.border #02020285
menu.foreground #fffff0
menu.selectionBackground #7d3aa9
menu.selectionBorder #00000000
menu.selectionForeground #fffff0
menu.separatorBackground #d1d1d1
menubar.selectionBackground #f5f5f51a
menubar.selectionBorder #ff0101
menubar.selectionForeground #dbdbdb
merge.commonContentBackground #a558d9cc
merge.commonHeaderBackground #c792eaf8
merge.currentContentBackground #27584ee0
merge.currentHeaderBackground #22b696cc
merge.incomingContentBackground #395c88ef
merge.incomingHeaderBackground #4c8ce0ec
minimap.background #0b0b19
minimap.errorHighlight #f75959
minimap.findMatchHighlight #1a2e47e8
minimap.selectionHighlight #7cbbff6a
minimap.warningHighlight #c4a100
minimapGutter.addedBackground #9cd523
minimapGutter.deletedBackground #f20510
minimapGutter.modifiedBackground #0fb3e2
notificationCenter.border #584b4b
notificationCenterHeader.background #2828a3
notificationCenterHeader.foreground #fffff0
notifications.background #3a3a86
notifications.border #bcbcbc
notifications.foreground #fffff0
notificationsErrorIcon.foreground #ff7e7e
notificationsInfoIcon.foreground #71bcff
notificationsWarningIcon.foreground #ffd100
notificationToast.border #a354f2
panel.background #10102c
panel.border #fffff0a1
panelSection.border #f0f0f059
panelTitle.activeBorder #fffff0
panelTitle.activeForeground #fffff0
panelTitle.inactiveForeground #dedede
peekView.border #018eec
peekViewEditor.background #341c8c
peekViewEditor.matchHighlightBackground #bc711099
peekViewEditor.matchHighlightBorder #fba638
peekViewEditorGutter.background #221066
peekViewResult.background #221066
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #f0f0f0
peekViewResult.matchHighlightBackground #09d5c28b
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #221066
peekViewTitleDescription.foreground #f7f7f7b3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #343441
pickerGroup.foreground #62abff
progressBar.background #654288
scrollbar.shadow #000000
scrollbarSlider.activeBackground #cfcfcf66
scrollbarSlider.background #8b2bea66
scrollbarSlider.hoverBackground #a3a3a3b3
selection.background #6b97cf
settings.focusedRowBackground #ffffff07
settings.headerForeground #fffff0
sideBar.background #0b0b19
sideBar.border #c792ea
sideBar.dropBackground #2b1b43
sideBar.foreground #a6d9fb
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #a6d9fb
sideBarTitle.foreground #c792ea
statusBar.background #6256a7
statusBar.border #ff2424
statusBar.debuggingBackground #5e2d71
statusBar.debuggingForeground #fffff0
statusBar.foreground #fffff0
statusBar.noFolderBackground #68217a
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #f753c6
statusBarItem.remoteForeground #ffffff
tab.activeBackground #0b0b19
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #6464d7
tab.inactiveBackground #262649
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 #f0f0f059
terminal.foreground #fffff0
terminal.selectionBackground #7f74ff22
terminalCursor.background #006fc0
terminalCursor.foreground #fffff0
textLink.foreground #4396f7
titleBar.activeBackground #1e1e64
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #1e1e6460
titleBar.inactiveForeground #f9f9f999
tree.indentGuidesStroke #b8b8b8
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0606065c #a6d9fb
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #fffff0 —
variable.parameter.function.language.special.self.python #cb86f9 —
storage.modifier.lifetime.rust #fffff0 —
support.function.std.rust #82aaff —
entity.name.lifetime.rust #cb86f9 —
variable.language.rust #a6d9fb —
support.constant.edge #ffdfa7 —
constant.other.character-class.regexp #a6d9fb —
keyword.operator.quantifier.regexp #ff84a7 —
punctuation.definition.string.begin,punctuation.definition.string.end #d8d8ff —
variable.parameter.function #fffff0 —
comment markup.link #079cab —
markup.changed.diff #cb86f9 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #82aaff —
markup.inserted.diff #d8d8ff —
markup.deleted.diff #a6d9fb —
meta.function.c,meta.function.cpp #a6d9fb —
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 #fffff0 —
punctuation.separator.key-value #fffff0 —
keyword.operator.expression.import #82aaff —
support.constant.math #cb86f9 —
support.constant.property.math #ff84a7 —
variable.other.constant #cb86f9 —
storage.type.annotation.java, storage.type.object.array.java #cb86f9 —
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 #fffff0 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #cb86f9 —
keyword.operator.instanceof.java #ffdfa7 —
meta.definition.variable.name.java #a6d9fb —
keyword.operator.logical #4271fd —
keyword.operator.bitwise #4271fd —
keyword.operator.channel #4271fd —
support.constant.property-value.scss,support.constant.property-value.css #ff84a7 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #4271fd —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ff84a7 —
punctuation.separator.list.comma.css #fffff0 —
support.constant.color.w3c-standard-color-name.css #ff84a7 —
support.type.vendored.property-name.css #4271fd —
support.module.node,support.type.object.module,support.module.node #cb86f9 —
entity.name.type.module #cb86f9 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #a6d9fb —
support.constant.json #ff84a7 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ffdfa7 —
support.type.object.console #a6d9fb —
support.variable.property.process #ff84a7 —
entity.name.function,support.function.console #82aaff —
keyword.operator.misc.rust #fffff0 —
keyword.operator.sigil.rust #ffdfa7 —
keyword.operator.delete #ffdfa7 —
support.type.object.dom #4271fd —
support.variable.dom,support.variable.property.dom #a6d9fb —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #4271fd —
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 #ffdfa7 —
punctuation.separator.delimiter #fffff0 —
punctuation.separator.c,punctuation.separator.cpp #ffdfa7 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #4271fd —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ffdfa7 —
variable.parameter.function.language.python #ff84a7 —
support.type.python #4271fd —
keyword.operator.logical.python #ffdfa7 —
variable.parameter.function.python #ff84a7 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #fffff0 —
meta.function-call.generic.python #82aaff —
constant.character.format.placeholder.other.python #ff84a7 —
keyword.operator.assignment.compound #ffdfa7 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #4271fd —
entity.name.namespace #cb86f9 —
variable.language #cb86f9 —
token.variable.parameter.java #fffff0 —
import.storage.java #cb86f9 —
token.package.keyword #ffdfa7 —
entity.name.function, meta.require, support.function.any-method, variable.function #82aaff —
entity.name.type.namespace #cb86f9 —
support.class, entity.name.type.class #cb86f9 —
entity.name.class.identifier.namespace.type #cb86f9 —
entity.name.class, variable.other.class.js, variable.other.class.ts #cb86f9 —
variable.other.class.php #a6d9fb —
control.elements, keyword.operator.less #ff84a7 —
keyword.other.special-method #82aaff —
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 #ffdfa7 —
token.storage.type.java #cb86f9 —
support.type.property-name #fffff0 —
support.constant.property-value #fffff0 —
support.constant.font-name #ff84a7 —
entity.other.inherited-class #cb86f9 —
constant.other.symbol #4271fd —
punctuation.definition.constant #ff84a7 —
entity.other.attribute-name #ff84a7 —
entity.other.attribute-name.id #82aaff italic
entity.other.attribute-name.class.css #ff84a7 italic
markup.heading punctuation.definition.heading, entity.name.section #82aaff —
keyword.other.unit #a6d9fb —
markup.bold,todo.bold #ff84a7 —
punctuation.definition.bold #cb86f9 —
markup.italic, punctuation.definition.italic,todo.emphasis #ffdfa7 —
entity.name.section.markdown #a6d9fb —
punctuation.definition.heading.markdown #a6d9fb —
punctuation.definition.list.begin.markdown #a6d9fb —
markup.heading.setext #fffff0 —
punctuation.definition.bold.markdown #ff84a7 —
markup.inline.raw.markdown #d8d8ff —
markup.inline.raw.string.markdown #d8d8ff —
punctuation.definition.list.markdown #a6d9fb —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #a6d9fb —
beginning.punctuation.definition.list.markdown #a6d9fb —
punctuation.definition.metadata.markdown #a6d9fb —
markup.underline.link.markdown,markup.underline.link.image.markdown #ffdfa7 —
string.other.link.title.markdown,string.other.link.description.markdown #82aaff —
constant.character.escape #4271fd —
punctuation.section.embedded, variable.interpolation #a6d9fb —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ffdfa7 —
invalid.illegal.bad-ampersand.html #fffff0 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #a6d9fb —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #a6d9fb —
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 #d8d8ff —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #4271fd —
support.type.property-name.json #a6d9fb —
support.type.property-name.json punctuation #a6d9fb —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ffdfa7 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ffdfa7 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #cb86f9 —
keyword.operator.error-control.php #ffdfa7 —
keyword.operator.type.php #ffdfa7 —
punctuation.section.array.begin.php #fffff0 —
punctuation.section.array.end.php #fffff0 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #cb86f9 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #82aaff —
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 #fffff0 —
support.constant.core.rust #ff84a7 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ff84a7 —
entity.name.goto-label.php,support.other.php #82aaff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #4271fd —
keyword.operator.regexp.php #ffdfa7 —
keyword.operator.comparison.php #4271fd —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ffdfa7 —
meta.function.decorator.python #82aaff —
support.token.decorator.python,meta.function.decorator.identifier.python #4271fd —
function.parameter #fffff0 —
function.parameter.ruby, function.parameter.cs #fffff0 —
constant.language.symbol.ruby #4271fd —
inline-color-decoration rgb-value #ff84a7 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #cb86f9 —
block.scope.end,block.scope.begin #fffff0 —
entity.name.variable.local.cs #a6d9fb —
token.error-token #f44747 —
token.debug-token #ffdfa7 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ffdfa7 —
meta.template.expression #fffff0 —
keyword.operator.module #ffdfa7 —
support.type.type.flowtype #82aaff —
support.type.primitive #cb86f9 —
meta.property.object #a6d9fb —
variable.parameter.function.js #a6d9fb —
keyword.other.template.begin #d8d8ff —
keyword.other.template.end #d8d8ff —
keyword.other.substitution.begin #d8d8ff —
keyword.other.substitution.end #d8d8ff —
keyword.operator.assignment #4271fd —
keyword.operator.assignment.go #cb86f9 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ffdfa7 —
entity.name.package.go #cb86f9 —
support.type.prelude.elm #4271fd —
support.constant.elm #ff84a7 —
punctuation.quasi.element #ffdfa7 —
constant.character.entity #a6d9fb —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #4271fd —
entity.global.clojure #cb86f9 —
meta.symbol.clojure #a6d9fb —
constant.keyword.clojure #4271fd —
meta.arguments.coffee, variable.parameter.function.coffee #a6d9fb —
meta.scope.prerequisites.makefile #a6d9fb —
storage.modifier.import.groovy #cb86f9 —
meta.method.groovy #82aaff —
meta.definition.variable.name.groovy #a6d9fb —
meta.definition.class.inherited.classes.groovy #d8d8ff —
support.variable.semantic.hlsl #cb86f9 —
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 #ffdfa7 —
text.variable, text.bracketed #a6d9fb —
support.type.swift, support.type.vb.asp #cb86f9 —
entity.name.function.xi #cb86f9 —
entity.name.class.xi #4271fd —
constant.character.character-class.regexp.xi #a6d9fb —
constant.regexp.xi #ffdfa7 —
keyword.control.xi #4271fd —
beginning.punctuation.definition.quote.markdown.xi #d8d8ff —
beginning.punctuation.definition.list.markdown.xi #079cab —
constant.character.xi #82aaff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #079cab —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #cb86f9 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #a6d9fb —
meta.brace.square #fffff0 —
comment, punctuation.definition.comment #079cab italic
markup.quote.markdown #079cab —
punctuation.definition.block.sequence.item.yaml #fffff0 —
constant.language.symbol.elixir #4271fd —
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 } !` ;
}
Sweet Night | Coding Theme