Skip to main content
Home Theme VS Code Black-panther-theme Perfect Black theme that why called a BLACK PANTHER
Black-panther-theme | Coding Theme
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
activityBar.activeBackground #0a0a0a activityBar.background #0a0a0a activityBar.border #1f1f1f activityBar.foreground #ffffff activityBar.inactiveForeground #555555 activityBarBadge.background #0087ff 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 #65a3e4cf — variable.other.generic-type.haskell #ffa5e99b — storage.type.haskell #40fdda9f — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Black-panther-theme — black-panther-theme
activityBarBadge.foreground
#ffffff
badge.background #0087ff
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #b1e2ff
breadcrumb.background #0a0a0a
breadcrumb.focusForeground #b1e2ff
breadcrumb.foreground #8899a3
button.background #1967d2
button.foreground #ffffff
button.hoverBackground #1967d27c
button.secondaryBackground #333333
button.secondaryForeground #cfcfcf
button.secondaryHoverBackground #3333337e
checkbox.background #000000
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #111111
debugExceptionWidget.border #00000000
debugToolBar.background #111111
debugToolBar.border #00000000
diffEditor.border #00000000
diffEditor.insertedTextBackground #79943a33
diffEditor.insertedTextBorder #0a0a0a
diffEditor.removedTextBackground #ff4e4e33
diffEditor.removedTextBorder #0a0a0a
dropdown.background #000000
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #0a0a0a
editor.findMatchBackground #0040ff52
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #ffcc0046
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #66666630
editor.findRangeHighlightBorder #f2f2f200
editor.foldBackground #2831564d
editor.foreground #ffffffbf
editor.hoverHighlightBackground #a0cfff40
editor.inactiveSelectionBackground #333333
editor.lineHighlightBackground #1110173c
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #f96f6f0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #333333
editor.selectionHighlightBackground #ffadad26
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #ff000034
editor.wordHighlightBorder #ff000000
editor.wordHighlightStrongBackground #2cff0046
editor.wordHighlightStrongBorder #ff000000
editorBracketMatch.background #ff97281c
editorBracketMatch.border #ff9077
editorCodeLens.foreground #9ea19c9b
editorCursor.background #000000
editorCursor.foreground #b6b6b6
editorError.background #7b444200
editorError.border #ffffff00
editorError.foreground #ff4620
editorGroup.border #00000070
editorGroup.emptyBackground #0a0a0a
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #0a0a0a
editorGroupHeader.tabsBorder #ff787800
editorGutter.addedBackground #14ba0f
editorGutter.background #0a0a0a
editorGutter.commentRangeForeground #eeeeee
editorGutter.deletedBackground #c41f26
editorGutter.foldingControlForeground #eeeeee
editorGutter.modifiedBackground #005cad
editorHoverWidget.background #111111
editorHoverWidget.border #00000000
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #c4c4c4a1
editorIndentGuide.background #333333
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #5186b6
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #515151
editorLink.activeForeground #54b2ff
editorMarkerNavigation.background #111111
editorMarkerNavigationError.background #ff6262
editorMarkerNavigationInfo.background #6dbaff
editorMarkerNavigationWarning.background #ffda4a
editorOverviewRuler.background #5e5e5e00
editorOverviewRuler.border #c0afaf00
editorRuler.foreground #333333
editorSuggestWidget.background #111111
editorSuggestWidget.border #45454544
editorSuggestWidget.foreground #8da5b6
editorSuggestWidget.highlightForeground #0087ff
editorSuggestWidget.selectedBackground #0087ff30
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffe46c
editorWhitespace.foreground #515151
editorWidget.background #111111
editorWidget.foreground #888888
editorWidget.resizeBorder #00000000
focusBorder #00000000
foreground #999999
gitDecoration.addedResourceForeground #a1ffb2
gitDecoration.conflictingResourceForeground #95a5ff
gitDecoration.deletedResourceForeground #ff6e6e
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #ffeb9e
gitDecoration.stageDeletedResourceForeground #f06f59
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #999999
input.background #000000
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #2968ff
inputOption.activeBorder #00000000
inputOption.activeForeground #ffffff
list.activeSelectionBackground #111111
list.activeSelectionForeground #ffffff
list.dropBackground #111111
list.focusBackground #0087ff2c
list.focusForeground #ffffff
list.highlightForeground #507cff
list.hoverBackground #00000000
list.hoverForeground #ffffff
list.inactiveSelectionBackground #111111
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #222222
listFilterWidget.noMatchesOutline #00000000
listFilterWidget.outline #00000000
menu.background #111111
menu.border #00000000
menu.foreground #dddddd
menu.selectionBackground #0a0a0a
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #ffffff54
menubar.selectionBackground #111111
menubar.selectionBorder #e60f0f00
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #003634
merge.currentHeaderBackground #004744
merge.incomingContentBackground #001c3d
merge.incomingHeaderBackground #002a5e
minimap.background #0a0a0a
minimap.errorHighlight #ff4620
minimap.findMatchHighlight #0040ff52
minimap.selectionHighlight #333333
minimap.warningHighlight #ffe46c
minimapGutter.addedBackground #14ba0f
minimapGutter.deletedBackground #c41f26
minimapGutter.modifiedBackground #005cad
notificationCenter.border #00000000
notificationCenterHeader.background #111111
notificationCenterHeader.foreground #fbfbfb
notifications.background #111111
notifications.border #00000000
notifications.foreground #cccccc
notificationsErrorIcon.foreground #FF6D6D
notificationsInfoIcon.foreground #7EE2FF
notificationsWarningIcon.foreground #ffc047
notificationToast.border #47474700
panel.background #000000
panel.border #000000
panelSection.border #ffffff0a
panelTitle.activeBorder #0087ff
panelTitle.activeForeground #0087ff
panelTitle.inactiveForeground #b6b6b6
peekView.border #7bb4d900
peekViewEditor.background #111111
peekViewEditor.matchHighlightBackground #ffb30024
peekViewEditor.matchHighlightBorder #00000000
peekViewEditorGutter.background #111111
peekViewResult.background #111111
peekViewResult.fileForeground #b0f0ff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ff3a254d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #111111
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #cbfdff
pickerGroup.border #00000000
pickerGroup.foreground #a7caf2
progressBar.background #0087FF
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #3d3d3d
scrollbarSlider.background #3d3d3d
scrollbarSlider.hoverBackground #3d3d3d
selection.background #0087ff70
settings.focusedRowBackground #ffffff07
settings.headerForeground #999999
sideBar.background #0a0a0a
sideBar.border #ffffff26
sideBar.dropBackground #111111
sideBar.foreground #999999
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #00000000
sideBarSectionHeader.foreground #0087ff
sideBarTitle.foreground #dddddd
statusBar.background #0a0a0a
statusBar.border #0a0a0a
statusBar.debuggingBackground #2c1414
statusBar.debuggingBorder #0a0a0a
statusBar.debuggingForeground #999999
statusBar.foreground #777777
statusBar.noFolderBackground #241528
statusBar.noFolderBorder #0a0a0a
statusBar.noFolderForeground #999999
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #0a0a0a
statusBarItem.remoteForeground #777777
tab.activeBackground #0a0a0a
tab.activeBorder #00000000
tab.activeBorderTop #777777
tab.activeForeground #dad4f7
tab.border #25252600
tab.hoverBackground #111111
tab.hoverBorder #00000000
tab.hoverForeground #ffffff
tab.inactiveBackground #0a0a0a
tab.inactiveForeground #999999
terminal.ansiBlack #3d3d3d
terminal.ansiBlue #1584ff
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #95ccff
terminal.ansiBrightCyan #8ef4ff
terminal.ansiBrightGreen #97ffb1
terminal.ansiBrightMagenta #ff9aff
terminal.ansiBrightRed #ff6767
terminal.ansiBrightWhite #c9c9c9
terminal.ansiBrightYellow #ffce00
terminal.ansiCyan #0ae1ff
terminal.ansiGreen #00ff64
terminal.ansiMagenta #ff02ff
terminal.ansiRed #ff3333
terminal.ansiWhite #a3a3a3
terminal.ansiYellow #ffe779
terminal.border #ffffff0a
terminal.foreground #fbfbfb74
terminal.selectionBackground #2222222a
terminalCursor.background #333333
terminalCursor.foreground #ffffff
textLink.foreground #1967d2
titleBar.activeBackground #0a0a0a
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #0a0a0a
titleBar.inactiveForeground #999999
tree.indentGuidesStroke #333333
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000054 #65a3e4cf
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffffbf —
variable.parameter.function.language.special.self.python #8dc9fde5 —
storage.modifier.lifetime.rust #ffffffbf —
support.function.std.rust #ff9090d7 —
entity.name.lifetime.rust #8dc9fde5 —
variable.language.rust #65a3e4cf —
support.constant.edge #ffa5e99b —
constant.other.character-class.regexp #65a3e4cf —
keyword.operator.quantifier.regexp #40fdda9f —
punctuation.definition.string.begin,punctuation.definition.string.end #ffae73d9 —
variable.parameter.function #ffffffbf —
comment markup.link #ffffff76 —
markup.changed.diff #8dc9fde5 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #ff9090d7 —
markup.inserted.diff #ffae73d9 —
markup.deleted.diff #65a3e4cf —
meta.function.c,meta.function.cpp #65a3e4cf —
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 #ffffffbf —
punctuation.separator.key-value #ffffffbf —
keyword.operator.expression.import #ff9090d7 —
support.constant.math #8dc9fde5 —
support.constant.property.math #40fdda9f —
variable.other.constant #8dc9fde5 —
storage.type.annotation.java, storage.type.object.array.java #8dc9fde5 —
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 #ffffffbf —
meta.method.java #ff9090d7 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #8dc9fde5 —
keyword.operator.instanceof.java #fa5e99bf —
meta.definition.variable.name.java #65a3e4cf —
keyword.operator.logical #ffffff —
keyword.operator.bitwise #ffffff —
keyword.operator.channel #ffffff —
support.constant.property-value.scss,support.constant.property-value.css #40fdda9f —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ffffff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #40fdda9f —
punctuation.separator.list.comma.css #ffffffbf —
support.constant.color.w3c-standard-color-name.css #40fdda9f —
support.type.vendored.property-name.css #ffffff —
support.module.node,support.type.object.module,support.module.node #8dc9fde5 —
entity.name.type.module #8dc9fde5 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #65a3e4cf —
support.constant.json #40fdda9f —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ffa5e99b —
support.type.object.console #65a3e4cf —
support.variable.property.process #40fdda9f —
entity.name.function,support.function.console #ff9090d7 —
keyword.operator.misc.rust #ffffffbf —
keyword.operator.sigil.rust #ffa5e99b —
keyword.operator.delete #ffa5e99b —
support.type.object.dom #ffffff —
support.variable.dom,support.variable.property.dom #65a3e4cf —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ffffff —
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 #ffa5e99b —
punctuation.separator.delimiter #ffffffbf —
punctuation.separator.c,punctuation.separator.cpp #ffa5e99b —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ffffff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ffa5e99b —
variable.parameter.function.language.python #40fdda9f —
support.type.python #ffffff —
keyword.operator.logical.python #ffa5e99b —
variable.parameter.function.python #40fdda9f —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ffffffbf —
meta.function-call.generic.python #ff9090d7 —
constant.character.format.placeholder.other.python #40fdda9f —
keyword.operator #ffffffbf —
keyword.operator.assignment.compound #ffa5e99b —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ffffff —
entity.name.namespace #8dc9fde5 —
variable.language #8dc9fde5 —
token.variable.parameter.java #ffffffbf —
import.storage.java #8dc9fde5 —
token.package.keyword #ffa5e99b —
entity.name.function, meta.require, support.function.any-method, variable.function #ff9090d7 —
entity.name.type.namespace #8dc9fde5 —
support.class, entity.name.type.class #8dc9fde5 —
entity.name.class.identifier.namespace.type #8dc9fde5 —
entity.name.class, variable.other.class.js, variable.other.class.ts #8dc9fde5 —
variable.other.class.php #65a3e4cf —
entity.name.type #8dc9fde5 —
keyword.control #ffa5e99b —
control.elements, keyword.operator.less #40fdda9f —
keyword.other.special-method #ff9090d7 —
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 #ffa5e99b —
token.storage.type.java #8dc9fde5 —
support.type.property-name #ffffffbf —
support.constant.property-value #ffffffbf —
support.constant.font-name #40fdda9f —
entity.other.inherited-class #8dc9fde5 —
constant.other.symbol #ffffff —
constant.numeric #40fdda9f —
punctuation.definition.constant #40fdda9f —
entity.name.tag #65a3e4cf —
entity.other.attribute-name #40fdda9f —
entity.other.attribute-name.id #ff9090d7 normal
entity.other.attribute-name.class.css #40fdda9f normal
markup.heading punctuation.definition.heading, entity.name.section #ff9090d7 —
keyword.other.unit #65a3e4cf —
markup.bold,todo.bold #40fdda9f —
punctuation.definition.bold #8dc9fde5 —
markup.italic, punctuation.definition.italic,todo.emphasis #ffa5e99b —
entity.name.section.markdown #65a3e4cf —
punctuation.definition.heading.markdown #65a3e4cf —
punctuation.definition.list.begin.markdown #65a3e4cf —
markup.heading.setext #ffffffbf —
punctuation.definition.bold.markdown #40fdda9f —
markup.inline.raw.markdown #ffae73d9 —
markup.inline.raw.string.markdown #ffae73d9 —
punctuation.definition.list.markdown #65a3e4cf —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #65a3e4cf —
beginning.punctuation.definition.list.markdown #65a3e4cf —
punctuation.definition.metadata.markdown #65a3e4cf —
markup.underline.link.markdown,markup.underline.link.image.markdown #ffa5e99b —
string.other.link.title.markdown,string.other.link.description.markdown #ff9090d7 —
constant.character.escape #ffffff —
punctuation.section.embedded, variable.interpolation #65a3e4cf —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ffa5e99b —
invalid.illegal.bad-ampersand.html #ffffffbf —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #65a3e4cf —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #65a3e4cf —
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 #ffae73d9 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ffffff —
support.type.property-name.json #65a3e4cf —
support.type.property-name.json punctuation #65a3e4cf —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ffa5e99b —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ffa5e99b —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #8dc9fde5 —
keyword.operator.error-control.php #ffa5e99b —
keyword.operator.type.php #ffa5e99b —
punctuation.section.array.begin.php #ffffffbf —
punctuation.section.array.end.php #ffffffbf —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #8dc9fde5 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #ff9090d7 —
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 #ffffffbf —
support.constant.core.rust #40fdda9f —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #40fdda9f —
entity.name.goto-label.php,support.other.php #ff9090d7 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ffffff —
keyword.operator.regexp.php #ffa5e99b —
keyword.operator.comparison.php #ffffff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ffa5e99b —
meta.function.decorator.python #ff9090d7 —
support.token.decorator.python,meta.function.decorator.identifier.python #ffffff —
function.parameter #ffffffbf —
function.parameter.ruby, function.parameter.cs #ffffffbf —
constant.language.symbol.ruby #ffffff —
inline-color-decoration rgb-value #40fdda9f —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #8dc9fde5 —
block.scope.end,block.scope.begin #ffffffbf —
storage.type.cs #8dc9fde5 —
entity.name.variable.local.cs #65a3e4cf —
token.info-token #ff9090d7 —
token.warn-token #40fdda9f —
token.error-token #f44747 —
token.debug-token #ffa5e99b —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ffa5e99b —
meta.template.expression #ffffffbf —
keyword.operator.module #ffa5e99b —
support.type.type.flowtype #ff9090d7 —
support.type.primitive #8dc9fde5 —
meta.property.object #65a3e4cf —
variable.parameter.function.js #65a3e4cf —
keyword.other.template.begin #ffae73d9 —
keyword.other.template.end #ffae73d9 —
keyword.other.substitution.begin #ffae73d9 —
keyword.other.substitution.end #ffae73d9 —
keyword.operator.assignment #ffffff —
keyword.operator.assignment.go #8dc9fde5 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ffa5e99b —
entity.name.package.go #8dc9fde5 —
support.type.prelude.elm #ffffff —
support.constant.elm #40fdda9f —
punctuation.quasi.element #ffa5e99b —
constant.character.entity #65a3e4cf —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ffffff —
entity.global.clojure #8dc9fde5 —
meta.symbol.clojure #65a3e4cf —
constant.keyword.clojure #ffffff —
meta.arguments.coffee, variable.parameter.function.coffee #65a3e4cf —
meta.scope.prerequisites.makefile #65a3e4cf —
source.makefile #8dc9fde5 —
storage.modifier.import.groovy #8dc9fde5 —
meta.method.groovy #ff9090d7 —
meta.definition.variable.name.groovy #65a3e4cf —
meta.definition.class.inherited.classes.groovy #ffae73d9 —
support.variable.semantic.hlsl #8dc9fde5 —
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 #ffa5e99b —
text.variable, text.bracketed #65a3e4cf —
support.type.swift, support.type.vb.asp #8dc9fde5 —
entity.name.function.xi #8dc9fde5 —
entity.name.class.xi #ffffff —
constant.character.character-class.regexp.xi #65a3e4cf —
constant.regexp.xi #ffa5e99b —
keyword.control.xi #ffffff —
beginning.punctuation.definition.quote.markdown.xi #ffae73d9 —
beginning.punctuation.definition.list.markdown.xi #ffffff76 —
constant.character.xi #ff9090d7 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #ffffff76 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #8dc9fde5 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #65a3e4cf —
meta.brace.square #ffffffbf —
comment, punctuation.definition.comment #ffffff76 italic
markup.quote.markdown #ffffff76 —
punctuation.definition.block.sequence.item.yaml #ffffffbf —
constant.language.symbol.elixir #ffffff —
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 } !` ;
}