Skip to main content
Home Theme VS Code Bleu Light Bleu Light is gray-bluish modified version of VS Light+ 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 #dadeea activityBar.activeBorder #dadeea activityBar.activeFocusBorder #005a8e activityBar.background #dadeea activityBar.border #8da1b97a activityBar.dropBorder #005a8e tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle meta.embedded, source.groovy.embedded, string meta.image.inline.markdown #000000ff — emphasis — italic strong — bold meta.diff.header #000080 — comment #008000
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBar.foreground
#005a8eca
activityBar.inactiveForeground #8da1b9
activityBarBadge.background #005a8e
activityBarBadge.foreground #dadeea
badge.background #005a8e
badge.foreground #dadeea
breadcrumb.activeSelectionForeground #111b27
breadcrumb.background #dadeea
breadcrumb.focusForeground #111b27
breadcrumb.foreground #111b27ba
breadcrumbPicker.background #f0f4f8
button.background #005a8e
button.border #8da1b97a
button.foreground #dadeea
button.hoverBackground #005a8eca
button.secondaryBackground #8da1b9
button.secondaryForeground #111b27
checkbox.background #dadeea
checkbox.border #8da1b97a
checkbox.foreground #213043
contrastActiveBorder #8da1b900
contrastBorder #8da1b900
debugConsole.errorForeground #c22f2e
debugConsole.infoForeground #005a8e
debugConsole.sourceForeground #005a8e
debugConsole.warningForeground #a04900
debugConsoleInputIcon.foreground #006d6d
debugExceptionWidget.background #f0f4f8
debugExceptionWidget.border #8da1b97a
debugIcon.breakpointCurrentStackframeForeground #116b00
debugIcon.breakpointDisabledForeground #a04900
debugIcon.breakpointForeground #a04900
debugIcon.breakpointStackframeForeground #005a8e
debugIcon.breakpointUnverifiedForeground #7c00aa
debugIcon.continueForeground #005a8e
debugIcon.pauseForeground #005a8e
debugIcon.restartForeground #a04900
debugIcon.startForeground #116b00
debugIcon.stepBackForeground #755f00
debugIcon.stepIntoForeground #755f00
debugIcon.stepOutForeground #755f00
debugIcon.stepOverForeground #755f00
debugIcon.stopForeground #c22f2e
debugTokenExpression.boolean #755f00
debugTokenExpression.error #c22f2e
debugTokenExpression.name #005a8e
debugTokenExpression.number #755f00
debugTokenExpression.string #116b00
debugTokenExpression.value #af00af
debugToolBar.background #f0f4f8
debugToolBar.border #8da1b97a
debugView.stateLabelBackground #8da1b9ba
debugView.stateLabelForeground #0b121b
debugView.valueChangedHighlight #8da1b9
descriptionForeground #3c526d
diffEditor.border #8da1b97a
diffEditor.diagonalFill #8da1b97a
diffEditor.insertedLineBackground #116b001a
diffEditor.insertedTextBackground #116b001a
diffEditor.insertedTextBorder #116b001a
diffEditor.removedLineBackground #c22f2e1a
diffEditor.removedTextBackground #c22f2e1a
diffEditor.removedTextBorder #c22f2e1a
diffEditorGutter.insertedLineBackground #116b002a
diffEditorGutter.removedLineBackground #c22f2e2a
diffEditorOverview.insertedForeground #116b007a
diffEditorOverview.removedForeground #c22f2e7a
disabledForeground #3c526d
dropdown.background #dadeea
dropdown.border #8da1b97a
dropdown.foreground #213043
dropdown.listBackground #f0f4f8
editor.background #dadeea
editor.findMatchBackground #005a8e2a
editor.findMatchBorder #005a8e1a
editor.findMatchHighlightBackground #005a8e1a
editor.findMatchHighlightBorder #005a8e7a
editor.focusedStackFrameHighlightBackground #8da1b94a
editor.foldBackground #8da1b92a
editor.foreground #111b27
editor.hoverHighlightBackground #8da1b95a
editor.inactiveSelectionBackground #8da1b94a
editor.lineHighlightBackground #dadeea
editor.lineHighlightBorder #dadeea
editor.linkedEditingBackground #dadeea
editor.rangeHighlightBackground #dadeea
editor.rangeHighlightBorder #dadeea
editor.selectionBackground #8da1b98a
editor.selectionHighlightBackground #8da1b96a
editor.selectionHighlightBorder #8da1b96a
editor.snippetFinalTabstopHighlightBackground #8da1b93a
editor.snippetFinalTabstopHighlightBorder #8da1b9da
editor.snippetTabstopHighlightBackground #8da1b92a
editor.snippetTabstopHighlightBorder #8da1b9ba
editor.stackFrameHighlightBackground #8da1b94a
editor.symbolHighlightBackground #005a8e1a
editor.symbolHighlightBorder #005a8e7a
editor.wordHighlightBackground #8da1b94a
editor.wordHighlightBorder #8da1b97a
editor.wordHighlightStrongBackground #8da1b92a
editor.wordHighlightStrongBorder #8da1b9
editorBracketHighlight.foreground1 #005a8e
editorBracketHighlight.foreground2 #a04900
editorBracketHighlight.foreground3 #af00af
editorBracketHighlight.foreground4 #755f00
editorBracketHighlight.foreground5 #006d6d
editorBracketHighlight.foreground6 #7c00aa
editorBracketHighlight.unexpectedBracket.foreground #c22f2e
editorBracketMatch.background #005a8e1a
editorBracketMatch.border #005a8eda
editorCodeLens.foreground #3c526d
editorCursor.background #dadeea
editorCursor.foreground #111b27
editorError.background #c22f2e00
editorError.border #c22f2e00
editorError.foreground #c22f2e
editorGroup.border #8da1b97a
editorGroup.dropBackground #005a8e1a
editorGroup.emptyBackground #dadeea
editorGroup.focusedEmptyBorder #005a8e
editorGroupHeader.border #8da1b97a
editorGroupHeader.noTabsBackground #dadeea
editorGroupHeader.tabsBackground #dadeea
editorGroupHeader.tabsBorder #8da1b97a
editorGutter.addedBackground #116b00
editorGutter.background #dadeea
editorGutter.deletedBackground #c22f2e
editorGutter.foldingControlForeground #111b27
editorGutter.modifiedBackground #755f00
editorHint.border #755f0000
editorHint.foreground #755f00
editorHoverWidget.background #f0f4f8
editorHoverWidget.border #8da1b97a
editorHoverWidget.foreground #213043
editorHoverWidget.statusBarBackground #dadeea
editorIndentGuide.activeBackground #3c526d7a
editorIndentGuide.background #3c526d3a
editorInfo.background #005a8e00
editorInfo.border #005a8e00
editorInfo.foreground #005a8e
editorLightBulb.foreground #755f00
editorLightBulbAutoFix.foreground #755f00
editorLineNumber.activeForeground #3c526d
editorLineNumber.foreground #3c526dc2
editorLink.activeForeground #005a8e
editorMarkerNavigation.background #f0f4f8
editorMarkerNavigationError.background #c22f2e
editorMarkerNavigationError.headerBackground #c22f2e2a
editorMarkerNavigationInfo.background #005a8e
editorMarkerNavigationInfo.headerBackground #005a8e2a
editorMarkerNavigationWarning.background #a04900
editorMarkerNavigationWarning.headerBackground #a049002a
editorOverviewRuler.addedForeground #116b00
editorOverviewRuler.background #dadeea
editorOverviewRuler.border #8da1b97a
editorOverviewRuler.bracketMatchForeground #005a8eda
editorOverviewRuler.commonContentForeground #005a8e
editorOverviewRuler.currentContentForeground #005a8eda
editorOverviewRuler.deletedForeground #c22f2e
editorOverviewRuler.errorForeground #c22f2e
editorOverviewRuler.findMatchForeground #005a8e7a
editorOverviewRuler.incomingContentForeground #006d6dda
editorOverviewRuler.infoForeground #005a8e
editorOverviewRuler.modifiedForeground #755f00
editorOverviewRuler.rangeHighlightForeground #dadeea
editorOverviewRuler.selectionHighlightForeground #8da1b9
editorOverviewRuler.warningForeground #a04900
editorOverviewRuler.wordHighlightForeground #8da1b9
editorOverviewRuler.wordHighlightStrongForeground #3c526dda
editorPane.background #dadeea
editorRuler.foreground #3c526d3a
editorSuggestWidget.background #f0f4f8
editorSuggestWidget.border #8da1b97a
editorSuggestWidget.focusHighlightForeground #005a8e
editorSuggestWidget.foreground #213043
editorSuggestWidget.highlightForeground #005a8e
editorSuggestWidget.selectedBackground #dadeea
editorSuggestWidget.selectedForeground #111b27
editorSuggestWidget.selectedIconForeground #111b27
editorUnnecessaryCode.border #3c526d2a
editorUnnecessaryCode.opacity #3c526dba
editorWarning.background #a0490000
editorWarning.border #a0490000
editorWarning.foreground #a04900
editorWhitespace.foreground #3c526d5a
editorWidget.background #f0f4f8
editorWidget.border #8da1b97a
editorWidget.foreground #213043
editorWidget.resizeBorder #8da1b9
errorForeground #c22f2e
extensionButton.prominentBackground #005a8e
extensionButton.prominentForeground #dadeea
extensionButton.prominentHoverBackground #005a8eca
extensionIcon.starForeground #a04900
focusBorder #005a8e
foreground #111b27
icon.foreground #111b27
input.background #dadeea
input.border #8da1b97a
input.foreground #213043
input.placeholderForeground #3c526d
inputOption.activeBackground #dadeea
inputOption.activeBorder #005a8e
inputOption.activeForeground #005a8e
inputOption.hoverBackground #8da1b94a
inputValidation.errorBackground #f0f4f8
inputValidation.errorBorder #c22f2e
inputValidation.errorForeground #c22f2e
inputValidation.infoBackground #f0f4f8
inputValidation.infoBorder #005a8e
inputValidation.infoForeground #005a8e
inputValidation.warningBackground #f0f4f8
inputValidation.warningBorder #a04900
inputValidation.warningForeground #a04900
keybindingLabel.background #dadeea
keybindingLabel.border #8da1b97a
keybindingLabel.bottomBorder #8da1b9
keybindingLabel.foreground #111b27
list.activeSelectionBackground #8da1b95a
list.activeSelectionForeground #111b27
list.activeSelectionIconForeground #111b27
list.deemphasizedForeground #006d6d
list.dropBackground #005a8e1a
list.errorForeground #c22f2e
list.filterMatchBackground #005a8e2a
list.filterMatchBorder #005a8e7a
list.focusBackground #8da1b96a
list.focusForeground #111b27
list.focusHighlightForeground #005a8e
list.focusOutline #005a8e
list.highlightForeground #005a8e
list.hoverBackground #8da1b95a
list.hoverForeground #111b27
list.inactiveFocusBackground #8da1b94a
list.inactiveFocusOutline #8da1b97a
list.inactiveSelectionBackground #8da1b93a
list.inactiveSelectionForeground #111b27da
list.inactiveSelectionIconForeground #111b27da
list.invalidItemForeground #c22f2e
list.warningForeground #a04900
listFilterWidget.background #f0f4f8
listFilterWidget.noMatchesOutline #c22f2e
listFilterWidget.outline #8da1b9
menu.background #f0f4f8
menu.border #8da1b9
menu.foreground #213043
menu.selectionBackground #8da1b93a
menu.selectionBorder #8da1b97a
menu.selectionForeground #111b27
menu.separatorBackground #8da1b9
menubar.selectionBackground #8da1b95a
menubar.selectionBorder #8da1b900
menubar.selectionForeground #111b27
merge.border #8da1b97a
merge.currentContentBackground #005a8e2a
merge.currentHeaderBackground #005a8e5a
merge.incomingContentBackground #006d6d2a
merge.incomingHeaderBackground #006d6d5a
minimap.background #dadeea
minimap.errorHighlight #c22f2e
minimap.findMatchHighlight #005a8e
minimap.foregroundOpacity #111b27e0
minimap.selectionHighlight #8da1b9
minimap.selectionOccurrenceHighlight #005a8e5a
minimap.warningHighlight #a04900
minimapGutter.addedBackground #116b00
minimapGutter.deletedBackground #c22f2e
minimapGutter.modifiedBackground #755f00
minimapSlider.activeBackground #8da1b98a
minimapSlider.background #8da1b94a
minimapSlider.hoverBackground #8da1b97a
notificationCenter.border #8da1b97a
notificationCenterHeader.background #f0f4f8
notificationCenterHeader.foreground #213043
notificationLink.foreground #005a8e
notifications.background #f0f4f8
notifications.border #8da1b97a
notifications.foreground #213043
notificationsErrorIcon.foreground #c22f2e
notificationsInfoIcon.foreground #005a8e
notificationsWarningIcon.foreground #a04900
notificationToast.border #8da1b97a
panel.background #dadeea
panel.border #8da1b97a
panel.dropBorder #005a8e
panelTitle.activeBorder #111b27
panelTitle.activeForeground #111b27
panelTitle.inactiveForeground #111b27
peekView.border #8da1b97a
peekViewEditor.background #f0f4f87a
peekViewEditor.matchHighlightBackground #005a8e3a
peekViewEditor.matchHighlightBorder #005a8e00
peekViewEditorGutter.background #dadeea
peekViewResult.background #dadeea
peekViewResult.fileForeground #213043
peekViewResult.lineForeground #213043
peekViewResult.matchHighlightBackground #005a8e2a
peekViewResult.selectionBackground #8da1b95a
peekViewResult.selectionForeground #111b27
peekViewTitle.background #dadeea
peekViewTitleDescription.foreground #213043
peekViewTitleLabel.foreground #0b121b
pickerGroup.border #005a8e
pickerGroup.foreground #005a8e
problemsErrorIcon.foreground #c22f2e
problemsInfoIcon.foreground #005a8e
problemsWarningIcon.foreground #a04900
progressBar.background #005a8e
quickInput.background #f0f4f8
quickInput.foreground #213043
quickInputList.focusBackground #8da1b96a
quickInputList.focusForeground #111b27
quickInputList.focusIconForeground #111b27
quickInputTitle.background #8da1b94a
sash.hoverBorder #8da1b95a
scrollbar.shadow #111b275a
scrollbarSlider.activeBackground #8da1b98a
scrollbarSlider.background #8da1b94a
scrollbarSlider.hoverBackground #8da1b97a
searchEditor.findMatchBackground #005a8e1a
searchEditor.findMatchBorder #005a8e7a
searchEditor.textInputBorder #8da1b97a
selection.background #005a8e5a
settings.checkboxBackground #dadeea
settings.checkboxBorder #8da1b97a
settings.checkboxForeground #213043
settings.dropdownBackground #dadeea
settings.dropdownBorder #8da1b97a
settings.dropdownForeground #213043
settings.dropdownListBorder #8da1b97a
settings.focusedRowBackground #dadeea
settings.focusedRowBorder #8da1b97a
settings.headerBorder #8da1b97a
settings.headerForeground #111b27
settings.modifiedItemIndicator #755f00
settings.numberInputBackground #dadeea
settings.numberInputBorder #8da1b97a
settings.numberInputForeground #213043
settings.rowHoverBackground #dadeea
settings.sashBorder #8da1b97a
settings.textInputBackground #dadeea
settings.textInputBorder #8da1b97a
settings.textInputForeground #213043
sideBar.background #dadeea
sideBar.border #8da1b97a
sideBar.dropBackground #005a8e1a
sideBar.foreground #111b27
sideBarSectionHeader.background #8da1b94a
sideBarSectionHeader.border #8da1b97a
sideBarSectionHeader.foreground #213043
sideBarTitle.foreground #111b27
sideBySideEditor.horizontalBorder #8da1b97a
sideBySideEditor.verticalBorder #8da1b97a
statusBar.background #005a8e
statusBar.border #8da1b97a
statusBar.debuggingBackground #a04900
statusBar.debuggingBorder #8da1b97a
statusBar.debuggingForeground #dadeea
statusBar.foreground #dadeea
statusBar.noFolderBackground #8da1b97a
statusBar.noFolderBorder #8da1b97a
statusBar.noFolderForeground #111b27
statusBarItem.activeBackground #8da1b97a
statusBarItem.hoverBackground #8da1b95a
statusBarItem.prominentBackground #8da1b9ba
statusBarItem.prominentForeground #111b27
statusBarItem.prominentHoverBackground #dadeea
symbolIcon.arrayForeground #3c526d
symbolIcon.booleanForeground #3c526d
symbolIcon.classForeground #3c526d
symbolIcon.colorForeground #3c526d
symbolIcon.constantForeground #3c526d
symbolIcon.constructorForeground #3c526d
symbolIcon.enumeratorForeground #3c526d
symbolIcon.enumeratorMemberForeground #3c526d
symbolIcon.eventForeground #3c526d
symbolIcon.fieldForeground #3c526d
symbolIcon.fileForeground #3c526d
symbolIcon.folderForeground #3c526d
symbolIcon.functionForeground #3c526d
symbolIcon.interfaceForeground #3c526d
symbolIcon.keyForeground #3c526d
symbolIcon.keywordForeground #3c526d
symbolIcon.methodForeground #3c526d
symbolIcon.moduleForeground #3c526d
symbolIcon.namespaceForeground #3c526d
symbolIcon.nullForeground #3c526d
symbolIcon.numberForeground #3c526d
symbolIcon.objectForeground #3c526d
symbolIcon.operatorForeground #3c526d
symbolIcon.packageForeground #3c526d
symbolIcon.propertyForeground #3c526d
symbolIcon.referenceForeground #3c526d
symbolIcon.snippetForeground #3c526d
symbolIcon.stringForeground #3c526d
symbolIcon.structForeground #3c526d
symbolIcon.textForeground #3c526d
symbolIcon.typeParameterForeground #3c526d
symbolIcon.unitForeground #3c526d
symbolIcon.variableForeground #3c526d
tab.activeBackground #F0F4F9
tab.activeForeground #213043da
tab.activeModifiedBorder #755f00
tab.border #8da1b97a
tab.hoverBackground #f0f4f8
tab.hoverBorder #8da1b97a
tab.hoverForeground #213043
tab.inactiveBackground #dadeea
tab.inactiveForeground #111b27ba
tab.inactiveModifiedBorder #755f00
tab.lastPinnedBorder #8da1b9
tab.unfocusedActiveBackground #f0f4f8ba
tab.unfocusedActiveBorder #005a8e
tab.unfocusedActiveBorderTop #005a8e
tab.unfocusedActiveForeground #213043ba
tab.unfocusedActiveModifiedBorder #755f00
tab.unfocusedHoverBackground #f0f4f8
tab.unfocusedHoverBorder #8da1b97a
tab.unfocusedHoverForeground #213043
tab.unfocusedInactiveBackground #dadeea
tab.unfocusedInactiveForeground #111b279a
tab.unfocusedInactiveModifiedBorder #755f00
terminal.ansiBlack #dadeea
terminal.ansiBlue #005a8e
terminal.ansiBrightBlack #3c526d
terminal.ansiBrightBlue #005a8e
terminal.ansiBrightCyan #006d6d
terminal.ansiBrightGreen #116b00
terminal.ansiBrightMagenta #af00af
terminal.ansiBrightRed #c22f2e
terminal.ansiBrightWhite #0b121b
terminal.ansiBrightYellow #755f00
terminal.ansiCyan #006d6d
terminal.ansiGreen #116b00
terminal.ansiMagenta #af00af
terminal.ansiRed #c22f2e
terminal.ansiWhite #111b27
terminal.ansiYellow #755f00
terminal.background #dadeea
terminal.border #8da1b97a
terminal.dropBackground #005a8e1a
terminal.findMatchBackground #005a8e1a
terminal.findMatchBorder #005a8e1a
terminal.findMatchHighlightBackground #005a8e1a
terminal.findMatchHighlightBorder #005a8e7a
terminal.foreground #111b27
terminal.selectionBackground #8da1b9
terminal.tab.activeBorder #005a8e
terminalCursor.background #dadeea
terminalCursor.foreground #111b27
terminalOverviewRuler.cursorForeground #8da1b9
terminalOverviewRuler.findMatchForeground #005a8e7a
textBlockQuote.background #f0f4f8
textBlockQuote.border #005a8e
textCodeBlock.background #8da1b95a
textLink.activeForeground #005a8eba
textLink.foreground #005a8e
textPreformat.foreground #a04900
titleBar.activeBackground #dadeea
titleBar.activeForeground #213043
titleBar.border #8da1b97a
titleBar.inactiveBackground #dadeea
titleBar.inactiveForeground #213043ba
toolbar.activeBackground #005a8e3a
toolbar.hoverBackground #8da1b94a
tree.indentGuidesStroke #3c526d5a
walkThrough.embeddedEditorBackground #f0f4f8
welcomePage.background #dadeea
welcomePage.progress.background #dadeea
welcomePage.progress.foreground #8da1b97a
welcomePage.tileBackground #f0f4f8
welcomePage.tileHoverBackground #8da1b95a
widget.shadow #111b275a
window.activeBorder #8da1b97a
window.inactiveBorder #8da1b9 constant.language #0000ff —
constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent #098658 —
entity.name.selector #800000 —
entity.other.attribute-name #000080 —
entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss #800000 —
markup.underline — underline
markup.heading #800000 bold
markup.strikethrough — strikethrough
punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown #0451a5 —
markup.inline.raw #800000 —
punctuation.definition.tag #800000 —
meta.preprocessor, entity.name.function.preprocessor #0000ff —
meta.preprocessor.string #a31515 —
meta.preprocessor.numeric #098658 —
meta.structure.dictionary.key.python #0451a5 —
storage.modifier, keyword.operator.noexcept #0000ff —
string, meta.embedded.assembly #a31515 —
string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars #0000ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #0000ff —
meta.template.expression #000000 —
support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color #0451a5 —
support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded #000080 —
support.type.property-name.json #0451a5 —
keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike #0000ff —
keyword.other.unit #098658 —
punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php #800000 —
support.function.git-rebase #0451a5 —
constant.sha.git-rebase #098658 —
storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java #000000 —
variable.language #0000ff —
meta.embedded, source.groovy.embedded, string meta.image.inline.markdown #000000ff —
constant.language #0000ff —
constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent #098658 —
entity.name.selector #800000 —
entity.other.attribute-name #000080 —
entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss #800000 —
markup.underline — underline
markup.heading #800000 bold
markup.strikethrough — strikethrough
punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown #0451a5 —
markup.inline.raw #800000 —
punctuation.definition.tag #800000 —
meta.preprocessor, entity.name.function.preprocessor #0000ff —
meta.preprocessor.string #a31515 —
meta.preprocessor.numeric #098658 —
meta.structure.dictionary.key.python #0451a5 —
storage.modifier, keyword.operator.noexcept #0000ff —
string, meta.embedded.assembly #a31515 —
string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars #0000ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #0000ff —
meta.template.expression #000000 —
support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color #0451a5 —
support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded #000080 —
support.type.property-name.json #0451a5 —
keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike #0000ff —
keyword.other.unit #098658 —
punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php #800000 —
support.function.git-rebase #0451a5 —
constant.sha.git-rebase #098658 —
storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java #000000 —
variable.language #0000ff —
support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy #006881 —
meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class #006881 —
variable.other.constant, variable.other.enummember #0070C1 —
meta.object-literal.key #001080 —
support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color #0451a5 —
punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp #d16969 —
constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp #811f3f —
keyword.operator.quantifier.regexp #000000 —
keyword.operator.or.regexp, keyword.control.anchor.regexp #EE0000 —
constant.character #0000ff —
constant.character.escape #EE0000 —
entity.name.label #000000 —
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*
Bleu Light | Coding Theme 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 } !` ;
}