Skip to main content
prisma 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.background #293242 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #16583f activityBarBadge.foreground #ffffff badge.background #064f37 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 #f687b3 — variable.other.generic-type.haskell #08c8bb — storage.type.haskell #a0aec0 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
prisma theme — Prisma Dark Theme
badge.foreground
#ececec
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #293242
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #084d36
button.foreground #ffffff
button.hoverBackground #076b49e9
button.secondaryBackground #661f62
button.secondaryForeground #ffffff
button.secondaryHoverBackground #561852
checkbox.background #1f2632
checkbox.border #00000000
checkbox.foreground #999999
debugExceptionWidget.background #202734
debugExceptionWidget.border #262e3d
debugToolBar.background #202734
debugToolBar.border #262e3d
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #1f2632
dropdown.border #00000000
dropdown.foreground #999999
editor.background #293242
editor.findMatchBackground #515c6a
editor.findMatchBorder #74879f
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #a0aec0
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #38455c
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #29324200
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #2e394d
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #004972b8
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #444444
editorGroup.emptyBackground #293242
editorGroupHeader.border #454545
editorGroupHeader.tabsBackground #293242
editorGroupHeader.tabsBorder #323232
editorGutter.addedBackground #587c0c
editorGutter.background #293242
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #1a202c
editorHoverWidget.border #252c3c
editorHoverWidget.foreground #718096
editorIndentGuide.activeBackground #707070
editorIndentGuide.background #404040
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #c6c6c6
editorLineNumber.foreground #626161
editorLink.activeForeground #256f53
editorMarkerNavigation.background #293242
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #1a202c
editorSuggestWidget.border #252c3c
editorSuggestWidget.foreground #cbd5e0
editorSuggestWidget.highlightForeground #cbd5e0
editorSuggestWidget.selectedBackground #414b5e
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e229
editorWidget.background #222a36
editorWidget.foreground #a9a9a9
editorWidget.resizeBorder #222a36
focusBorder #4a5a75
foreground #a9a9a9
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 #a9a9a9
input.background #1f2632
input.border #00000000
input.foreground #999999
input.placeholderForeground #888888
inputOption.activeBackground #313f56
inputOption.activeBorder #007acc00
inputOption.activeForeground #a1a1a1
list.activeSelectionBackground #094771
list.activeSelectionForeground #ffffff
list.dropBackground #383b3d
list.focusBackground #062f4a
list.focusForeground #cccccc
list.highlightForeground #0097fb
list.hoverBackground #2a2d2e
list.hoverForeground #cccccc
list.inactiveSelectionBackground #37373d
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #653723
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #1a202c
menu.border #00000085
menu.foreground #718096
menu.selectionBackground #414b5e
menu.selectionBorder #00000000
menu.selectionForeground #cbd5e0
menu.separatorBackground #273043
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #293242
merge.commonHeaderBackground #222a38
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #293242
minimap.errorHighlight #f48771
minimap.findMatchHighlight #515c6a
minimap.selectionHighlight #2e394d
minimap.warningHighlight #cca700
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #293242
notificationCenterHeader.background #2d3645
notificationCenterHeader.foreground #cccccc
notifications.background #262e3d
notifications.border #293242
notifications.foreground #cccccc
notificationsErrorIcon.foreground #e43613
notificationsInfoIcon.foreground #0069c7
notificationsWarningIcon.foreground #d17600
notificationToast.border #293242
panel.background #2b3445
panel.border #80808059
panelSection.border #80808059
panelTitle.activeBorder #646464
panelTitle.activeForeground #ffffff
panelTitle.inactiveForeground #e7e7e799
peekView.border #1a202c
peekViewEditor.background #1a202c
peekViewEditor.matchHighlightBackground #07432f
peekViewEditor.matchHighlightBorder #07432f
peekViewEditorGutter.background #1a202c
peekViewResult.background #1a202c
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #151a24
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #3f3f46
pickerGroup.foreground #676868
progressBar.background #586b8e
scrollbar.shadow #293242
scrollbarSlider.activeBackground #354258
scrollbarSlider.background #3c4a62
scrollbarSlider.hoverBackground #37445a
selection.background #3b5177
settings.focusedRowBackground #ffffff07
settings.headerForeground #a9a9a9
sideBar.background #293242
sideBar.dropBackground #383b3d
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #1f2632
statusBar.border #00000000
statusBar.debuggingBackground #733211
statusBar.debuggingForeground #ffffff
statusBar.foreground #7b7b7b
statusBar.noFolderBackground #1f2632
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #095c40
statusBarItem.remoteForeground #ffffff
tab.activeBackground #212834
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #252526
tab.hoverBackground #252e3d
tab.inactiveBackground #293242
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 #80808059
terminal.foreground #cccccc
terminal.selectionBackground #ffffff40
terminalCursor.background #084d36
terminalCursor.foreground #ffffff
textLink.foreground #126fd9
titleBar.activeBackground #293242
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #293242c7
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #f687b3
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #a0aec0 —
variable.parameter.function.language.special.self.python #a0aec0 —
storage.modifier.lifetime.rust #a0aec0 —
support.function.std.rust #61afef —
entity.name.lifetime.rust #a0aec0 —
variable.language.rust #f687b3 —
support.constant.edge #08c8bb —
constant.other.character-class.regexp #f687b3 —
keyword.operator.quantifier.regexp #a0aec0 —
punctuation.definition.string.begin,punctuation.definition.string.end #62b3ed —
variable.parameter.function #a0aec0 —
comment markup.link #687588 —
markup.changed.diff #a0aec0 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #61afef —
markup.inserted.diff #62b3ed —
markup.deleted.diff #f687b3 —
meta.function.c,meta.function.cpp #f687b3 —
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 #a0aec0 —
punctuation.separator.key-value #a0aec0 —
keyword.operator.expression.import #61afef —
support.constant.math #a0aec0 —
support.constant.property.math #a0aec0 —
variable.other.constant #a0aec0 —
storage.type.annotation.java, storage.type.object.array.java #a0aec0 —
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 #a0aec0 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #a0aec0 —
keyword.operator.instanceof.java #08c8bb —
meta.definition.variable.name.java #f687b3 —
keyword.operator.logical #56b6c2 —
keyword.operator.bitwise #56b6c2 —
keyword.operator.channel #56b6c2 —
support.constant.property-value.scss,support.constant.property-value.css #a0aec0 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #56b6c2 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #a0aec0 —
punctuation.separator.list.comma.css #a0aec0 —
support.constant.color.w3c-standard-color-name.css #a0aec0 —
support.type.vendored.property-name.css #56b6c2 —
support.module.node,support.type.object.module,support.module.node #a0aec0 —
entity.name.type.module #a0aec0 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #f687b3 —
support.constant.json #a0aec0 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #08c8bb —
support.type.object.console #f687b3 —
support.variable.property.process #a0aec0 —
entity.name.function,support.function.console #61afef —
keyword.operator.misc.rust #a0aec0 —
keyword.operator.sigil.rust #08c8bb —
keyword.operator.delete #08c8bb —
support.type.object.dom #56b6c2 —
support.variable.dom,support.variable.property.dom #f687b3 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #56b6c2 —
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 #08c8bb —
punctuation.separator.delimiter #a0aec0 —
punctuation.separator.c,punctuation.separator.cpp #08c8bb —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #56b6c2 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #08c8bb —
variable.parameter.function.language.python #a0aec0 —
support.type.python #56b6c2 —
keyword.operator.logical.python #08c8bb —
variable.parameter.function.python #a0aec0 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #a0aec0 —
meta.function-call.generic.python #61afef —
constant.character.format.placeholder.other.python #a0aec0 —
keyword.operator.assignment.compound #08c8bb —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #56b6c2 —
entity.name.namespace #a0aec0 —
variable.language #a0aec0 —
token.variable.parameter.java #a0aec0 —
import.storage.java #a0aec0 —
token.package.keyword #08c8bb —
entity.name.function, meta.require, support.function.any-method, variable.function #61afef —
entity.name.type.namespace #a0aec0 —
support.class, entity.name.type.class #a0aec0 —
entity.name.class.identifier.namespace.type #a0aec0 —
entity.name.class, variable.other.class.js, variable.other.class.ts #a0aec0 —
variable.other.class.php #f687b3 —
control.elements, keyword.operator.less #a0aec0 —
keyword.other.special-method #61afef —
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 #08c8bb —
token.storage.type.java #a0aec0 —
support.type.property-name #a0aec0 —
support.constant.property-value #a0aec0 —
support.constant.font-name #a0aec0 —
entity.other.inherited-class #a0aec0 —
constant.other.symbol #56b6c2 —
punctuation.definition.constant #a0aec0 —
entity.other.attribute-name #a0aec0 —
entity.other.attribute-name.id #61afef normal
entity.other.attribute-name.class.css #a0aec0 normal
markup.heading punctuation.definition.heading, entity.name.section #61afef —
keyword.other.unit #f687b3 —
markup.bold,todo.bold #a0aec0 —
punctuation.definition.bold #a0aec0 —
markup.italic, punctuation.definition.italic,todo.emphasis #08c8bb —
entity.name.section.markdown #f687b3 —
punctuation.definition.heading.markdown #f687b3 —
punctuation.definition.list.begin.markdown #f687b3 —
markup.heading.setext #a0aec0 —
punctuation.definition.bold.markdown #a0aec0 —
markup.inline.raw.markdown #62b3ed —
markup.inline.raw.string.markdown #62b3ed —
punctuation.definition.list.markdown #f687b3 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #f687b3 —
beginning.punctuation.definition.list.markdown #f687b3 —
punctuation.definition.metadata.markdown #f687b3 —
markup.underline.link.markdown,markup.underline.link.image.markdown #08c8bb —
string.other.link.title.markdown,string.other.link.description.markdown #61afef —
constant.character.escape #56b6c2 —
punctuation.section.embedded, variable.interpolation #f687b3 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #08c8bb —
invalid.illegal.bad-ampersand.html #a0aec0 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #f687b3 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #f687b3 —
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 #62b3ed —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #56b6c2 —
support.type.property-name.json #f687b3 —
support.type.property-name.json punctuation #f687b3 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #08c8bb —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #08c8bb —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #a0aec0 —
keyword.operator.error-control.php #08c8bb —
keyword.operator.type.php #08c8bb —
punctuation.section.array.begin.php #a0aec0 —
punctuation.section.array.end.php #a0aec0 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #a0aec0 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #61afef —
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 #a0aec0 —
support.constant.core.rust #a0aec0 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #a0aec0 —
entity.name.goto-label.php,support.other.php #61afef —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #56b6c2 —
keyword.operator.regexp.php #08c8bb —
keyword.operator.comparison.php #56b6c2 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #08c8bb —
meta.function.decorator.python #61afef —
support.token.decorator.python,meta.function.decorator.identifier.python #56b6c2 —
function.parameter #a0aec0 —
function.parameter.ruby, function.parameter.cs #a0aec0 —
constant.language.symbol.ruby #56b6c2 —
inline-color-decoration rgb-value #a0aec0 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #a0aec0 —
block.scope.end,block.scope.begin #a0aec0 —
entity.name.variable.local.cs #f687b3 —
token.error-token #f44747 —
token.debug-token #08c8bb —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #08c8bb —
meta.template.expression #a0aec0 —
keyword.operator.module #08c8bb —
support.type.type.flowtype #61afef —
support.type.primitive #a0aec0 —
meta.property.object #f687b3 —
variable.parameter.function.js #f687b3 —
keyword.other.template.begin #62b3ed —
keyword.other.template.end #62b3ed —
keyword.other.substitution.begin #62b3ed —
keyword.other.substitution.end #62b3ed —
keyword.operator.assignment #56b6c2 —
keyword.operator.assignment.go #a0aec0 —
keyword.operator.arithmetic.go, keyword.operator.address.go #08c8bb —
entity.name.package.go #a0aec0 —
support.type.prelude.elm #56b6c2 —
support.constant.elm #a0aec0 —
punctuation.quasi.element #08c8bb —
constant.character.entity #f687b3 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #56b6c2 —
entity.global.clojure #a0aec0 —
meta.symbol.clojure #f687b3 —
constant.keyword.clojure #56b6c2 —
meta.arguments.coffee, variable.parameter.function.coffee #f687b3 —
meta.scope.prerequisites.makefile #f687b3 —
storage.modifier.import.groovy #a0aec0 —
meta.method.groovy #61afef —
meta.definition.variable.name.groovy #f687b3 —
meta.definition.class.inherited.classes.groovy #62b3ed —
support.variable.semantic.hlsl #a0aec0 —
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 #08c8bb —
text.variable, text.bracketed #f687b3 —
support.type.swift, support.type.vb.asp #a0aec0 —
entity.name.function.xi #a0aec0 —
entity.name.class.xi #56b6c2 —
constant.character.character-class.regexp.xi #f687b3 —
constant.regexp.xi #08c8bb —
keyword.control.xi #56b6c2 —
beginning.punctuation.definition.quote.markdown.xi #62b3ed —
beginning.punctuation.definition.list.markdown.xi #687588 —
constant.character.xi #61afef —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #687588 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #a0aec0 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #f687b3 —
meta.brace.square #a0aec0 —
comment, punctuation.definition.comment #687588 italic
markup.quote.markdown #687588 —
punctuation.definition.block.sequence.item.yaml #a0aec0 —
constant.language.symbol.elixir #56b6c2 —
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 } !` ;
}