Skip to main content
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 #ffffff activityBar.foreground #ea4c89 activityBar.inactiveForeground #9da3a5 activityBarBadge.background #ea4c89 activityBarBadge.foreground #ffffff badge.background #ea4c89 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 #c142a0 — variable.other.generic-type.haskell #ea4c89 — storage.type.haskell #66cc99 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Dribbble Theme — Dribbble Theme - Light
badge.foreground
#ffffff
breadcrumb.activeSelectionForeground #4e4e4e
breadcrumb.background #ffffff
breadcrumb.focusForeground #4e4e4e
breadcrumb.foreground #616161cc
button.background #ff1b86
button.foreground #ffffff
button.hoverBackground #e4156f
button.secondaryBackground #fdcee4
button.secondaryForeground #0e0b21
button.secondaryHoverBackground #fbbeda
checkbox.background #ffffff
checkbox.border #00000000
checkbox.foreground #616161
debugExceptionWidget.background #f3f3f3
debugExceptionWidget.border #d5d5d5
debugToolBar.background #f3f3f3
debugToolBar.border #d5d5d5
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #66cc9944
diffEditor.removedTextBackground #c142a044
dropdown.background #ffffff
dropdown.border #00000000
dropdown.foreground #616161
editor.background #ffffff
editor.findMatchBackground #ea4c8944
editor.findMatchBorder #ea4c89
editor.findMatchHighlightBackground #ea4c8944
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #ea4c891c
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #3a8bbb44
editor.foreground #444444
editor.hoverHighlightBackground #ea4c8944
editor.inactiveSelectionBackground #ea4c8918
editor.lineHighlightBackground #4444440a
editor.lineHighlightBorder #eeeeee
editor.rangeHighlightBackground #ea4c8970
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #ea4c8944
editor.selectionHighlightBackground #ea4c8944
editor.selectionHighlightBorder #ea4c89
editor.wordHighlightBackground #44444444
editor.wordHighlightStrongBackground #ea4c8944
editor.wordHighlightStrongBorder #ffffff00
editorBracketMatch.background #9da3a51a
editorBracketMatch.border #b9b9b9
editorCodeLens.foreground #999999
editorCursor.background #ffffff
editorCursor.foreground #444444
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #ca4b51
editorGroup.border #e7e7e7
editorGroup.emptyBackground #ffffff
editorGroupHeader.tabsBackground #0d0c220d
editorGroupHeader.tabsBorder #ec000000
editorGutter.addedBackground #66cc99
editorGutter.background #ffffff
editorGutter.commentRangeForeground #424242
editorGutter.deletedBackground #c142a0
editorGutter.foldingControlForeground #424242
editorGutter.modifiedBackground #3a8bbb
editorHoverWidget.background #f9f8fd
editorHoverWidget.border #ea4c89
editorHoverWidget.foreground #444444
editorIndentGuide.activeBackground #9da3a5
editorIndentGuide.background #9da3a544
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #3a8bbb
editorLineNumber.activeForeground #ea4c89
editorLineNumber.foreground #757482
editorLink.activeForeground #3a8bbb
editorMarkerNavigation.background #ffffff
editorMarkerNavigationError.background #c142a0
editorMarkerNavigationInfo.background #9da3a5
editorMarkerNavigationWarning.background #cab04b
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #d3d3d3
editorSuggestWidget.background #ffffff
editorSuggestWidget.border #757482
editorSuggestWidget.foreground #444444
editorSuggestWidget.highlightForeground #ea4c89
editorSuggestWidget.selectedBackground #f2c7d8
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #e9a700
editorWhitespace.foreground #33333333
editorWidget.background #f3f3f3
editorWidget.foreground #616161
editorWidget.resizeBorder #c7c7c7
focusBorder #ea4c89
foreground #444444
gitDecoration.addedResourceForeground #3abe55
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #be3a46
gitDecoration.ignoredResourceForeground #8e8e90
gitDecoration.modifiedResourceForeground #be7e3a
gitDecoration.stageDeletedResourceForeground #be3a46
gitDecoration.stageModifiedResourceForeground #be7e3a
gitDecoration.submoduleResourceForeground #3a80be
gitDecoration.untrackedResourceForeground #3abe55
icon.foreground #444444
input.background #ffffff
input.border #00000000
input.foreground #616161
input.placeholderForeground #767676
inputOption.activeBackground #ff1b8633
inputOption.activeBorder #007acc00
inputOption.activeForeground #000000
list.activeSelectionBackground #ea4c89
list.activeSelectionForeground #ffffffd9
list.dropBackground #ea4c8944
list.focusBackground #eec9d8
list.focusForeground #444444
list.highlightForeground #ea4c89
list.hoverBackground #e8e8e8
list.hoverForeground #616161
list.inactiveSelectionBackground #e4e6f1
list.inactiveSelectionForeground #616161
listFilterWidget.background #ea4c8944
listFilterWidget.noMatchesOutline #ea4c89
listFilterWidget.outline #00000000
menu.background #ffffff
menu.border #f9f8fd
menu.foreground #616161
menu.selectionBackground #ff1b86
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #0e0b21
menubar.selectionBackground #ff1b863e
menubar.selectionForeground #0e0b21
merge.commonContentBackground #e3eaec
merge.commonHeaderBackground #9da3a5
merge.currentContentBackground #f0d1dd
merge.currentHeaderBackground #ea4c89
merge.incomingContentBackground #a1d2de
merge.incomingHeaderBackground #00b6e3
minimap.background #ffffff
minimap.errorHighlight #ca4b51
minimap.findMatchHighlight #ea4c8944
minimap.selectionHighlight #ea4c8944
minimap.warningHighlight #e9a700
minimapGutter.addedBackground #66cc99
minimapGutter.deletedBackground #c142a0
minimapGutter.modifiedBackground #3a8bbb
notificationCenter.border #d5d5d5
notificationCenterHeader.background #eeeef2
notificationCenterHeader.foreground #0e0b21
notifications.background #ffffff
notifications.border #e7e7e7
notifications.foreground #757482
notificationsErrorIcon.foreground #e51400
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #e9a700
notificationToast.border #f8f8f8
panel.background #f9f8fd
panel.border #0e0b21
panelSection.border #0e0b21
panelTitle.activeBorder #0e0b21
panelTitle.activeForeground #ea4c89
panelTitle.inactiveForeground #424242bf
peekView.border #ea4c89
peekViewEditor.background #f9f8fd
peekViewEditor.matchHighlightBackground #ea4c8944
peekViewEditor.matchHighlightBorder #ea4c89
peekViewEditorGutter.background #f9f8fd
peekViewResult.background #f5f3ff
peekViewResult.fileForeground #444444
peekViewResult.lineForeground #646465
peekViewResult.matchHighlightBackground #ea4c8984
peekViewResult.selectionBackground #ea4c8944
peekViewResult.selectionForeground #6c6c6c
peekViewTitle.background #ffffff
peekViewTitleDescription.foreground #444444e6
peekViewTitleLabel.foreground #444444
pickerGroup.border #cccedb
pickerGroup.foreground #ff1b86
progressBar.background #ea4c89
scrollbar.shadow #dddddd
scrollbarSlider.activeBackground #00000099
scrollbarSlider.background #64646466
scrollbarSlider.hoverBackground #646464b3
selection.background #eca6c1
settings.focusedRowBackground #ffffff07
settings.headerForeground #444444
sideBar.background #f3f4f4
sideBar.dropBackground #ea4c8944
sideBar.foreground #444444
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #61616130
sideBarSectionHeader.foreground #616161
sideBarTitle.foreground #6f6f6f
statusBar.background #0e0b21
statusBar.debuggingBackground #ff9b1b
statusBar.debuggingForeground #000000
statusBar.foreground #ffffff
statusBar.noFolderBackground #0e0b21
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #ea4c89
statusBarItem.remoteForeground #ffffff
tab.activeBackground #ffffff
tab.activeBorder #ea4c8900
tab.activeBorderTop #ea4c8900
tab.activeForeground #0e0b21
tab.border #ffffff
tab.inactiveBackground #0d0c220d
tab.inactiveForeground #757482
terminal.ansiBlack #000000
terminal.ansiBlue #0451a5
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #0451a5
terminal.ansiBrightCyan #0598bc
terminal.ansiBrightGreen #14ce14
terminal.ansiBrightMagenta #bc05bc
terminal.ansiBrightRed #cd3131
terminal.ansiBrightWhite #757575
terminal.ansiBrightYellow #b5ba00
terminal.ansiCyan #0598bc
terminal.ansiGreen #00bc00
terminal.ansiMagenta #bc05bc
terminal.ansiRed #cd3131
terminal.ansiWhite #555555
terminal.ansiYellow #949800
terminal.border #0e0b21
terminal.foreground #757482
terminal.selectionBackground #ea4c8940
terminalCursor.background #ea4c89
terminalCursor.foreground #ffffff
textLink.foreground #ff1b86
titleBar.activeBackground #ffffff
titleBar.activeForeground #757482
titleBar.border #00000000
titleBar.inactiveBackground #ffffffaf
titleBar.inactiveForeground #797979
tree.indentGuidesStroke #a9a9a9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000029 #c142a0
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #444444 —
variable.parameter.function.language.special.self.python #0e0b22 —
storage.modifier.lifetime.rust #444444 —
support.function.std.rust #444444 —
entity.name.lifetime.rust #0e0b22 —
variable.language.rust #c142a0 —
support.constant.edge #ea4c89 —
constant.other.character-class.regexp #c142a0 —
keyword.operator.quantifier.regexp #66cc99 —
punctuation.definition.string.begin,punctuation.definition.string.end #66cc99 —
variable.parameter.function #444444 —
comment markup.link #9da3a5 —
markup.changed.diff #0e0b22 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #444444 —
markup.inserted.diff #66cc99 —
markup.deleted.diff #c142a0 —
meta.function.c,meta.function.cpp #c142a0 —
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 #444444 —
punctuation.separator.key-value #444444 —
keyword.operator.expression.import #444444 —
support.constant.math #0e0b22 —
support.constant.property.math #66cc99 —
variable.other.constant #0e0b22 —
storage.type.annotation.java, storage.type.object.array.java #0e0b22 —
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 #444444 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #0e0b22 —
keyword.operator.instanceof.java #ea4c89 —
meta.definition.variable.name.java #c142a0 —
keyword.operator.logical #00b6e3 —
keyword.operator.bitwise #00b6e3 —
keyword.operator.channel #00b6e3 —
support.constant.property-value.scss,support.constant.property-value.css #66cc99 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #00b6e3 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #66cc99 —
punctuation.separator.list.comma.css #444444 —
support.constant.color.w3c-standard-color-name.css #66cc99 —
support.type.vendored.property-name.css #00b6e3 —
support.module.node,support.type.object.module,support.module.node #0e0b22 —
entity.name.type.module #0e0b22 —
meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ea4c89 italic
support.constant.json #66cc99 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ea4c89 —
support.type.object.console #c142a0 —
support.variable.property.process #66cc99 —
entity.name.function,support.function.console #444444 —
keyword.operator.misc.rust #444444 —
keyword.operator.sigil.rust #ea4c89 —
keyword.operator.delete #c142a0 —
support.type.object.dom #00b6e3 —
support.variable.dom,support.variable.property.dom #c142a0 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #00b6e3 —
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 #ea4c89 —
punctuation.separator.delimiter #444444 —
punctuation.separator.c,punctuation.separator.cpp #ea4c89 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #00b6e3 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ea4c89 —
variable.parameter.function.language.python #66cc99 —
support.type.python #00b6e3 —
keyword.operator.logical.python #ea4c89 —
variable.parameter.function.python #66cc99 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #444444 —
meta.function-call.generic.python #444444 —
constant.character.format.placeholder.other.python #66cc99 —
keyword.operator.assignment.compound #ea4c89 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #00b6e3 —
entity.name.namespace #0e0b22 —
variable.language #0e0b22 —
token.variable.parameter.java #444444 —
import.storage.java #0e0b22 —
token.package.keyword #ea4c89 —
entity.name.function, meta.require, support.function.any-method, variable.function #444444 bold
entity.name.type.namespace #0e0b22 bold
support.class, entity.name.type.class #0e0b22 bold
entity.name.class.identifier.namespace.type #0e0b22 —
entity.name.class, variable.other.class.js, variable.other.class.ts #0e0b22 —
variable.other.class.php #c142a0 —
keyword.control.import, meta.import #c142a0 —
variable.other.readwrite #ea4c89 —
storage.type.type #ea4c89 —
control.elements, keyword.operator.less #66cc99 —
keyword.other.special-method #444444 —
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 #ea4c89 —
token.storage.type.java #0e0b22 —
support.type.property-name #444444 —
support.constant.property-value #444444 —
support.constant.font-name #66cc99 —
entity.other.inherited-class #0e0b22 —
constant.other.symbol #00b6e3 —
punctuation.definition.constant #66cc99 —
entity.name.tag, support.class.component #ea4c89 —
entity.other.attribute-name #66cc99 —
entity.other.attribute-name.id #444444 normal
entity.other.attribute-name.class.css #66cc99 normal
markup.heading punctuation.definition.heading, entity.name.section #444444 —
keyword.other.unit #c142a0 —
markup.bold,todo.bold #66cc99 —
punctuation.definition.bold #0e0b22 —
markup.italic, punctuation.definition.italic,todo.emphasis #ea4c89 —
entity.name.section.markdown #c142a0 —
punctuation.definition.heading.markdown #c142a0 —
punctuation.definition.list.begin.markdown #c142a0 —
markup.heading.setext #444444 —
punctuation.definition.bold.markdown #66cc99 —
markup.inline.raw.markdown #66cc99 —
markup.inline.raw.string.markdown #66cc99 —
punctuation.definition.list.markdown #c142a0 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #c142a0 —
beginning.punctuation.definition.list.markdown #c142a0 —
punctuation.definition.metadata.markdown #c142a0 —
markup.underline.link.markdown,markup.underline.link.image.markdown #ea4c89 —
string.other.link.title.markdown,string.other.link.description.markdown #444444 —
constant.character.escape #00b6e3 —
punctuation.section.embedded, variable.interpolation #c142a0 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ea4c89 —
invalid.illegal.bad-ampersand.html #444444 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #c142a0 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #c142a0 —
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 #66cc99 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #00b6e3 —
support.type.property-name.json #c142a0 —
support.type.property-name.json punctuation #c142a0 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ea4c89 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ea4c89 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #0e0b22 —
keyword.operator.error-control.php #ea4c89 —
keyword.operator.type.php #ea4c89 —
punctuation.section.array.begin.php #444444 —
punctuation.section.array.end.php #444444 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #0e0b22 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #444444 —
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 #444444 —
support.constant.core.rust #66cc99 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #66cc99 —
entity.name.goto-label.php,support.other.php #444444 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #00b6e3 —
keyword.operator.regexp.php #ea4c89 —
keyword.operator.comparison.php #00b6e3 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ea4c89 —
meta.function.decorator.python #444444 —
support.token.decorator.python,meta.function.decorator.identifier.python #00b6e3 —
function.parameter #444444 —
function.parameter.ruby, function.parameter.cs #444444 —
constant.language.symbol.ruby #00b6e3 —
inline-color-decoration rgb-value #66cc99 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #0e0b22 —
block.scope.end,block.scope.begin #444444 —
entity.name.variable.local.cs #c142a0 —
token.error-token #f44747 —
token.debug-token #ea4c89 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ea4c89 —
meta.template.expression #444444 —
keyword.operator.module #ea4c89 —
support.type.type.flowtype #444444 —
support.type.primitive #0e0b22 —
meta.property.object #c142a0 —
variable.parameter.function.js #c142a0 —
keyword.other.template.begin #66cc99 —
keyword.other.template.end #66cc99 —
keyword.other.substitution.begin #66cc99 —
keyword.other.substitution.end #66cc99 —
keyword.operator.assignment #00b6e3 —
keyword.operator.assignment.go #0e0b22 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ea4c89 —
entity.name.package.go #0e0b22 —
support.type.prelude.elm #00b6e3 —
support.constant.elm #66cc99 —
punctuation.quasi.element #ea4c89 —
constant.character.entity #c142a0 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #00b6e3 —
entity.global.clojure #0e0b22 —
meta.symbol.clojure #c142a0 —
constant.keyword.clojure #00b6e3 —
meta.arguments.coffee, variable.parameter.function.coffee #c142a0 —
meta.scope.prerequisites.makefile #c142a0 —
storage.modifier.import.groovy #0e0b22 —
meta.method.groovy #444444 —
meta.definition.variable.name.groovy #c142a0 —
meta.definition.class.inherited.classes.groovy #66cc99 —
support.variable.semantic.hlsl #0e0b22 —
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 #ea4c89 —
text.variable, text.bracketed #c142a0 —
support.type.swift, support.type.vb.asp #0e0b22 —
entity.name.function.xi #0e0b22 —
entity.name.class.xi #00b6e3 —
constant.character.character-class.regexp.xi #c142a0 —
constant.regexp.xi #ea4c89 —
keyword.control.xi #00b6e3 —
beginning.punctuation.definition.quote.markdown.xi #66cc99 —
beginning.punctuation.definition.list.markdown.xi #9da3a5 —
constant.character.xi #444444 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #9da3a5 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #0e0b22 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #c142a0 —
meta.brace.square #444444 —
comment, punctuation.definition.comment #9da3a5 italic
markup.quote.markdown #9da3a5 —
punctuation.definition.block.sequence.item.yaml #444444 —
constant.language.symbol.elixir #00b6e3 —
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 } !` ;
}
Dribbble Theme | Coding Theme