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 #242428 activityBar.foreground #ffb7c5 activityBar.inactiveForeground #ffffff66 activityBarBadge.background #ff3058 activityBarBadge.foreground #ffffff badge.background #ff3058 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 #ffb7c5 — variable.other.generic-type.haskell #ff3058 — storage.type.haskell #7bffb8 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
badge.foreground
#ffffff
breadcrumb.activeSelectionForeground #ffb7c5
breadcrumb.background #1e1e1e
breadcrumb.focusForeground #ffb7c5
breadcrumb.foreground #cccccccc
button.background #ff3058
button.foreground #ffffff
button.hoverBackground #ffb7c5
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e
checkbox.background #3c3c3c
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #2b2b30
debugExceptionWidget.border #404047
debugToolBar.background #2b2b30
debugToolBar.border #404047
diffEditor.border #444444
diffEditor.insertedTextBackground #7bffb832
diffEditor.removedTextBackground #ff305822
dropdown.background #3c3c3c
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #1f1f22
editor.findMatchBackground #7bffb856
editor.findMatchBorder #7bffb8b3
editor.findMatchHighlightBackground #ffb7c522
editor.findMatchHighlightBorder #ffb7c5
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #ffb7c518
editor.foreground #cccccc
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #3a3d41
editor.lineHighlightBackground #ffffff24
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #ffb7c522
editor.selectionHighlightBackground #ffb7c522
editor.selectionHighlightBorder #ffb7c5
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #ffb7c550
editor.wordHighlightStrongBorder #ffffff
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #ffb7c5
editorError.background #ffffff00
editorError.border #ffffff00
editorError.foreground #ff3058
editorGroup.border #444444
editorGroup.emptyBackground #1f1f22
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #242428
editorGroupHeader.tabsBorder #00000000
editorGutter.addedBackground #7bffb8
editorGutter.background #1f1f22
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #ff3058
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #ffffff
editorHoverWidget.background #252526
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #707070
editorIndentGuide.background #ffffff0f
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #7bffb8
editorLineNumber.activeForeground #c6c6c6
editorLineNumber.foreground #858585
editorLink.activeForeground #ff3058
editorMarkerNavigation.background #2b2b30
editorMarkerNavigationError.background #ff3058
editorMarkerNavigationInfo.background #ffffff10
editorMarkerNavigationWarning.background #ffb7c53c
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #2b2b30
editorSuggestWidget.border #45454500
editorSuggestWidget.foreground #cccccc
editorSuggestWidget.highlightForeground #ff3058
editorSuggestWidget.selectedBackground #ffb7c51e
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffb7c5
editorWhitespace.foreground #ffffff29
editorWidget.background #252526
editorWidget.foreground #cccccc
editorWidget.resizeBorder #404047
focusBorder #ffb7c5
foreground #ffb7c5
gitDecoration.addedResourceForeground #7bffb8
gitDecoration.conflictingResourceForeground #ffb7c5
gitDecoration.deletedResourceForeground #ff3058
gitDecoration.ignoredResourceForeground #8e8e8e
gitDecoration.modifiedResourceForeground #ffb7c5
gitDecoration.stageDeletedResourceForeground #ff3058
gitDecoration.stageModifiedResourceForeground #ffb7c5
gitDecoration.submoduleResourceForeground #ffb7c5
gitDecoration.untrackedResourceForeground #7bffb8
icon.foreground #ffb7c5
input.background #3c3c3c
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #ffffff
inputOption.activeBackground #ffb7c5
inputOption.activeBorder #007acc00
inputOption.activeForeground #000000
list.activeSelectionBackground #ffb7c5
list.activeSelectionForeground #000000
list.dropBackground #404047
list.focusBackground #ffb7c5
list.focusForeground #000000
list.highlightForeground #ff3058
list.hoverBackground #2a2d2e
list.hoverForeground #cccccc
list.inactiveSelectionBackground #37373d
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #a51f3a
listFilterWidget.noMatchesOutline #ff3058
listFilterWidget.outline #00000000
menu.background #242428
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #ff3058
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #404047
menubar.selectionBackground #ffffff1a
menubar.selectionBorder #ff000000
menubar.selectionForeground #cccccc
merge.commonContentBackground #2b2b30
merge.commonHeaderBackground #404047
merge.currentContentBackground #2a543d
merge.currentHeaderBackground #356f50
merge.incomingContentBackground #563d42
merge.incomingHeaderBackground #90656d
minimap.background #1f1f22
minimap.errorHighlight #ff3058
minimap.findMatchHighlight #7bffb856
minimap.selectionHighlight #ffb7c522
minimap.warningHighlight #ffb7c5
minimapGutter.addedBackground #7bffb8
minimapGutter.deletedBackground #ff3058
minimapGutter.modifiedBackground #ffffff
notificationCenter.border #47474700
notificationCenterHeader.background #2b2b30
notificationCenterHeader.foreground #cccccc
notifications.background #2b2b30
notifications.border #30303100
notifications.foreground #cccccc
notificationsErrorIcon.foreground #ff3058
notificationsInfoIcon.foreground #7bffb8
notificationsWarningIcon.foreground #ffb7c5
notificationToast.border #40404700
panel.background #1f1f22
panel.border #80808000
panelSection.border #80808059
panelTitle.activeBorder #ffb7c5
panelTitle.activeForeground #ffb7c5
panelTitle.inactiveForeground #e7e7e799
peekView.border #007acc
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #252526
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #404047
pickerGroup.foreground #ff3058
progressBar.background #ffb7c5
scrollbar.shadow #000000
scrollbarSlider.activeBackground #ffb7c5
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #ffb7c5
selection.background #ff3058
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffb7c5
sideBar.background #242428
sideBar.dropBackground #404047
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #1f1f22
statusBar.border #00000000
statusBar.debuggingBackground #ffb7c5
statusBar.debuggingBorder #000000
statusBar.debuggingForeground #000000
statusBar.foreground #ffb7c5
statusBar.noFolderBackground #242428
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #ff3058
statusBarItem.remoteForeground #ffffff
tab.activeBackground #242428
tab.activeBorder #ffb7c5
tab.activeBorderTop #00000000
tab.activeForeground #ffb7c5
tab.border #00000000
tab.inactiveBackground #242428
tab.inactiveForeground #ffffff80
terminal.ansiBlack #000000
terminal.ansiBlue #7bffb8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #7bffb8
terminal.ansiBrightCyan #7bffb8
terminal.ansiBrightGreen #7bffb8
terminal.ansiBrightMagenta #ffb7c5
terminal.ansiBrightRed #ffb7c5
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #ffb7c5
terminal.ansiCyan #7bffb8
terminal.ansiGreen #7bffb8
terminal.ansiMagenta #ff3058
terminal.ansiRed #ff3058
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #ffb7c5
terminal.border #80808059
terminal.foreground #cccccc
terminal.selectionBackground #ffb7c532
terminalCursor.background #ff3058
terminalCursor.foreground #ffffff
textLink.foreground #ff3058
titleBar.activeBackground #2b2b30
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #242428
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #404047
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #ffb7c5
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #cccccc —
variable.parameter.function.language.special.self.python #ffffff —
storage.modifier.lifetime.rust #cccccc —
support.function.std.rust #cccccc —
entity.name.lifetime.rust #ffffff —
variable.language.rust #ffb7c5 —
support.constant.edge #ff3058 —
constant.other.character-class.regexp #ffb7c5 —
keyword.operator.quantifier.regexp #7bffb8 —
punctuation.definition.string.begin,punctuation.definition.string.end #7bffb8 —
variable.parameter.function #cccccc —
comment markup.link #7f848e —
markup.changed.diff #ffffff —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #cccccc —
markup.inserted.diff #7bffb8 —
markup.deleted.diff #ffb7c5 —
meta.function.c,meta.function.cpp #ffb7c5 —
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 #cccccc —
punctuation.separator.key-value #cccccc —
keyword.operator.expression.import #cccccc —
support.constant.math #ffffff —
support.constant.property.math #7bffb8 —
variable.other.constant #ffffff —
storage.type.annotation.java, storage.type.object.array.java #ffffff —
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 #cccccc —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ffffff —
keyword.operator.instanceof.java #ff3058 —
meta.definition.variable.name.java #ffb7c5 —
keyword.operator.logical #ffffff —
keyword.operator.bitwise #ffffff —
keyword.operator.channel #ffffff —
support.constant.property-value.scss,support.constant.property-value.css #7bffb8 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ffffff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #7bffb8 —
punctuation.separator.list.comma.css #cccccc —
support.constant.color.w3c-standard-color-name.css #7bffb8 —
support.type.vendored.property-name.css #ffffff —
support.module.node,support.type.object.module,support.module.node #ffffff —
entity.name.type.module #ffffff —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ffb7c5 —
support.constant.json #7bffb8 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ff3058 —
support.type.object.console #ffb7c5 —
support.variable.property.process #7bffb8 —
entity.name.function,support.function.console #cccccc —
keyword.operator.misc.rust #cccccc —
keyword.operator.sigil.rust #ff3058 —
keyword.operator.delete #ff3058 —
support.type.object.dom #ffffff —
support.variable.dom,support.variable.property.dom #ffb7c5 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ffffff —
keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp #ff3058 —
punctuation.separator.delimiter #cccccc —
punctuation.separator.c,punctuation.separator.cpp #ff3058 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ffffff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ff3058 —
variable.parameter.function.language.python #7bffb8 —
support.type.python #ffffff —
keyword.operator.logical.python #ff3058 —
variable.parameter.function.python #7bffb8 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #cccccc —
meta.function-call.generic.python #cccccc —
constant.character.format.placeholder.other.python #7bffb8 —
keyword.operator.assignment.compound #ff3058 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ffffff —
keyword #ff3058 italic bold
entity.name.namespace #ffffff bold
variable.language #ffffff —
token.variable.parameter.java #cccccc —
import.storage.java #ffffff —
token.package.keyword #ff3058 —
entity.name.function, meta.require, support.function.any-method, variable.function #cccccc —
entity.name.type.namespace #ffffff bold
support.class, entity.name.type.class #ffffff —
entity.name.class.identifier.namespace.type #ffffff —
entity.name.class, variable.other.class.js, variable.other.class.ts #ffffff bold
variable.other.class.php #ffb7c5 —
entity.name.type #ffffff bold
control.elements, keyword.operator.less #7bffb8 —
keyword.other.special-method #cccccc —
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 #ff3058 —
token.storage.type.java #ffffff —
support.type.property-name #cccccc —
support.constant.property-value #cccccc —
support.constant.font-name #7bffb8 —
entity.other.inherited-class #ffffff —
constant.other.symbol #ffffff —
punctuation.definition.constant #7bffb8 —
entity.other.attribute-name #7bffb8 —
entity.other.attribute-name.id #cccccc normal
entity.other.attribute-name.class.css #7bffb8 normal
markup.heading punctuation.definition.heading, entity.name.section #cccccc —
keyword.other.unit #ffb7c5 —
markup.bold,todo.bold #7bffb8 —
punctuation.definition.bold #ffffff —
markup.italic, punctuation.definition.italic,todo.emphasis #ff3058 —
entity.name.section.markdown #ffb7c5 —
punctuation.definition.heading.markdown #ffb7c5 —
punctuation.definition.list.begin.markdown #ffb7c5 —
markup.heading.setext #cccccc —
punctuation.definition.bold.markdown #7bffb8 —
markup.inline.raw.markdown #7bffb8 —
markup.inline.raw.string.markdown #7bffb8 —
punctuation.definition.list.markdown #ffb7c5 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ffb7c5 —
beginning.punctuation.definition.list.markdown #ffb7c5 —
punctuation.definition.metadata.markdown #ffb7c5 —
markup.underline.link.markdown,markup.underline.link.image.markdown #ff3058 —
string.other.link.title.markdown,string.other.link.description.markdown #cccccc —
constant.character.escape #ffffff —
punctuation.section.embedded, variable.interpolation #ffb7c5 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ff3058 —
invalid.illegal.bad-ampersand.html #cccccc —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ffb7c5 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ffb7c5 —
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 #7bffb8 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ffffff —
support.type.property-name.json #ffb7c5 —
support.type.property-name.json punctuation #ffb7c5 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ff3058 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ff3058 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ffffff —
keyword.operator.error-control.php #ff3058 —
keyword.operator.type.php #ff3058 —
punctuation.section.array.begin.php #cccccc —
punctuation.section.array.end.php #cccccc —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ffffff —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #cccccc —
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 #cccccc —
support.constant.core.rust #7bffb8 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #7bffb8 —
entity.name.goto-label.php,support.other.php #cccccc —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ffffff —
keyword.operator.regexp.php #ff3058 —
keyword.operator.comparison.php #ffffff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ff3058 —
meta.function.decorator.python #cccccc —
support.token.decorator.python,meta.function.decorator.identifier.python #ffffff —
function.parameter #cccccc —
function.parameter.ruby, function.parameter.cs #cccccc —
constant.language.symbol.ruby #ffffff —
inline-color-decoration rgb-value #7bffb8 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ffffff —
block.scope.end,block.scope.begin #cccccc —
entity.name.variable.local.cs #ffb7c5 —
token.error-token #f44747 —
token.debug-token #ff3058 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ff3058 —
meta.template.expression #cccccc —
keyword.operator.module #ff3058 —
support.type.type.flowtype #cccccc —
support.type.primitive #ffffff —
meta.property.object #ffb7c5 —
variable.parameter.function.js #ffb7c5 —
keyword.other.template.begin #7bffb8 —
keyword.other.template.end #7bffb8 —
keyword.other.substitution.begin #7bffb8 —
keyword.other.substitution.end #7bffb8 —
keyword.operator.assignment #ffffff —
keyword.operator.assignment.go #ffffff —
keyword.operator.arithmetic.go, keyword.operator.address.go #ff3058 —
entity.name.package.go #ffffff —
support.type.prelude.elm #ffffff —
support.constant.elm #7bffb8 —
punctuation.quasi.element #ff3058 —
constant.character.entity #ffb7c5 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ffffff —
entity.global.clojure #ffffff —
meta.symbol.clojure #ffb7c5 —
constant.keyword.clojure #ffffff —
meta.arguments.coffee, variable.parameter.function.coffee #ffb7c5 —
meta.scope.prerequisites.makefile #ffb7c5 —
storage.modifier.import.groovy #ffffff —
meta.method.groovy #cccccc —
meta.definition.variable.name.groovy #ffb7c5 —
meta.definition.class.inherited.classes.groovy #7bffb8 —
support.variable.semantic.hlsl #ffffff —
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 #ff3058 —
text.variable, text.bracketed #ffb7c5 —
support.type.swift, support.type.vb.asp #ffffff —
entity.name.function.xi #ffffff —
entity.name.class.xi #ffffff —
constant.character.character-class.regexp.xi #ffb7c5 —
constant.regexp.xi #ff3058 —
keyword.control.xi #ffffff —
beginning.punctuation.definition.quote.markdown.xi #7bffb8 —
beginning.punctuation.definition.list.markdown.xi #7f848e —
constant.character.xi #cccccc —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #7f848e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ffffff —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ffb7c5 —
meta.brace.square #cccccc —
comment, punctuation.definition.comment #7f848e italic
markup.quote.markdown #7f848e —
punctuation.definition.block.sequence.item.yaml #cccccc —
constant.language.symbol.elixir #ffffff —
entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super — italic
comment.line.double-slash,comment.block.documentation — italic
keyword.control.import.python,keyword.control.flow.python — italic
markup.italic.markdown — italic
export interface User {
id : string ;
name : string ;
role : "admin" | "member" ;
tags : string [];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser( id : string ) : Promise < User | null > {
if ( ! id ) {
return null ;
}
const response = await fetch( `/api/users/ ${ id } ` , {
method : "GET" ,
headers : { Accept : "application/json" },
});
if ( ! response . ok ) {
throw new Error( `HTTP ${ response . status } ` );
}
return ( await response .json()) as User ;
}
function greet( user : User ) : string {
// Simple greeting function that uses the user's name
return `Hello, ${ user . name } !` ;
}
fetchUser.ts
index.ts
README.md
src
components
fetchUser.ts
src
components
fetchUser.ts
fetchUser 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
main*
Button.tsx
31
~/my-project
$
export interface User {
id : string ;
name : string ;
role : "admin" | "member" ;
tags : string [];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser( id : string ) : Promise < User | null > {
if ( ! id ) {
return null ;
}
const response = await fetch( `/api/users/ ${ id } ` , {
method : "GET" ,
headers : { Accept : "application/json" },
});
if ( ! response . ok ) {
throw new Error( `HTTP ${ response . status } ` );
}
return ( await response .json()) as User ;
}
function greet( user : User ) : string {
// Simple greeting function that uses the user's name
return `Hello, ${ user . name } !` ;
}
sakura | Coding Theme