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 #454545 activityBar.foreground #c5c7c1 activityBar.inactiveForeground #ffffff66 activityBarBadge.background #de8627 activityBarBadge.foreground #fdefdb badge.background #4d4d4d 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 #e28248 — variable.other.generic-type.haskell #c7bb7d — storage.type.haskell #de935f — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Shades Of Gravy — shades-of-gravy
badge.foreground
#ffffff
breadcrumb.activeSelectionForeground #c5c7c1
breadcrumb.background #1e1e1e
breadcrumb.focusForeground #c5c7c1
breadcrumb.foreground #c5c7c1
button.background #c46600
button.foreground #c5c7c1
button.hoverBackground #b87e3f
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e
checkbox.background #3c3c3c
checkbox.border #00000000
checkbox.foreground #c5c7c1
debugExceptionWidget.background #333333
debugExceptionWidget.border #474747
debugToolBar.background #333333
debugToolBar.border #474747
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95516
diffEditor.insertedTextBorder #ff000000
diffEditor.removedTextBackground #ff000014
diffEditor.removedTextBorder #ff000000
dropdown.background #3c3c3c
dropdown.border #00000000
dropdown.foreground #c5c7c1
editor.background #444649
editor.findMatchBackground #ff4a4aed
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #f9664480
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #c5c7c1
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #555a637c
editor.lineHighlightBackground #ffffff08
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #555a63
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #ff00006a
editorBracketMatch.background #5cb80020
editorBracketMatch.border #88888800
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #444444
editorGroup.emptyBackground #444649
editorGroupHeader.tabsBackground #454547
editorGutter.addedBackground #587c0c38
editorGutter.background #424447
editorGutter.commentRangeForeground #c5c5c570
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #c5c5c570
editorGutter.modifiedBackground #0c7d9d50
editorHoverWidget.background #252526
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #707070
editorIndentGuide.background #404040
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff54
editorLineNumber.activeForeground #c5c7c172
editorLineNumber.foreground #c5c7c13e
editorLink.activeForeground #4e94ce
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #38383d
editorSuggestWidget.border #45454500
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #cfc095ed
editorSuggestWidget.selectedBackground #424247
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #e0cd7aa7
editorWhitespace.foreground #e3e4e229
editorWidget.background #4c4c4d
editorWidget.foreground #c5c7c1
editorWidget.resizeBorder #5F5F5F
focusBorder #007fd428
foreground #c5c7c1
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 #c5c7c1
input.background #3c3c3c
input.border #00000000
input.foreground #c5c7c1
input.placeholderForeground #a6a6a6
inputOption.activeBackground #007fd466
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #555a63
list.activeSelectionForeground #c5c7c1
list.dropBackground #383b3d
list.focusBackground #393a3b
list.focusForeground #cccccc
list.highlightForeground #cfc095ed
list.hoverBackground #2a2d2e
list.hoverForeground #c5c7c1
list.inactiveSelectionBackground #37373d
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #653723
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #252526
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #094771
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #bbbbbb
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #444649
minimap.errorHighlight #f48771
minimap.findMatchHighlight #ff4a4aed
minimap.selectionHighlight #555a63
minimap.warningHighlight #e0cd7aa7
minimapGutter.addedBackground #587c0c38
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d50
notificationCenter.border #474747
notificationCenterHeader.background #303031
notificationCenterHeader.foreground #cccccc
notifications.background #252526
notifications.border #303031
notifications.foreground #c5c7c1
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #474747
panel.background #424145
panel.border #80808059
panelSection.border #80808059
panelTitle.activeBorder #e7e7e7
panelTitle.activeForeground #c5c7c1
panelTitle.inactiveForeground #c5c7c1
peekView.border #007acc00
peekViewEditor.background #354047
peekViewEditor.matchHighlightBackground #ff8f0064
peekViewEditor.matchHighlightBorder #ee931e00
peekViewEditorGutter.background #343e45
peekViewResult.background #343e4597
peekViewResult.fileForeground #fff7d7
peekViewResult.lineForeground #bcb4a1
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #fff5e6
peekViewTitle.background #343e45
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #fff0ce
pickerGroup.border #3f3f46
pickerGroup.foreground #3794ff
progressBar.background #e49b4c
scrollbar.shadow #000000
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646464b3
selection.background #555a63
settings.focusedRowBackground #ffffff07
settings.headerForeground #c5c7c1
sideBar.background #3f3f41
sideBar.dropBackground #383b3d
sideBar.foreground #c5c7c1
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #c5c7c1
sideBarTitle.foreground #c5c7c1
statusBar.background #c46600
statusBar.debuggingBackground #c46600
statusBar.debuggingForeground #c5c7c1
statusBar.foreground #c5c7c1
statusBar.noFolderBackground #68217aa9
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #16825d
statusBarItem.remoteForeground #ffffff
tab.activeBackground #3b3a3a
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #c5c7c1
tab.border #25252600
tab.hoverForeground #cfd1cc
tab.inactiveBackground #454547
tab.inactiveForeground #c5c7c1bd
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 #c5c7c1
terminal.selectionBackground #ffffff40
terminalCursor.background #0087FF
terminalCursor.foreground #ffffff
textLink.foreground #3794ff
titleBar.activeBackground #3c3c3c
titleBar.activeForeground #c5c7c1
titleBar.border #00000000
titleBar.inactiveBackground #3c3c3c99
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #e28248
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #c5c7c1 —
variable.parameter.function.language.special.self.python #e8e2ac —
storage.modifier.lifetime.rust #c5c7c1 —
support.function.std.rust #81a2be —
entity.name.lifetime.rust #e8e2ac —
variable.language.rust #e28248 —
support.constant.edge #c7bb7d —
constant.other.character-class.regexp #e28248 —
keyword.operator.quantifier.regexp #de935f —
punctuation.definition.string.begin,punctuation.definition.string.end #b3bd5b —
variable.parameter.function #c5c7c1 —
comment markup.link #66655c —
markup.changed.diff #e8e2ac —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #81a2be —
markup.inserted.diff #b3bd5b —
markup.deleted.diff #e28248 —
meta.function.c,meta.function.cpp #e28248 —
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 #c5c7c1 —
punctuation.separator.key-value #c5c7c1 —
keyword.operator.expression.import #81a2be —
support.constant.math #e8e2ac —
support.constant.property.math #de935f —
variable.other.constant #e8e2ac —
storage.type.annotation.java, storage.type.object.array.java #e8e2ac —
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 #c5c7c1 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #e8e2ac —
keyword.operator.instanceof.java #c7bb7d —
meta.definition.variable.name.java #e28248 —
keyword.operator.logical #8abeb7 —
keyword.operator.bitwise #8abeb7 —
keyword.operator.channel #8abeb7 —
support.constant.property-value.scss,support.constant.property-value.css #de935f —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #8abeb7 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #de935f —
punctuation.separator.list.comma.css #c5c7c1 —
support.constant.color.w3c-standard-color-name.css #de935f —
support.type.vendored.property-name.css #8abeb7 —
support.module.node,support.type.object.module,support.module.node #e8e2ac —
entity.name.type.module #e8e2ac —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #e28248 —
support.constant.json #de935f —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #c7bb7d —
support.type.object.console #e28248 —
support.variable.property.process #de935f —
entity.name.function,support.function.console #81a2be —
keyword.operator.misc.rust #c5c7c1 —
keyword.operator.sigil.rust #c7bb7d —
keyword.operator.delete #c7bb7d —
support.type.object.dom #8abeb7 —
support.variable.dom,support.variable.property.dom #e28248 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #8abeb7 —
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 #c7bb7d —
punctuation.separator.delimiter #c5c7c1 —
punctuation.separator.c,punctuation.separator.cpp #c7bb7d —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #8abeb7 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #c7bb7d —
variable.parameter.function.language.python #de935f —
support.type.python #8abeb7 —
keyword.operator.logical.python #c7bb7d —
variable.parameter.function.python #de935f —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #c5c7c1 —
meta.function-call.generic.python #81a2be —
constant.character.format.placeholder.other.python #de935f —
keyword.operator.assignment.compound #c7bb7d —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #8abeb7 —
entity.name.namespace #e8e2ac —
variable.language #e8e2ac —
token.variable.parameter.java #c5c7c1 —
import.storage.java #e8e2ac —
token.package.keyword #c7bb7d —
entity.name.function, meta.require, support.function.any-method, variable.function #81a2be —
entity.name.type.namespace #e8e2ac —
support.class, entity.name.type.class #e8e2ac —
entity.name.class.identifier.namespace.type #e8e2ac —
entity.name.class, variable.other.class.js, variable.other.class.ts #e8e2ac —
variable.other.class.php #e28248 —
control.elements, keyword.operator.less #de935f —
keyword.other.special-method #81a2be —
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 #c7bb7d —
token.storage.type.java #e8e2ac —
support.type.property-name #c5c7c1 —
support.constant.property-value #c5c7c1 —
support.constant.font-name #de935f —
entity.other.inherited-class #e8e2ac —
constant.other.symbol #8abeb7 —
punctuation.definition.constant #de935f —
entity.other.attribute-name #de935f —
entity.other.attribute-name.id #81a2be normal
entity.other.attribute-name.class.css #de935f normal
markup.heading punctuation.definition.heading, entity.name.section #81a2be —
keyword.other.unit #e28248 —
markup.bold,todo.bold #de935f —
punctuation.definition.bold #e8e2ac —
markup.italic, punctuation.definition.italic,todo.emphasis #c7bb7d —
entity.name.section.markdown #e28248 —
punctuation.definition.heading.markdown #e28248 —
punctuation.definition.list.begin.markdown #e28248 —
markup.heading.setext #c5c7c1 —
punctuation.definition.bold.markdown #de935f —
markup.inline.raw.markdown #b3bd5b —
markup.inline.raw.string.markdown #b3bd5b —
punctuation.definition.list.markdown #e28248 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #e28248 —
beginning.punctuation.definition.list.markdown #e28248 —
punctuation.definition.metadata.markdown #e28248 —
markup.underline.link.markdown,markup.underline.link.image.markdown #c7bb7d —
string.other.link.title.markdown,string.other.link.description.markdown #81a2be —
constant.character.escape #8abeb7 —
punctuation.section.embedded, variable.interpolation #e28248 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #c7bb7d —
invalid.illegal.bad-ampersand.html #c5c7c1 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #e28248 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #e28248 —
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 #b3bd5b —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #8abeb7 —
support.type.property-name.json #e28248 —
support.type.property-name.json punctuation #e28248 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #c7bb7d —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #c7bb7d —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #e8e2ac —
keyword.operator.error-control.php #c7bb7d —
keyword.operator.type.php #c7bb7d —
punctuation.section.array.begin.php #c5c7c1 —
punctuation.section.array.end.php #c5c7c1 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #e8e2ac —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #81a2be —
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 #c5c7c1 —
support.constant.core.rust #de935f —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #de935f —
entity.name.goto-label.php,support.other.php #81a2be —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #8abeb7 —
keyword.operator.regexp.php #c7bb7d —
keyword.operator.comparison.php #8abeb7 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #c7bb7d —
meta.function.decorator.python #81a2be —
support.token.decorator.python,meta.function.decorator.identifier.python #8abeb7 —
function.parameter #c5c7c1 —
function.parameter.ruby, function.parameter.cs #c5c7c1 —
constant.language.symbol.ruby #8abeb7 —
inline-color-decoration rgb-value #de935f —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #e8e2ac —
block.scope.end,block.scope.begin #c5c7c1 —
entity.name.variable.local.cs #e28248 —
token.error-token #f44747 —
token.debug-token #c7bb7d —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #c7bb7d —
meta.template.expression #c5c7c1 —
keyword.operator.module #c7bb7d —
support.type.type.flowtype #81a2be —
support.type.primitive #e8e2ac —
meta.property.object #e28248 —
variable.parameter.function.js #e28248 —
keyword.other.template.begin #b3bd5b —
keyword.other.template.end #b3bd5b —
keyword.other.substitution.begin #b3bd5b —
keyword.other.substitution.end #b3bd5b —
keyword.operator.assignment #8abeb7 —
keyword.operator.assignment.go #e8e2ac —
keyword.operator.arithmetic.go, keyword.operator.address.go #c7bb7d —
entity.name.package.go #e8e2ac —
support.type.prelude.elm #8abeb7 —
support.constant.elm #de935f —
punctuation.quasi.element #c7bb7d —
constant.character.entity #e28248 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #8abeb7 —
entity.global.clojure #e8e2ac —
meta.symbol.clojure #e28248 —
constant.keyword.clojure #8abeb7 —
meta.arguments.coffee, variable.parameter.function.coffee #e28248 —
meta.scope.prerequisites.makefile #e28248 —
storage.modifier.import.groovy #e8e2ac —
meta.method.groovy #81a2be —
meta.definition.variable.name.groovy #e28248 —
meta.definition.class.inherited.classes.groovy #b3bd5b —
support.variable.semantic.hlsl #e8e2ac —
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 #c7bb7d —
text.variable, text.bracketed #e28248 —
support.type.swift, support.type.vb.asp #e8e2ac —
entity.name.function.xi #e8e2ac —
entity.name.class.xi #8abeb7 —
constant.character.character-class.regexp.xi #e28248 —
constant.regexp.xi #c7bb7d —
keyword.control.xi #8abeb7 —
beginning.punctuation.definition.quote.markdown.xi #b3bd5b —
beginning.punctuation.definition.list.markdown.xi #66655c —
constant.character.xi #81a2be —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #66655c —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #e8e2ac —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #e28248 —
meta.brace.square #c5c7c1 —
comment, punctuation.definition.comment #66655c italic
markup.quote.markdown #66655c —
punctuation.definition.block.sequence.item.yaml #c5c7c1 —
constant.language.symbol.elixir #8abeb7 —
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...
~/my-project
main*
Shades Of Gravy | Coding Theme Button.tsx
31
$
export interface User {
id : string ;
name : string ;
role : "admin" | "member" ;
tags : string [];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser ( id : string ): Promise < User | null > {
if ( ! id ) {
return null ;
}
const response = await fetch ( `/api/users/ ${ id } ` , {
method : "GET" ,
headers : { Accept : "application/json" },
});
if ( ! response . ok ) {
throw new Error ( `HTTP ${ response . status } ` );
}
return ( await response . json ()) as User ;
}
function greet ( user : User ): string {
// Simple greeting function that uses the user's name
return `Hello, ${ user . name } !` ;
}