Skip to main content
Home Theme VS Code Cosmic Pop Dark Simple dark theme following cosmic dark color pallete with custom syntax highlighting
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 #383534 activityBar.background #2b2b2b activityBar.border #a6a6a622 activityBar.foreground #f3f3f3 activityBar.inactiveForeground #9a9a9abe activityBarBadge.background #faa41a 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 #32d39674 — variable.other.generic-type.haskell #ffa700 — storage.type.haskell #cc8296 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Cosmic Pop Dark — Cosmic Pop Dark Theme
activityBarBadge.foreground #000000
badge.background #faa41a
badge.foreground #000000
breadcrumb.activeSelectionForeground #bababa
breadcrumb.background #262626
breadcrumb.focusForeground #bababa
breadcrumb.foreground #9c9c9c
button.background #424242
button.foreground #a6a6a6
button.hoverBackground #4d4d4d
button.secondaryBackground #363636
button.secondaryForeground #ffffff
button.secondaryHoverBackground #4d4d4d
checkbox.background #2b2b2b
checkbox.border #a6a6a622
checkbox.foreground #f7f7f7
debugExceptionWidget.background #333333
debugExceptionWidget.border #474747
debugToolBar.background #333333
debugToolBar.border #474747
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #2b2b2b
dropdown.border #a6a6a622
dropdown.foreground #f7f7f7
editor.background #262626
editor.findMatchBackground #000000
editor.findMatchBorder #000000
editor.findMatchHighlightBackground #000000
editor.findMatchHighlightBorder #000000
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #92929200
editor.foreground #a0a4a5
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #cdcdcd18
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #282828
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #c9ab0818
editor.selectionHighlightBackground #000000
editor.selectionHighlightBorder #000000
editor.wordHighlightBackground #000000
editor.wordHighlightStrongBackground #000000
editor.wordHighlightStrongBorder #000000
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #f3f3f3
editorError.background #b73a344c
editorError.border #ffffff00
editorError.foreground #00000000
editorGroup.border #444444
editorGroup.emptyBackground #262626
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #2b2b2b
editorGroupHeader.tabsBorder #a6a6a622
editorGutter.addedBackground #587c0c
editorGutter.background #1e1e1e
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #252526
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #707070
editorIndentGuide.background #404040
editorInfo.background #4490bf4a
editorInfo.border #4490BF00
editorInfo.foreground #75beff00
editorLineNumber.activeForeground #f3b82f93
editorLineNumber.foreground #ffffff30
editorLink.activeForeground #ffa136
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #252526
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #0097fb
editorSuggestWidget.selectedBackground #062f4a
editorWarning.background #a9904048
editorWarning.border #ffffff00
editorWarning.foreground #00000000
editorWhitespace.foreground #e3e4e229
editorWidget.background #2b2b2b
editorWidget.foreground #b8b8b8
editorWidget.resizeBorder #5F5F5F
focusBorder #00000018
foreground #cccccc
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 #dddddd
input.background #2b2b2b
input.border #a6a6a622
input.foreground #f7f7f7
input.placeholderForeground #7b7b7b
inputOption.activeBackground #faa41a
inputOption.activeBorder #a6a6a622
inputOption.activeForeground #000000
list.activeSelectionBackground #4f4f4f
list.activeSelectionForeground #ffffff
list.dropBackground #3f3f3fa5
list.focusBackground #49494940
list.focusForeground #f3f3f3
list.highlightForeground #faa41a
list.hoverBackground #49494940
list.hoverForeground #f3f3f3
list.inactiveSelectionBackground #6262623c
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #2b2b2b
listFilterWidget.noMatchesOutline #0000008f
listFilterWidget.outline #a6a6a622
menu.background #2b2b2b
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #faa41a
menu.selectionBorder #a6a6a622
menu.selectionForeground #000000
menu.separatorBackground #a6a6a622
menubar.selectionBackground #ffffff1a
menubar.selectionBorder #a6a6a622
menubar.selectionForeground #cccccc
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #262626
minimap.errorHighlight #00000000
minimap.findMatchHighlight #000000
minimap.selectionHighlight #c9ab0818
minimap.warningHighlight #00000000
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #474747
notificationCenterHeader.background #303031
notificationCenterHeader.foreground #d1d1d1
notifications.background #2b2b2b
notifications.border #303031
notifications.foreground #bcbcbc
notificationsErrorIcon.foreground #fd2a00
notificationsInfoIcon.foreground #5ceee9
notificationsWarningIcon.foreground #faa41a
notificationToast.border #00000052
panel.background #2b2b2b
panel.border #a6a6a622
panelSection.border #a6a6a622
panelTitle.activeBorder #faa41a00
panelTitle.activeForeground #faa41abe
panelTitle.inactiveForeground #505050
peekView.border #ffa1366c
peekViewEditor.background #2b2b2b
peekViewEditor.matchHighlightBackground #000000fa
peekViewEditor.matchHighlightBorder #000000
peekViewEditorGutter.background #1e1e1e
peekViewResult.background #2b2b2b
peekViewResult.fileForeground #f3f3f3
peekViewResult.lineForeground #aaaaaa
peekViewResult.matchHighlightBackground #000000
peekViewResult.selectionBackground #8a8a8a34
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #dddddd
peekViewTitleLabel.foreground #faa41ad3
pickerGroup.border #faa41a
pickerGroup.foreground #faa41a
progressBar.background #faa41a
scrollbar.shadow #00000026
scrollbarSlider.activeBackground #545454
scrollbarSlider.background #363636
scrollbarSlider.hoverBackground #474747
selection.background #faa41a
settings.focusedRowBackground #ffffff07
settings.headerForeground #cccccc
sideBar.background #2b2b2b
sideBar.border #a6a6a622
sideBar.dropBackground #3f3f3fa5
sideBar.foreground #f3f3f3
sideBarSectionHeader.background #1e1e1e
sideBarSectionHeader.border #a6a6a622
sideBarSectionHeader.foreground #faa41a93
sideBarTitle.foreground #d1d1d1
statusBar.background #2b2b2b
statusBar.border #a6a6a622
statusBar.debuggingBackground #2b2b2b
statusBar.debuggingBorder #a6a6a622
statusBar.debuggingForeground #ffffff
statusBar.foreground #9a9a9a
statusBar.noFolderBackground #2b2b2b
statusBar.noFolderBorder #ff000000
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #2b2b2b
statusBarItem.remoteForeground #faa41a
tab.activeBackground #262626
tab.activeBorder #a6a6a600
tab.activeBorderTop #a6a6a622
tab.activeForeground #faa41a
tab.border #a6a6a622
tab.hoverBackground #71717118
tab.hoverBorder #a6a6a622
tab.inactiveBackground #2b2b2b
tab.inactiveForeground #ffffff54
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 #ffffff7c
terminal.ansiYellow #e5e510
terminal.border #a6a6a622
terminal.foreground #f4f4f4
terminal.selectionBackground #ffffff16
terminal.tab.activeBorder #faa41a
terminalCursor.background #faa41a
terminalCursor.foreground #000000
textLink.foreground #faa41a
titleBar.activeBackground #2b2b2b
titleBar.activeForeground #9a9a9a
titleBar.border #00000000
titleBar.inactiveBackground #0000005a
titleBar.inactiveForeground #71717199
tree.indentGuidesStroke #0000003a
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000026 #32d39674
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #a0a4a5 —
variable.parameter.function.language.special.self.python #4ab089 —
storage.modifier.lifetime.rust #a0a4a5 —
support.function.std.rust #59d92bc1 —
entity.name.lifetime.rust #4ab089 —
variable.language.rust #32d39674 —
support.constant.edge #ffa700 —
constant.other.character-class.regexp #32d39674 —
keyword.operator.quantifier.regexp #cc8296 —
punctuation.definition.string.begin,punctuation.definition.string.end #b5ba0e —
variable.parameter.function #a0a4a5 —
comment markup.link #bfcbcf5a —
markup.changed.diff #4ab089 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #59d92bc1 —
markup.inserted.diff #b5ba0e —
markup.deleted.diff #32d39674 —
meta.function.c,meta.function.cpp #32d39674 —
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 #a0a4a5 —
punctuation.separator.key-value #a0a4a5 —
keyword.operator.expression.import #59d92bc1 —
support.constant.math #4ab089 —
support.constant.property.math #cc8296 —
variable.other.constant #4ab089 —
storage.type.annotation.java, storage.type.object.array.java #4ab089 —
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 #a0a4a5 —
meta.method.java #59d92bc1 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #4ab089 —
keyword.operator.instanceof.java #ffa700 —
meta.definition.variable.name.java #32d39674 —
keyword.operator.logical #a0a4a5 —
keyword.operator.bitwise #a0a4a5 —
keyword.operator.channel #a0a4a5 —
support.constant.property-value.scss,support.constant.property-value.css #cc8296 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #a0a4a5 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #cc8296 —
punctuation.separator.list.comma.css #a0a4a5 —
support.constant.color.w3c-standard-color-name.css #cc8296 —
support.type.vendored.property-name.css #a0a4a5 —
support.module.node,support.type.object.module,support.module.node #4ab089 —
entity.name.type.module #4ab089 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #32d39674 —
support.constant.json #cc8296 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ffa700 —
support.type.object.console #32d39674 —
support.variable.property.process #cc8296 —
entity.name.function,support.function.console #59d92bc1 —
keyword.operator.misc.rust #a0a4a5 —
keyword.operator.sigil.rust #ffa700 —
keyword.operator.delete #ffa700 —
support.type.object.dom #a0a4a5 —
support.variable.dom,support.variable.property.dom #32d39674 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #a0a4a5 —
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 #ffa700 —
punctuation.separator.delimiter #a0a4a5 —
punctuation.separator.c,punctuation.separator.cpp #ffa700 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #a0a4a5 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ffa700 —
variable.parameter.function.language.python #cc8296 —
support.type.python #a0a4a5 —
keyword.operator.logical.python #ffa700 —
variable.parameter.function.python #cc8296 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #a0a4a5 —
meta.function-call.generic.python #59d92bc1 —
constant.character.format.placeholder.other.python #cc8296 —
keyword.operator.assignment.compound #ffa700 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #a0a4a5 —
entity.name.namespace #4ab089 —
variable.language #4ab089 —
token.variable.parameter.java #a0a4a5 —
import.storage.java #4ab089 —
token.package.keyword #ffa700 —
entity.name.function, meta.require, support.function.any-method, variable.function #59d92bc1 —
entity.name.type.namespace #4ab089 —
support.class, entity.name.type.class #4ab089 —
entity.name.class.identifier.namespace.type #4ab089 —
entity.name.class, variable.other.class.js, variable.other.class.ts #4ab089 —
variable.other.class.php #32d39674 —
control.elements, keyword.operator.less #cc8296 —
keyword.other.special-method #59d92bc1 —
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 #ffa700 —
token.storage.type.java #4ab089 —
support.type.property-name #a0a4a5 —
support.constant.property-value #a0a4a5 —
support.constant.font-name #cc8296 —
entity.other.inherited-class #4ab089 —
constant.other.symbol #a0a4a5 —
punctuation.definition.constant #cc8296 —
entity.name.tag #32d39674 —
entity.other.attribute-name #cc8296 —
entity.other.attribute-name.id #59d92bc1
entity.other.attribute-name.class.css #cc8296
markup.heading punctuation.definition.heading, entity.name.section #59d92bc1 —
keyword.other.unit #32d39674 —
markup.bold,todo.bold #cc8296 —
punctuation.definition.bold #4ab089 —
markup.italic, punctuation.definition.italic,todo.emphasis #ffa700 —
entity.name.section.markdown #32d39674 —
punctuation.definition.heading.markdown #32d39674 —
punctuation.definition.list.begin.markdown #32d39674 —
markup.heading.setext #a0a4a5 —
punctuation.definition.bold.markdown #cc8296 —
markup.inline.raw.markdown #b5ba0e —
markup.inline.raw.string.markdown #b5ba0e —
punctuation.definition.list.markdown #32d39674 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #32d39674 —
beginning.punctuation.definition.list.markdown #32d39674 —
punctuation.definition.metadata.markdown #32d39674 —
markup.underline.link.markdown,markup.underline.link.image.markdown #ffa700 —
string.other.link.title.markdown,string.other.link.description.markdown #59d92bc1 —
constant.character.escape #a0a4a5 —
punctuation.section.embedded, variable.interpolation #32d39674 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ffa700 —
invalid.illegal.bad-ampersand.html #a0a4a5 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #32d39674 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #32d39674 —
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 #b5ba0e —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #a0a4a5 —
support.type.property-name.json #32d39674 —
support.type.property-name.json punctuation #32d39674 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ffa700 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ffa700 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #4ab089 —
keyword.operator.error-control.php #ffa700 —
keyword.operator.type.php #ffa700 —
punctuation.section.array.begin.php #a0a4a5 —
punctuation.section.array.end.php #a0a4a5 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #4ab089 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #59d92bc1 —
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 #a0a4a5 —
support.constant.core.rust #cc8296 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #cc8296 —
entity.name.goto-label.php,support.other.php #59d92bc1 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #a0a4a5 —
keyword.operator.regexp.php #ffa700 —
keyword.operator.comparison.php #a0a4a5 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ffa700 —
meta.function.decorator.python #59d92bc1 —
support.token.decorator.python,meta.function.decorator.identifier.python #a0a4a5 —
function.parameter #a0a4a5 —
function.parameter.ruby, function.parameter.cs #a0a4a5 —
constant.language.symbol.ruby #a0a4a5 —
inline-color-decoration rgb-value #cc8296 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #4ab089 —
block.scope.end,block.scope.begin #a0a4a5 —
entity.name.variable.local.cs #32d39674 —
token.info-token #59d92bc1 —
token.error-token #f44747 —
token.debug-token #ffa700 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ffa700 —
meta.template.expression #a0a4a5 —
keyword.operator.module #ffa700 —
support.type.type.flowtype #59d92bc1 —
support.type.primitive #4ab089 —
meta.property.object #32d39674 —
variable.parameter.function.js #32d39674 —
keyword.other.template.begin #b5ba0e —
keyword.other.template.end #b5ba0e —
keyword.other.substitution.begin #b5ba0e —
keyword.other.substitution.end #b5ba0e —
keyword.operator.assignment #a0a4a5 —
keyword.operator.assignment.go #4ab089 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ffa700 —
entity.name.package.go #4ab089 —
support.type.prelude.elm #a0a4a5 —
support.constant.elm #cc8296 —
punctuation.quasi.element #ffa700 —
constant.character.entity #32d39674 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #a0a4a5 —
entity.global.clojure #4ab089 —
meta.symbol.clojure #32d39674 —
constant.keyword.clojure #a0a4a5 —
meta.arguments.coffee, variable.parameter.function.coffee #32d39674 —
meta.scope.prerequisites.makefile #32d39674 —
storage.modifier.import.groovy #4ab089 —
meta.method.groovy #59d92bc1 —
meta.definition.variable.name.groovy #32d39674 —
meta.definition.class.inherited.classes.groovy #b5ba0e —
support.variable.semantic.hlsl #4ab089 —
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 #ffa700 —
text.variable, text.bracketed #32d39674 —
support.type.swift, support.type.vb.asp #4ab089 —
entity.name.function.xi #4ab089 —
entity.name.class.xi #a0a4a5 —
constant.character.character-class.regexp.xi #32d39674 —
constant.regexp.xi #ffa700 —
keyword.control.xi #a0a4a5 —
beginning.punctuation.definition.quote.markdown.xi #b5ba0e —
beginning.punctuation.definition.list.markdown.xi #bfcbcf5a —
constant.character.xi #59d92bc1 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #bfcbcf5a —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #4ab089 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #32d39674 —
meta.brace.square #a0a4a5 —
comment, punctuation.definition.comment #bfcbcf5a italic
markup.quote.markdown #bfcbcf5a —
punctuation.definition.block.sequence.item.yaml #a0a4a5 —
constant.language.symbol.elixir #a0a4a5 —
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 } !` ;
}
Cosmic Pop Dark | Coding Theme