Skip to main content
Home Theme VS Code Black Void a theme for those of us that code late into the night, easy on the eyes with colorful syntax highlighting
Black Void | 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 #8f8f8f26 activityBar.activeBorder #8f8f8f activityBar.background #0e0e0e activityBar.border #050505 activityBar.dropBorder #54545433 activityBar.foreground #b9b9b9 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle support.module.elm, entity.other.inherited-class.python, variable.other.object, support.other.namespace.php, entity.other.attribute-name.namespace.xml, record.accessor, entity.name.record.field.accessor, storage.modifier.import.java, storage.modifier.import.groovy, meta.import.swift entity.name.type.swift, meta.member.access.python, variable.other.property.ts, variable.other.property.js, constant.language.symbol.elixir, punctuation.tag.liquid support.class.liquid, meta.scriptblock.powershell meta.group.simple.subexpression.powershell meta.group.simple.subexpression.powershell meta.scriptblock.powershell meta.scriptblock.powershell support.variable.automatic.powershell punctuation.definition.variable.powershell, meta.scriptblock.powershell meta.group.simple.subexpression.powershell meta.group.simple.subexpression.powershell meta.scriptblock.powershell meta.scriptblock.powershell support.variable.automatic.powershell #fc9867 — entity.name.type #b7d175 — comment, punctuation.definition.comment, string.quoted.docstring.multi, comment.block.documentation source
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBar.inactiveForeground
#484f4b
activityBarBadge.background #8f8f8f
activityBarBadge.foreground #0e0e0e
activityBarTop.activeBorder #8f8f8f
activityBarTop.dropBorder #54545433
activityBarTop.foreground #8f8f8f
activityBarTop.inactiveForeground #434343
badge.background #8f8f8f
badge.foreground #0e0e0e
breadcrumb.background #0c0c0c
breadcrumbPicker.background #0e0e0e
button.background #8f8f8f75
button.border #8f8f8f75
button.foreground #c7c7c7
button.hoverBackground #9b9b9b90
button.secondaryBackground #8f8f8f20
button.secondaryForeground #c7c7c7
button.secondaryHoverBackground #8f8f8f35
charts.blue #78dce8
charts.foreground #c7c7c7
charts.green #a9dc76
charts.lines #c7c7c7
charts.orange #fc9867
charts.purple #e47cdd
charts.red #fc6a67
charts.yellow #ffd866
checkbox.foreground #c7c7c7
commandCenter.activeBackground #21212160
commandCenter.activeForeground #adadad90
commandCenter.background #0e0e0e
commandCenter.border #050505
commandCenter.foreground #545454
contrastActiveBorder #00000000
contrastBorder #00000000
debugExceptionWidget.background #212121
debugExceptionWidget.border #050505
debugToolBar.background #000000
debugToolBar.border #0e0e0e00
descriptionForeground #c7c7c74d
diffEditor.border #050505
diffEditor.diagonalFill #212121
diffEditor.insertedLineBackground #a9dc761a
diffEditor.insertedTextBackground #a9dc7626
diffEditor.insertedTextBorder #00000000
diffEditor.move.border #ffd8664d
diffEditor.moveActive.border #ffd866b3
diffEditor.removedLineBackground #fc6a671a
diffEditor.removedTextBackground #fc6a6726
diffEditor.removedTextBorder #00000000
diffEditorGutter.insertedLineBackground #00000000
diffEditorGutter.removedLineBackground #00000000
diffEditorOverview.insertedForeground #a9dc7625
diffEditorOverview.removedForeground #fc6a6730
disabledForeground #c7c7c74d
dropdown.background #191919
dropdown.border #2e2e2e
dropdown.foreground #c7c7c7
dropdown.listBackground #191919
editor.background #0a0a0a
editor.findMatchBackground #8f8f8f30
editor.findMatchBorder #8f8f8f60
editor.findMatchHighlightBackground #8f8f8f3d
editor.findMatchHighlightBorder #8f8f8f5c
editor.foldBackground #0e0e0e
editor.foreground #c7c7c7
editor.hoverHighlightBackground #8f8f8f4d
editor.inactiveSelectionBackground #8f8f8f4d
editor.lineHighlightBackground #8f8f8f0f
editor.lineHighlightBorder #8f8f8f26
editor.linkedEditingBackground #68e8f833
editor.rangeHighlightBackground #8f8f8f3d
editor.selectionBackground #8f8f8f4d
editor.selectionForeground #c7c7c7
editor.selectionHighlightBackground #8f8f8f15
editor.selectionHighlightBorder #8f8f8f4d
editor.wordHighlightBackground #8f8f8f26
editor.wordHighlightBorder #8f8f8f5c
editor.wordHighlightStrongBackground #8f8f8f4d
editorBracketHighlight.foreground1 #ffd866
editorBracketHighlight.foreground2 #e991e3
editorBracketHighlight.foreground3 #78dce8
editorBracketHighlight.foreground4 #ab9df2
editorBracketHighlight.foreground5 #78e8c6
editorBracketHighlight.foreground6 #ff6188
editorBracketHighlight.unexpectedBracket.foreground #fc6a67
editorBracketMatch.background #8f8f8f4d
editorBracketMatch.border #8f8f8f73
editorCodeLens.foreground #adadad80
editorCursor.background #8f8f8f
editorCursor.foreground #ffd866
editorError.border #00000000
editorError.foreground #fc6a67
editorGhostText.border #00000000
editorGhostText.foreground #c7c7c770
editorGroup.border #050505
editorGroup.dropBackground #8f8f8f15
editorGroupHeader.border #00000000
editorGroupHeader.noTabsBackground #0e0e0e
editorGroupHeader.tabsBackground #0e0e0e
editorGroupHeader.tabsBorder #000000
editorGutter.addedBackground #a9dc76cc
editorGutter.background #0a0a0a
editorGutter.commentRangeForeground #212121
editorGutter.deletedBackground #fc6a67cc
editorGutter.modifiedBackground #78dce8cc
editorHoverWidget.background #212121
editorHoverWidget.border #050505
editorIndentGuide.activeBackground1 #545454cc
editorIndentGuide.background1 #54545433
editorInfo.border #00000000
editorInlayHint.background #adadad20
editorInlayHint.foreground #adadad90
editorInlayHint.typeBackground #ab9df230
editorInlayHint.typeForeground #ab9df2aa
editorLineNumber.activeForeground #919191
editorLineNumber.foreground #373737
editorLink.activeForeground #c7c7c7
editorMarkerNavigation.background #0e0e0e
editorMarkerNavigationError.background #fc6a6790
editorMarkerNavigationInfo.background #78dce890
editorMarkerNavigationWarning.background #ffd86690
editorOverviewRuler.addedForeground #a9dc7680
editorOverviewRuler.border #050505
editorOverviewRuler.deletedForeground #fc6a6780
editorOverviewRuler.errorForeground #fc6a67
editorOverviewRuler.incomingContentForeground #a9dc7680
editorOverviewRuler.infoForeground #78dce880
editorOverviewRuler.modifiedForeground #78dce880
editorOverviewRuler.selectionHighlightForeground #8f8f8f
editorOverviewRuler.warningForeground #ffd866
editorRuler.foreground #54545433
editorStickyScroll.border #050505
editorStickyScrollHover.background #232323
editorSuggestWidget.background #0e0e0e
editorSuggestWidget.border #050505
editorSuggestWidget.foreground #adadad
editorSuggestWidget.highlightForeground #ffd866
editorSuggestWidget.selectedBackground #8f8f8f4d
editorUnnecessaryCode.border #00000000
editorUnnecessaryCode.opacity #000000aa
editorWarning.border #00000000
editorWarning.foreground #ffd866
editorWhitespace.foreground #54545460
editorWidget.background #212121
editorWidget.resizeBorder #0d0d0d
errorForeground #fc6a67
extensionButton.background #8f8f8f60
extensionButton.foreground #c7c7c7
extensionButton.hoverBackground #8f8f8f90
extensionButton.prominentBackground #8f8f8f9d
extensionButton.prominentForeground #c7c7c7
extensionButton.prominentHoverBackground #8f8f8f
focusBorder #474747
foreground #adadadAA
gitDecoration.conflictingResourceForeground #8f8f8f
gitDecoration.deletedResourceForeground #fc6a67
gitDecoration.ignoredResourceForeground #545454
gitDecoration.modifiedResourceForeground #78dce8
gitDecoration.untrackedResourceForeground #a9dc76
icon.foreground #adadadAA
input.background #191919
input.border #2e2e2e
input.foreground #c7c7c7
input.placeholderForeground #616161
inputValidation.errorBackground #212121
inputValidation.errorBorder #ffd866
inputValidation.infoBackground #212121
inputValidation.infoBorder #8f8f8f
inputValidation.warningBackground #212121
inputValidation.warningBorder #ffd866
keybindingLabel.background #212121
keybindingLabel.border #545454
keybindingLabel.bottomBorder #545454
keybindingLabel.foreground #878787
list.activeSelectionBackground #3b3b3b73
list.activeSelectionForeground #c7c7c7
list.dropBackground #8f8f8f15
list.errorForeground #fc6a67
list.focusBackground #8f8f8f40
list.focusForeground #adadad
list.highlightForeground #ffd866
list.hoverBackground #2e2e2e33
list.hoverForeground #d3d3d3
list.inactiveSelectionBackground #3b3b3b40
list.inactiveSelectionForeground #c7c7c7
list.warningForeground #ffd866
menu.background #212121
menu.border #050505
menu.foreground #a1a1a1
menu.selectionForeground #ededed
menu.separatorBackground #05050565
menubar.selectionBackground #212121
menubar.selectionForeground #adadad
merge.border #050505
merge.commonContentBackground #ffd86630
merge.commonHeaderBackground #ffd86680
merge.currentContentBackground #a9dc7630
merge.currentHeaderBackground #a9dc7680
merge.incomingContentBackground #78dce830
merge.incomingHeaderBackground #78dce880
minimap.background #0a0a0a
minimap.errorHighlight #fc6a67
minimap.findMatchHighlight #8f8f8fce
minimap.selectionHighlight #8f8f8fce
minimap.selectionOccurrenceHighlight #8f8f8fce
minimap.warningHighlight #ffd866
minimapGutter.addedBackground #a9dc76
minimapGutter.deletedBackground #fc6a67
minimapGutter.modifiedBackground #78dce8
notificationCenter.border #00000000
notificationCenterHeader.background #151515
notificationCenterHeader.foreground #dedede
notificationLink.foreground #ffd866
notifications.background #0d0d0d
notifications.border #242424cb
notifications.foreground #cccccc
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #4b4b4b00
panel.background #0e0e0e
panel.border #050505
panel.dropBorder #54545480
panelInput.border #2e2e2e
panelSection.border #050505
panelSectionHeader.background #191919
panelSectionHeader.border #050505
panelSectionHeader.foreground #c7c7c7
panelTitle.activeBorder #8f8f8f
panelTitle.activeForeground #8f8f8f
panelTitle.inactiveForeground #545454
peekView.border #050505
peekViewEditor.background #1e1e1e
peekViewEditor.matchHighlightBackground #21212140
peekViewEditor.matchHighlightBorder #00000000
peekViewEditorGutter.background #1e1e1e
peekViewEditorStickyScroll.background #1e1e1e
peekViewResult.background #1a1a1a
peekViewResult.fileForeground #c7c7c7
peekViewResult.lineForeground #adadad
peekViewResult.matchHighlightBackground #8f8f8f80
peekViewResult.selectionBackground #8f8f8f33
peekViewResult.selectionForeground #c7c7c7
peekViewTitle.background #212121
peekViewTitleDescription.foreground #c7c7c7
peekViewTitleLabel.foreground #c7c7c7
pickerGroup.border #050505
pickerGroup.foreground #c7c7c7
profileBadge.background #8f8f8f
profileBadge.foreground #0e0e0e
progressBar.background #ffd866
quickInput.background #1c1c1c
quickInput.foreground #c7c7c7b3
quickInputList.focusBackground #54545473
quickInputList.focusForeground #ededed
quickInputList.focusIconForeground #545454
quickInputTitle.background #0e0e0e
sash.hoverBorder #8f8f8f50
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #8f8f8f40
scrollbarSlider.background #8f8f8f20
scrollbarSlider.hoverBackground #8f8f8f30
selection.background #8f8f8f60
settings.headerForeground #8f8f8f
settings.modifiedItemIndicator #8f8f8f
sideBar.background #0e0e0e
sideBar.border #050505
sideBar.foreground #adadadCC
sideBarSectionHeader.background #0e0e0e
sideBarSectionHeader.border #050505
sideBarSectionHeader.foreground #c7c7c7
sideBarTitle.foreground #545454
statusBar.background #0e0e0e
statusBar.border #050505
statusBar.debuggingBackground #492a1b
statusBar.debuggingForeground #e3c3b3
statusBar.foreground #adadad80
statusBar.noFolderBackground #0e0e0e
statusBar.noFolderBorder #050505
statusBar.noFolderForeground #adadadcc
statusBarItem.activeBackground #212121
statusBarItem.errorBackground #fc6a67
statusBarItem.errorForeground #620402
statusBarItem.errorHoverBackground #fc8380
statusBarItem.hoverBackground #adadad1a
statusBarItem.offlineBackground #e991e3
statusBarItem.offlineForeground #661461
statusBarItem.offlineHoverBackground #eda6e8
statusBarItem.prominentBackground #8f8f8f
statusBarItem.prominentForeground #101010
statusBarItem.prominentHoverBackground #9c9c9c
statusBarItem.remoteBackground #78e8c6
statusBarItem.remoteForeground #0e533e
statusBarItem.remoteHoverBackground #8eeccf
statusBarItem.warningBackground #ffd866
statusBarItem.warningForeground #664c00
statusBarItem.warningHoverBackground #ffdf80
tab.activeBackground #0e0e0e
tab.activeBorder #0e0e0e
tab.activeBorderTop #8f8f8f
tab.activeForeground #8f8f8f
tab.border #050505
tab.hoverBackground #0e0e0e
tab.inactiveBackground #0e0e0e
tab.inactiveForeground #545454
tab.lastPinnedBorder #050505
tab.unfocusedActiveBorder #0e0e0e
tab.unfocusedActiveForeground #8f8f8f
tab.unfocusedHoverBackground #0e0e0e
tab.unfocusedInactiveForeground #545454
terminal.ansiBlack #0e0e0e
terminal.ansiBlue #78dce8
terminal.ansiBrightBlack #000000
terminal.ansiBrightBlue #61eeff
terminal.ansiBrightCyan #61ffcf
terminal.ansiBrightGreen #a9f65c
terminal.ansiBrightMagenta #fd7df4
terminal.ansiBrightRed #ff6764
terminal.ansiBrightWhite #fafafa
terminal.ansiBrightYellow #ffd866
terminal.ansiCyan #78e8c6
terminal.ansiGreen #a9dc76
terminal.ansiMagenta #e991e3
terminal.ansiRed #fc6a67
terminal.ansiWhite #c7c7c7
terminal.ansiYellow #ffd866
terminal.background #0e0e0e
terminal.foreground #c7c7c7
terminal.selectionForeground #c7c7c7
terminalCursor.background #0e0e0e
terminalCursor.foreground #ffd866
textBlockQuote.background #78dce834
textBlockQuote.border #78dce8b9
textCodeBlock.background #78dce834
textLink.activeForeground #78dce8
textLink.foreground #78dce8
textPreformat.background #3c3524
textPreformat.foreground #ffd866
textSeparator.foreground #8f8f8f
titleBar.activeBackground #0e0e0e
titleBar.activeForeground #545454
titleBar.border #00000000
titleBar.inactiveBackground #050505
titleBar.inactiveForeground #545454
toolbar.hoverBackground #54545460
tree.indentGuidesStroke #54545470
walkThrough.embeddedEditorBackground #0e0e0e
welcomePage.progress.background #212121
welcomePage.progress.foreground #8f8f8f
welcomePage.tileBackground #adadad10
welcomePage.tileBorder #adadad20
welcomePage.tileHoverBackground #adadad20
widget.shadow #05050530 #717171
constant, support.constant.core.php #fc6a67 —
meta.section.struct.go variable.other.field.go, meta.section.struct.go variable.other.declaration.go, source, support, constant.character.entity.named, meta.jsx.children, source.lua, text.html.derivative, source.graphql meta.selections variable.other.alias.graphql, source.graphql meta.type.interface.graphql meta.type.object.graphql variable.graphql, source.graphql variable.arguments.graphql, JSXNested #adadad —
entity.name.function.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator, punctuation.definition.decorator, meta.decorator variable.other.readwrite.ts, variable.parameter.gdscript, entity.name.variable.parameter, variable.parameter.function-call.python, variable.parameter #5fb7ff —
keyword.control.export, support.type.object.module #ffd866 —
support.function, entity.name.function, meta.function-call, meta.function, meta.method.declaration, meta.function-call support, variable.language.super.ts, source.directive, meta.function-call.generic, meta.method-call.static.php, meta.method-call.php, meta.class storage.type, meta.method.groovy, meta.bracket.square.access, entity.name.function-call.elixir, punctuation.output.liquid support.variable.liquid, meta.function.echo.edge source.js keyword.operator.error-control.js, entity.name.type.variant.gdscript, entity.name.function.powershell #78dce8 —
keyword.control.import, meta.module.name.elm support, meta.import.elm support, keyword.control.at-rule, punctuation.definition.keyword, variable.control.import.include, keyword.other.import.java #ffd866 —
keyword.package.go, keyword.operator.pointer.go, keyword.control, keyword.control.conditional, storage.modifier, keyword.operator.new, keyword.operator.expression, keyword.begin.blade, keyword.end.blade, keyword.blade, keyword.type-alias, keyword.type, support.class.console, keyword.other.await, storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, keyword.other.new, keyword.other.phpdoc, keyword.other.use.php, keyword.operator.logical.python, keyword.other.import.static.groovy, keyword.other.import.groovy, punctuation.definition.attribute.swift, source.svelte meta.scope.tag.main.svelte meta.tag.start.svelte variable.function.svelte, meta.directive.on.svelte entity.name.type.svelte, keyword.other.special-method.elixir, keyword.edge, entity.name.function.edge, support.constant.edge, keyword.other.gdscript, keyword.other.onready.gdscript, source.graphql meta.fragment.graphql keyword.on.graphql, source.graphql meta.type.interface.graphql keyword.implements.graphql, source.graphql meta.type.interface.graphql meta.type.object.graphql meta.type.list.graphql keyword.operator.nulltype.graphql, source.graphql meta.variables.graphql keyword.operator.nulltype.graphql, source.graphql meta.type.interface.graphql meta.type.object.graphql keyword.operator.nulltype.graphql, keyword.operator.class.php, keyword.operator.spread.php, keyword.operator.type.php, keyword.operator.increment-decrement.php, keyword.operator.increment-increment.php, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, keyword.operator.string.php, keyword.operator.ternary.php, keyword.operator.variadic.php, keyword.operator.nullable-type.php, keyword.other.use-as.php, keyword.import.go, keyword.operator.address.go, keyword.operator.null-coalescing, keyword.operator.arrow, keyword.struct.go, keyword.operator.liquid, keyword.operator.optional.ts, keyword.cmake, keyword.codetag.notation #ffd866 —
meta.object-literal.key, variable.object.property #c7c7c7 —
keyword.other.definition.ini, support.type.property-name, entity.name.tag.yaml #ffd866 —
keyword.operator.comparison, storage.type.function.arrow, keyword.operator.lua, keyword.operator.assignment, keyword.operator.relational, keyword.operator.increment, keyword.operator.decrement, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.math #ffd866 —
punctuation, attribute_value, meta.brace, punctuation.definition.parameters, punctuation.definition.template-expression, keyword.operator, keyword.other, punctuation.terminator, punctuation.separator, punctuation.definition.generic.begin, punctuation.definition.generic.end, meta.function.type-declaration, keyword.other.colon.elm, meta.record.field.elm keyword.other.elm, keyword.other.period.elm, meta.tag.xml, meta.tag.preprocessor.xml, punctuation.definition.block, punctuation.accessor, constant.name.attribute.tag.pug, string.interpolated.pug, keyword.other.whitespace.liquid, meta.tag.template.block.twig, meta.tag.template.value.twig, begin.bracket, end.bracket, text.html.twig meta.tag.inline.any, text.html.twig meta.tag.block.any, support.function.construct.begin.blade, support.function.construct.end.blade source.php, support.function.construct.end.blade, meta.function.echo.blade source.php, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, text.html.vue-html meta.tag.block.any, keyword.operator.assignment.tsx, meta.definition.method.signature.java, meta.class.body.groovy, meta.definition.method.groovy meta.method.body.java meta.declaration.assertion.groovy, punctuation.definition.list.begin.erlang, meta.expression.parenthesized, meta.definition.function.swift meta.parameter-clause.swift, source.swift meta.function-call.swift, punctuation.section.embedded.end.swift source.swift, source.lua, meta.function.lua, punctuation.definition.keyword.svelte, source.svelte meta.scope.tag.SpeakerPicture.svelte meta.tag.start.svelte entity.other.attribute-name.svelte, expression.embbeded.vue punctuation.definition.tag.begin.html.vue, expression.embbeded.vue punctuation.definition.tag.end.html.vue, source.graphql meta.type.interface.graphql meta.type.object.graphql meta.type.list.graphql meta.brace.square.graphql, punctuation.output.liquid, text.html.liquid meta.tag.liquid punctuation.definition.tag.end.liquid, JSXAttrs keyword.operator.assignment.jsx, meta.tag.attributes.js keyword.operator.assignment.js #c7c7c760 —
entity.name.package.go, variable.language.this, variable.language.special.self, variable.parameter.function.language.special.self, variable.language.this.php punctuation.definition.variable.php, meta.class.body.php storage.type.php, variable.parameter.function.swift entity.name.function.swift, variable.other.jsdoc, support.variable.drive.powershell #fc9867 —
storage, meta.var.expr storage.type, storage.type.function, keyword.function, storage.type.class, storage.type.property, keyword.other, keyword.local.lua, entity.name.class, meta.function.lua keyword.control.lua, storage.type.enum, storage.type.interface, storage.type.type, entity.name.type.class.java, support.class.php, entity.other.inherited-class.php, entity.name.type.class.groovy, storage.type.rust, entity.name.type.class.swift, source.svelte meta.script.svelte source.ts entity.name.label.ts, meta.directive.on.svelte keyword.control.svelte, storage.type.const.gdscript, storage.type.var.gdscript, source.graphql declaration.meta.type keyword, source.graphql meta.type.interface.graphql keyword.type.graphql, source.graphql keyword.schema.graphql, source.graphql keyword.operation.graphql, source.graphql meta.enum.graphql keyword.enum.graphql, source.graphql meta.fragment.graphql keyword.fragment.graphql, storage.type.trait.php, keyword.type.go, keyword.var.go, storage.type.powershell, keyword.const.go, keyword.storage.modifier #d0d85a —
string, string.template, string.quoted.single, punctuation.definition.string, punctuation.definition.string.template, punctuation.definition.string.begin, punctuation.definition.string.end.html source.js-ignored-vscode, punctuation.definition.string.end.html source.js, punctuation.definition.string.end.html.vue, punctuation.definition.string.end.html source.ts, punctuation.definition.string.end.html source.tsx, punctuation.definition.string.end.html source.js.jsx, punctuation.definition.string.end, string.other.link, constant.character.escape.regexp, variable.parameter.url, constant.other.symbol.quoted.single.erlang, constant.other.symbol.quoted.single.erlang punctuation.definition.symbol.begin.erlang, constant.other.symbol.quoted.single.erlang punctuation.definition.symbol.end.erlang, meta.import.ts punctuation.definition.variable.svelte, punctuation.definition.string.end.html source.css-ignored-vscode, text.html.edge punctuation.definition.variable.js, string.unquoted.plain.out.yaml, string.quoted.single.python punctuation.definition.string.begin.python, string.quoted.single.python punctuation.definition.string.end.python, punctuation.definition.string.end.html source.css, string.quoted.double.html source.css #43c781 —
string.quoted.docstring.multi.python, string.quoted.double.block.python punctuation.definition.string.end.python, string.quoted.double.block.python punctuation.definition.string.begin.python, string.quoted.double.block.python, punctuation.definition.string.begin.python, punctuation.definition.string.end.python #bedcb2 —
entity.name.type, support.type, support.class, storage.type, entity.other.inherited-class, keyword.type, storage.type.java, storage.type.primitive.java, storage.type.generic.java, keyword.other.type, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php source.php, punctuation.section.embedded.end.php, storage.type.object.array.java, storage.type.primitive.groovy, storage.type.groovy, meta.definition.type.body.swift meta.function-call.swift, meta.definition.type.class.swift meta.inheritance-clause.swift, variable.other.constant.elixir, source.graphql declaration.meta.type support, source.graphql meta.selections, source.graphql meta.enum.graphql meta.type.object.graphql constant.character.enum.graphql, source.graphql meta.fragment.graphql entity.name.fragment.graphql, entity.name.type.class.php, entity.name.type.class.python, support.class.php, entity.other.inherited-class.php, entity.other.alias.php, meta.group.simple.subexpression.powershell meta.scriptblock.powershell storage.type.powershell #4dc9a0 —
variable, variable.language, entity.name.type.class.js, entity.name.variable, support.variable.magic, meta.method.body, entity.name.variable, punctuation.definition.variable, meta.class variable.object.property, variable.other.constant entity.name.function, entity.name.variable.tuple-element.cs punctuation.separator.colon.cs, meta.definition.variable.name.groovy, meta.body.struct.cpp, parameter.variable.function.elixir, meta.directive.edge source.js, meta.function.echo.edge source.js, text.html.edge meta.function.echo.edge meta.function-call.js, source.css variable.parameter.keyframe-list.css, source.css meta.property-value.css, source.css.scss meta.at-rule.keyframes.scss entity.name.function.scss, source.css.scss meta.property-value.scss, entity.name.variable.tuple-element, meta.group.simple.subexpression.powershell support.variable.automatic.powershell, support.variable.automatic.powershell, storage.source.cmake, entity.source.cmake #ff6188 —
source.elm constant.type-constructor #ff6188 —
source.elm storage.type #ab9df2 —
entity.name.tag.other.html, entity.name.tag support.class.component, support.class.component.html #ab9df2 —
source.diff meta.diff.header.to-file, source.diff markup.inserted.diff, source.diff punctuation.definition.to-file.diff, source.diff punctuation.definition.inserted.diff #a9dc76 —
source.diff punctuation.definition.from-file.diff, source.diff meta.diff.header.from-file, source.diff markup.deleted.diff, source.diff punctuation.definition.deleted.diff #fc6a67 —
source.diff meta.diff.header.command #78dce8 —
source.diff punctuation.definition.range.diff, source.diff meta.diff.range.unified #fc9867 —
support.variable.liquid, support.class.liquid #ff6188 —
text.html.basic entity.name, source.js-ignored-vscode, entity.name.tag, meta.embedded.block.blade constant.other.php, meta.embedded.block.blade keyword.operator.comparison.php, meta.embedded.block.blade keyword.operator.arithmetic.php, meta.tag.start.svelte keyword.control.svelte, meta.tag.end.svelte keyword.control.svelte #d6511c —
meta.tag.sgml.doctype.html, punctuation.definition.tag, meta.tag.block.any, meta.tag.block.any.html, meta.tag.inline.any, source.css-ignored-vscode, meta.tag.metadata.style.end.html, text.html.vue invalid.illegal.character-not-allowed-here.html, meta.tag.inline.i.start.html, meta.tag.structure.div.start.html, punctuation.definition.tag.end.html.vue, invalid.illegal.character-not-allowed-here.html #78dce8aa —
entity.other.attribute-name, entity.name.tag.liquid, invalid.deprecated.entity.other.attribute-name, meta.embedded.block.blade storage.type.php #ffd866 —
markup.inline.raw.string.markdown, punctuation.definition.raw.markdown, markup.fenced_code.block.markdown, markup.fenced_code.block.markdown punctuation, markup.raw.block.markdown #ab9df2 —
fenced_code.block.language #ab9df2 —
punctuation.definition.list.begin #78dce8 —
punctuation.definition.list.begin #78dce8 —
entity.name.section, markup.heading.setext #ffd866 —
punctuation.definition.heading #ffd866 —
markup.underline.link, markup.underline.link.image #78dce8 —
markup.bold, punctuation.definition.bold #ff6188 bold
markup.strikethrough, punctuation.definition.strikethrough #fc6a67 —
markup.italic, punctuation.definition.italic #fc9867 italic
markup.quote, markup.quote.markdown punctuation.definition.quote.begin #e991e3 —
punctuation.definition.quote.begin #78dce8 —
meta.embedded.block.frontmatter punctuation.definition.tag.begin, meta.embedded.block.frontmatter punctuation.definition.tag.end, meta.embedded.block.frontmatter string.unquoted.plain.out #545454 italic
entity.other.attribute-name.pseudo-class #e991e3 —
entity.other.attribute-name.pseudo-element #e991e3 —
entity.other.attribute-name.class, entity.other.attribute-name.class punctuation.definition.entity #78e8c6 —
entity.other.attribute-name.parent-selector-suffix punctuation.definition.entity #78e8c6 —
support.type.property-name.css, support.type.vendored.property-name, meta.property-list entity.name.tag.css, meta.property-list.scss meta.property-list.scss entity.name.tag.css, meta.property-list meta.property-name, source.css.scss meta.property-list.scss entity.name.tag.css #c7c7c7 —
source.css.scss entity.other.attribute-name.id , source.css entity.other.attribute-name.id , entity.other.attribute-name.id punctuation.definition.entity #ab9df2 —
entity.name.tag.reference, meta.property-list #fc9867 —
keyword.other.unit #fc9867 —
support.constant.property-value, support.constant.font-name, meta.property-value.css, meta.attribute.style.html #fc9867 —
entity.name.tag.css, meta.property-list.scss entity.name.tag.css #d14419 —
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 } !` ;
}