Skip to main content
pinkpinktheme | 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 #a18686 activityBar.background #716f6f activityBar.border #deadad activityBar.foreground #f9c8c8 activityBar.inactiveForeground #ffe4e466 activityBarBadge.background #ffcefa 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 #e06c75 — variable.other.generic-type.haskell #c678dd — storage.type.haskell #d19a66 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
pinkpinktheme — subscribe
activityBarBadge.foreground
#9f6060
badge.background #deb1b1
badge.foreground #580e0e
breadcrumb.activeSelectionForeground #6b4040
breadcrumb.background #ffe9e9
breadcrumb.focusForeground #6b4040
breadcrumb.foreground #ba8181cc
button.background #ecabeb
button.foreground #ffffff
button.hoverBackground #529dcf
button.secondaryBackground #81abe4
button.secondaryForeground #ffffff
button.secondaryHoverBackground #5a87c4
checkbox.background #f7eeee
checkbox.border #eac8c800
checkbox.foreground #d78585
debugExceptionWidget.background #f3f3f3
debugExceptionWidget.border #c49494
debugToolBar.background #f3f3f3
debugToolBar.border #c49494
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #f7eeee
dropdown.border #eac8c800
dropdown.foreground #d78585
editor.background #ffffff
editor.findMatchBackground #a8ac94
editor.findMatchBorder #979b83
editor.findMatchHighlightBackground #e4ad8955
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #b4b4b44d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #add6ff4d
editor.foreground #a890fd
editor.hoverHighlightBackground #add6ff26
editor.inactiveSelectionBackground #e5ebf1
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #eeeeee
editor.rangeHighlightBackground #fdff0033
editor.rangeHighlightBorder #ffd5d500
editor.selectionBackground #add6ff
editor.selectionHighlightBackground #add6ff80
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #8c797940
editor.wordHighlightBorder #fdc7c7
editor.wordHighlightStrongBackground #4b9cd340
editorBracketMatch.background #0064001a
editorBracketMatch.border #b9b9b9
editorCodeLens.foreground #ffa3a3
editorCursor.background #fddfdf
editorCursor.foreground #ee9898
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #e51400
editorGroup.border #e7e7e7
editorGroup.emptyBackground #ffffff
editorGroupHeader.border #cb9393
editorGroupHeader.tabsBackground #ffe0e0
editorGroupHeader.tabsBorder #e2b6b6
editorGutter.addedBackground #bedbc3
editorGutter.background #ffffff
editorGutter.commentRangeForeground #db8585
editorGutter.deletedBackground #ff8d92
editorGutter.foldingControlForeground #db8585
editorGutter.modifiedBackground #aec4d3
editorHoverWidget.background #fbe7e7
editorHoverWidget.border #928d8d
editorHoverWidget.foreground #796666
editorIndentGuide.activeBackground #eebdbd
editorIndentGuide.background #d3d3d3
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #5b71be
editorLineNumber.foreground #a388a7
editorLink.activeForeground #0000ff
editorMarkerNavigation.background #ffffff
editorMarkerNavigationError.background #e51400
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #e9a700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #cf9b9b
editorSuggestWidget.background #f9e9e9
editorSuggestWidget.border #a77878
editorSuggestWidget.foreground #c27d7d
editorSuggestWidget.highlightForeground #72beff
editorSuggestWidget.selectedBackground #ffffff
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #e9a700
editorWhitespace.foreground #33333333
editorWidget.background #fff5f5
editorWidget.foreground #a77171
editorWidget.resizeBorder #b88a8a
focusBorder #56abe4
foreground #ffb2b2
gitDecoration.addedResourceForeground #5b7b16
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #ad0707
gitDecoration.ignoredResourceForeground #5f5f90
gitDecoration.modifiedResourceForeground #895503
gitDecoration.stageDeletedResourceForeground #ad0707
gitDecoration.stageModifiedResourceForeground #895503
gitDecoration.submoduleResourceForeground #1258a7
gitDecoration.untrackedResourceForeground #007100
icon.foreground #ffb2b2
input.background #f7eeee
input.border #eac8c800
input.foreground #d78585
input.placeholderForeground #a96c6c
inputOption.activeBackground #f768ed33
inputOption.activeBorder #db59c000
inputOption.activeForeground #a95151
list.activeSelectionBackground #89bcf0
list.activeSelectionForeground #fbe2e2
list.dropBackground #ffeffc
list.focusBackground #d6ebff
list.focusForeground #887a7a
list.highlightForeground #ffb6ec
list.hoverBackground #f5cccc
list.hoverForeground #616161
list.inactiveSelectionBackground #c8cff2
list.inactiveSelectionForeground #927a8d
listFilterWidget.background #ffe3d7
listFilterWidget.noMatchesOutline #f9d7d3
listFilterWidget.outline #dbb3b300
menu.background #f2eded
menu.border #00000085
menu.foreground #b08b8b
menu.selectionBackground #78b6f5
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #888888
menubar.selectionBackground #0000001a
menubar.selectionBorder #f7d4d4
menubar.selectionForeground #622323
merge.commonContentBackground #E5E5E5
merge.commonHeaderBackground #BFBFBF
merge.currentContentBackground #DBF4EF
merge.currentHeaderBackground #A4E3D6
merge.incomingContentBackground #DBECFF
merge.incomingHeaderBackground #A6CFFF
minimap.background #ffffff
minimap.errorHighlight #e51400
minimap.findMatchHighlight #a8ac94
minimap.selectionHighlight #add6ff
minimap.warningHighlight #e9a700
minimapGutter.addedBackground #bedbc3
minimapGutter.deletedBackground #ff8d92
minimapGutter.modifiedBackground #aec4d3
notificationCenter.border #e29292
notificationCenterHeader.background #eee7e7
notificationCenterHeader.foreground #bc4e4e
notifications.background #eccccc
notifications.border #d79494
notifications.foreground #7b4747
notificationsErrorIcon.foreground #ff1600
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #e9a700
notificationToast.border #f9d5d5
panel.background #f0dede
panel.border #fbdcdc59
panelSection.border #d18e8e59
panelTitle.activeBorder #b28383
panelTitle.activeForeground #754646
panelTitle.inactiveForeground #c76868bf
peekView.border #007acc
peekViewEditor.background #f2f8fc
peekViewEditor.matchHighlightBackground #f5d802de
peekViewEditor.matchHighlightBorder #dbc417
peekViewEditorGutter.background #f2f8fc
peekViewResult.background #f3f3f3
peekViewResult.fileForeground #ad7878
peekViewResult.lineForeground #747492
peekViewResult.matchHighlightBackground #ff64004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #c0a1a1
peekViewTitle.background #ffefef
peekViewTitleDescription.foreground #847171e6
peekViewTitleLabel.foreground #cb6e6e
pickerGroup.border #acb2d9
pickerGroup.foreground #6fa5d5
progressBar.background #e88ecd
scrollbar.shadow #f0bdbd
scrollbarSlider.activeBackground #a3707099
scrollbarSlider.background #c9979766
scrollbarSlider.hoverBackground #d19494b3
selection.background #fbe2f9
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffb2b2
sideBar.background #f2e9e9
sideBar.border #eababa
sideBar.dropBackground #ffeffc
sideBar.foreground #b29898
sideBarSectionHeader.background #eec7c700
sideBarSectionHeader.border #34272730
sideBarSectionHeader.foreground #b89898
sideBarTitle.foreground #603e3e
statusBar.background #f9def2
statusBar.debuggingBackground #d9bdd1
statusBar.debuggingForeground #ffffff
statusBar.foreground #5e3e3e
statusBar.noFolderBackground #bc8cc9
statusBar.noFolderBorder #b68787
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #e8c7c71f
statusBarItem.remoteBackground #d7badb
statusBarItem.remoteForeground #9d6b6b
tab.activeBackground #ffefef
tab.activeBorder #b8717100
tab.activeBorderTop #c2989800
tab.activeForeground #a57878
tab.border #ecd2d2
tab.hoverBackground #cdaeae
tab.hoverBorder #d7b4b4
tab.hoverForeground #ffc2c2
tab.inactiveBackground #f0d8d8
tab.inactiveForeground #ad5d5db3
terminal.ansiBlack #ff7373
terminal.ansiBlue #0451a5
terminal.ansiBrightBlack #ff8181
terminal.ansiBrightBlue #0451a5
terminal.ansiBrightCyan #0598bc
terminal.ansiBrightGreen #14ce14
terminal.ansiBrightMagenta #bc05bc
terminal.ansiBrightRed #cd3131
terminal.ansiBrightWhite #a5a5a5
terminal.ansiBrightYellow #b5ba00
terminal.ansiCyan #0598bc
terminal.ansiGreen #00bc00
terminal.ansiMagenta #bc05bc
terminal.ansiRed #cd3131
terminal.ansiWhite #555555
terminal.ansiYellow #949800
terminal.border #d18e8e59
terminal.foreground #333333
terminal.selectionBackground #eccbcb40
terminalCursor.background #0087FF
terminalCursor.foreground #fdefef
textLink.foreground #4f9fd5
titleBar.activeBackground #ffeeee
titleBar.activeForeground #9b7676
titleBar.border #00000000
titleBar.inactiveBackground #d5b2b2ef
titleBar.inactiveForeground #f6fff9bf
tree.indentGuidesStroke #eabdbd
walkThrough.embeddedEditorBackground #00000050
widget.shadow #58545429 #e06c75
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #a890fd —
variable.parameter.function.language.special.self.python #f2b600 —
storage.modifier.lifetime.rust #a890fd —
support.function.std.rust #61afef —
entity.name.lifetime.rust #f2b600 —
variable.language.rust #e06c75 —
support.constant.edge #c678dd —
constant.other.character-class.regexp #e06c75 —
keyword.operator.quantifier.regexp #d19a66 —
punctuation.definition.string.begin,punctuation.definition.string.end #98c379 —
variable.parameter.function #a890fd —
comment markup.link #a2a5a9 —
markup.changed.diff #f2b600 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #61afef —
markup.inserted.diff #98c379 —
markup.deleted.diff #e06c75 —
meta.function.c,meta.function.cpp #e06c75 —
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 #a890fd —
punctuation.separator.key-value #a890fd —
keyword.operator.expression.import #61afef —
support.constant.math #f2b600 —
support.constant.property.math #d19a66 —
variable.other.constant #f2b600 —
storage.type.annotation.java, storage.type.object.array.java #f2b600 —
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 #a890fd —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #f2b600 —
keyword.operator.instanceof.java #c678dd —
meta.definition.variable.name.java #e06c75 —
keyword.operator.logical #56b6c2 —
keyword.operator.bitwise #56b6c2 —
keyword.operator.channel #56b6c2 —
support.constant.property-value.scss,support.constant.property-value.css #d19a66 —
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 #d19a66 —
punctuation.separator.list.comma.css #a890fd —
support.constant.color.w3c-standard-color-name.css #d19a66 —
support.type.vendored.property-name.css #56b6c2 —
support.module.node,support.type.object.module,support.module.node #f2b600 —
entity.name.type.module #f2b600 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #e06c75 —
support.constant.json #d19a66 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #c678dd —
support.type.object.console #e06c75 —
support.variable.property.process #d19a66 —
entity.name.function,support.function.console #61afef —
keyword.operator.misc.rust #a890fd —
keyword.operator.sigil.rust #c678dd —
keyword.operator.delete #c678dd —
support.type.object.dom #56b6c2 —
support.variable.dom,support.variable.property.dom #e06c75 —
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 #c678dd —
punctuation.separator.delimiter #a890fd —
punctuation.separator.c,punctuation.separator.cpp #c678dd —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #56b6c2 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #c678dd —
variable.parameter.function.language.python #d19a66 —
support.type.python #56b6c2 —
keyword.operator.logical.python #c678dd —
variable.parameter.function.python #d19a66 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #a890fd —
meta.function-call.generic.python #61afef —
constant.character.format.placeholder.other.python #d19a66 —
keyword.operator.assignment.compound #c678dd —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #56b6c2 —
entity.name.namespace #f2b600 —
variable.language #f2b600 —
token.variable.parameter.java #a890fd —
import.storage.java #f2b600 —
token.package.keyword #c678dd —
entity.name.function, meta.require, support.function.any-method, variable.function #61afef —
entity.name.type.namespace #f2b600 —
support.class, entity.name.type.class #f2b600 —
entity.name.class.identifier.namespace.type #f2b600 —
entity.name.class, variable.other.class.js, variable.other.class.ts #f2b600 —
variable.other.class.php #e06c75 —
control.elements, keyword.operator.less #d19a66 —
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 #c678dd —
token.storage.type.java #f2b600 —
support.type.property-name #a890fd —
support.constant.property-value #a890fd —
support.constant.font-name #d19a66 —
entity.other.inherited-class #f2b600 —
constant.other.symbol #56b6c2 —
punctuation.definition.constant #d19a66 —
entity.other.attribute-name #d19a66 —
entity.other.attribute-name.id #61afef normal
entity.other.attribute-name.class.css #d19a66 normal
markup.heading punctuation.definition.heading, entity.name.section #61afef —
keyword.other.unit #e06c75 —
markup.bold,todo.bold #d19a66 —
punctuation.definition.bold #f2b600 —
markup.italic, punctuation.definition.italic,todo.emphasis #c678dd —
entity.name.section.markdown #e06c75 —
punctuation.definition.heading.markdown #e06c75 —
punctuation.definition.list.begin.markdown #e06c75 —
markup.heading.setext #a890fd —
punctuation.definition.bold.markdown #d19a66 —
markup.inline.raw.markdown #98c379 —
markup.inline.raw.string.markdown #98c379 —
punctuation.definition.list.markdown #e06c75 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #e06c75 —
beginning.punctuation.definition.list.markdown #e06c75 —
punctuation.definition.metadata.markdown #e06c75 —
markup.underline.link.markdown,markup.underline.link.image.markdown #c678dd —
string.other.link.title.markdown,string.other.link.description.markdown #61afef —
constant.character.escape #56b6c2 —
punctuation.section.embedded, variable.interpolation #e06c75 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #c678dd —
invalid.illegal.bad-ampersand.html #a890fd —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #e06c75 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #e06c75 —
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 #98c379 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #56b6c2 —
support.type.property-name.json #e06c75 —
support.type.property-name.json punctuation #e06c75 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #c678dd —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #c678dd —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f2b600 —
keyword.operator.error-control.php #c678dd —
keyword.operator.type.php #c678dd —
punctuation.section.array.begin.php #a890fd —
punctuation.section.array.end.php #a890fd —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #f2b600 —
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 #a890fd —
support.constant.core.rust #d19a66 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #d19a66 —
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 #c678dd —
keyword.operator.comparison.php #56b6c2 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #c678dd —
meta.function.decorator.python #61afef —
support.token.decorator.python,meta.function.decorator.identifier.python #56b6c2 —
function.parameter #a890fd —
function.parameter.ruby, function.parameter.cs #a890fd —
constant.language.symbol.ruby #56b6c2 —
inline-color-decoration rgb-value #d19a66 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #f2b600 —
block.scope.end,block.scope.begin #a890fd —
entity.name.variable.local.cs #e06c75 —
token.error-token #f44747 —
token.debug-token #c678dd —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #c678dd —
meta.template.expression #a890fd —
keyword.operator.module #c678dd —
support.type.type.flowtype #61afef —
support.type.primitive #f2b600 —
meta.property.object #e06c75 —
variable.parameter.function.js #e06c75 —
keyword.other.template.begin #98c379 —
keyword.other.template.end #98c379 —
keyword.other.substitution.begin #98c379 —
keyword.other.substitution.end #98c379 —
keyword.operator.assignment #56b6c2 —
keyword.operator.assignment.go #f2b600 —
keyword.operator.arithmetic.go, keyword.operator.address.go #c678dd —
entity.name.package.go #f2b600 —
support.type.prelude.elm #56b6c2 —
support.constant.elm #d19a66 —
punctuation.quasi.element #c678dd —
constant.character.entity #e06c75 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #56b6c2 —
entity.global.clojure #f2b600 —
meta.symbol.clojure #e06c75 —
constant.keyword.clojure #56b6c2 —
meta.arguments.coffee, variable.parameter.function.coffee #e06c75 —
meta.scope.prerequisites.makefile #e06c75 —
storage.modifier.import.groovy #f2b600 —
meta.method.groovy #61afef —
meta.definition.variable.name.groovy #e06c75 —
meta.definition.class.inherited.classes.groovy #98c379 —
support.variable.semantic.hlsl #f2b600 —
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 #c678dd —
text.variable, text.bracketed #e06c75 —
support.type.swift, support.type.vb.asp #f2b600 —
entity.name.function.xi #f2b600 —
entity.name.class.xi #56b6c2 —
constant.character.character-class.regexp.xi #e06c75 —
constant.regexp.xi #c678dd —
keyword.control.xi #56b6c2 —
beginning.punctuation.definition.quote.markdown.xi #98c379 —
beginning.punctuation.definition.list.markdown.xi #a2a5a9 —
constant.character.xi #61afef —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #a2a5a9 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f2b600 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #e06c75 —
meta.brace.square #a890fd —
comment, punctuation.definition.comment #a2a5a9 italic
markup.quote.markdown #a2a5a9 —
punctuation.definition.block.sequence.item.yaml #a890fd —
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
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
fetchUser
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 } !` ;
}