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.activeBorder #6371b0 activityBar.background #1c1f2b activityBar.border #1f2430 activityBar.foreground #6371b0 activityBar.inactiveForeground #383f5e activityBarBadge.background #ffcc66 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment #5C6773 italic string, constant.other.symbol #BAE67E — string.regexp, constant.character, constant.other #95E6CB — constant.numeric #FFCC66 — constant.language
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#1f2430
badge.background #ffcc6633
badge.foreground #ffcc66
button.background #ffcc66
button.foreground #1f2430
button.hoverBackground #fac761
debugExceptionWidget.background #232834
debugExceptionWidget.border #191e2a
debugToolBar.background #232834
descriptionForeground #707a8c
diffEditor.insertedTextBackground #bae67e26
diffEditor.removedTextBackground #f29e7426
dropdown.background #232834
dropdown.border #434957
dropdown.foreground #707a8c
editor.background #1f2230
editor.findMatchBackground #ffcc660d
editor.findMatchBorder #ffcc66
editor.findMatchHighlightBackground #ffcc660d
editor.findMatchHighlightBorder #ffcc6659
editor.findRangeHighlightBackground #323a4c
editor.findRangeHighlightBorder #1f243000
editor.foreground #cbccc6
editor.inactiveSelectionBackground #323a4c
editor.lineHighlightBackground #191e2a
editor.rangeHighlightBackground #191e2a
editor.selectionBackground #33415e
editor.selectionHighlightBackground #323a4c
editor.selectionHighlightBorder #323a4c
editor.wordHighlightBackground #77a8d912
editor.wordHighlightBorder #77a8d980
editor.wordHighlightStrongBackground #a6cc7012
editor.wordHighlightStrongBorder #a6cc7080
editorBracketMatch.background #707a8c4d
editorBracketMatch.border #707a8c99
editorCodeLens.foreground #5c6773
editorCursor.foreground #ffcc66
editorError.foreground #ff3333
editorGroup.background #232834
editorGroup.border #191e2a
editorGroupHeader.noTabsBackground #1f2430
editorGroupHeader.tabsBackground #1f2230
editorGroupHeader.tabsBorder #1f2430
editorGutter.addedBackground #a6cc7099
editorGutter.deletedBackground #f2798399
editorGutter.modifiedBackground #77a8d999
editorHoverWidget.background #232834
editorHoverWidget.border #101521
editorIndentGuide.activeBackground #707a8cb3
editorIndentGuide.background #707a8c4d
editorLineNumber.activeForeground #707a8ccc
editorLineNumber.foreground #707a8c66
editorLink.activeForeground #ffcc66
editorMarkerNavigation.background #232834
editorOverviewRuler.addedForeground #a6cc7099
editorOverviewRuler.border #191e2a
editorOverviewRuler.deletedForeground #f2798399
editorOverviewRuler.errorForeground #ff3333
editorOverviewRuler.modifiedForeground #77a8d999
editorOverviewRuler.warningForeground #ffcc66
editorRuler.foreground #707a8c4d
editorSuggestWidget.background #232834
editorSuggestWidget.border #101521
editorSuggestWidget.highlightForeground #ffcc66
editorSuggestWidget.selectedBackground #191e2a
editorWarning.foreground #ffcc66
editorWhitespace.foreground #707a8c66
editorWidget.background #1f2230
editorWidget.border #6371b0
errorForeground #ff3333
extensionButton.prominentBackground #ffcc66
extensionButton.prominentForeground #1f2430
extensionButton.prominentHoverBackground #fac761
focusBorder #596171
foreground #707a8c
gitDecoration.addedResourceForeground #A1CCA5
gitDecoration.conflictingResourceForeground #EF3E36
gitDecoration.deletedResourceForeground #EF6F6C
gitDecoration.ignoredResourceForeground #525a69
gitDecoration.modifiedResourceForeground #e2c19c
gitDecoration.submoduleResourceForeground #d4bfffb3
gitDecoration.untrackedResourceForeground #A1CCA5
icon.foreground #707a8c
input.background #1d222e
input.border #434957
input.foreground #cbccc6
input.placeholderForeground #5f6878
inputOption.activeBorder #ffcc66
inputValidation.errorBackground #1f2430
inputValidation.errorBorder #ff3333
inputValidation.infoBackground #1f2430
inputValidation.infoBorder #5ccfe6
inputValidation.warningBackground #1f2430
inputValidation.warningBorder #ffd580
list.activeSelectionBackground #191e2a
list.activeSelectionForeground #707a8c
list.errorForeground #f27983
list.filterMatchBackground #ffcc660d
list.filterMatchBorder #ffcc66
list.focusBackground #191e2a
list.focusForeground #707a8c
list.highlightForeground #ffcc66
list.hoverBackground #191e2a
list.hoverForeground #707a8c
list.inactiveSelectionBackground #191e2a
list.inactiveSelectionForeground #707a8c
list.invalidItemForeground #5f6878
listFilterWidget.background #232834
listFilterWidget.noMatchesOutline #ff3333
listFilterWidget.outline #ffcc66
menu.background #1f2230
panel.background #1f2230
panel.border #191e2a
panelTitle.activeBorder #6371b0
panelTitle.activeForeground #cbccc6
panelTitle.inactiveForeground #707a8c
peekView.border #191e2a
peekViewEditor.background #232834
peekViewEditor.matchHighlightBackground #ffcc6633
peekViewResult.background #232834
peekViewResult.fileForeground #707a8c
peekViewResult.matchHighlightBackground #ffcc6633
peekViewTitle.background #232834
peekViewTitleDescription.foreground #707a8c
peekViewTitleLabel.foreground #707a8c
pickerGroup.border #191e2a
pickerGroup.foreground #525a69
progressBar.background #ffcc66
scrollbar.shadow #191e2a
scrollbarSlider.activeBackground #707a8cb3
scrollbarSlider.background #707a8c66
scrollbarSlider.hoverBackground #707a8c99
selection.background #33415efd
settings.headerForeground #cbccc6
settings.modifiedItemIndicator #77a8d9
sideBar.background #1f2230
sideBar.border #1f2430
sideBarSectionHeader.background #1f2230
sideBarSectionHeader.border #1f2430
sideBarSectionHeader.foreground #707a8c
sideBarTitle.foreground #707a8c
statusBar.background #1c1f2b
statusBar.border #1f2430
statusBar.debuggingBackground #f29e74
statusBar.debuggingForeground #1f2430
statusBar.foreground #707a8c
statusBar.noFolderBackground #232834
statusBarItem.activeBackground #191e2a
statusBarItem.hoverBackground #191e2a
statusBarItem.prominentBackground #191e2a
statusBarItem.prominentHoverBackground #00000030
tab.activeBackground #282c3d
tab.activeBorder #6371b0
tab.activeForeground #cbccc6
tab.border #1f2430
tab.inactiveBackground #1f2430
tab.inactiveForeground #707a8c
tab.unfocusedActiveBackground #232636
tab.unfocusedActiveBorder #6371b0
tab.unfocusedActiveForeground #707a8c
tab.unfocusedInactiveForeground #707a8c
terminal.ansiBlack #191e2a
terminal.ansiBlue #6dcbfa
terminal.ansiBrightBlack #686868
terminal.ansiBrightBlue #73d0ff
terminal.ansiBrightCyan #95e6cb
terminal.ansiBrightGreen #bae67e
terminal.ansiBrightMagenta #d4bfff
terminal.ansiBrightRed #f28779
terminal.ansiBrightWhite #ffffff
terminal.ansiBrightYellow #ffd580
terminal.ansiCyan #90e1c6
terminal.ansiGreen #a6cc70
terminal.ansiMagenta #cfbafa
terminal.ansiRed #ed8274
terminal.ansiWhite #c7c7c7
terminal.ansiYellow #fad07b
terminal.background #1f2230
terminal.foreground #cbccc6
textBlockQuote.background #232834
textLink.activeForeground #ffcc66
textLink.foreground #ffcc66
textPreformat.foreground #cbccc6
titleBar.activeBackground #1c1f2b
titleBar.activeForeground #cbccc6
titleBar.border #1f2430
titleBar.inactiveBackground #1f2430
titleBar.inactiveForeground #707a8c
tree.indentGuidesStroke #707a8cb3
walkThrough.embeddedEditorBackground #232834
widget.shadow #141925 #FFCC66
variable.language #5CCFE6 italic
punctuation.separator, punctuation.terminator #CBCCC6B3 —
punctuation.section #CBCCC6 —
punctuation.accessor #F29E74 —
source.java storage.type, source.haskell storage.type, source.c storage.type #73D0FF —
entity.other.inherited-class #5CCFE6 —
storage.type.function #FFA759 —
source.java storage.type.primitive #5CCFE6 —
entity.name.function #FFD580 —
variable.parameter, meta.parameter #D4BFFF —
variable.function, variable.annotation, meta.function-call.generic, support.function.go #FFD580 —
support.function, support.macro #F28779 —
entity.name.import, entity.name.package #BAE67E —
entity.name.tag, meta.tag.sgml #5CCFE6 —
punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag #5CCFE680 —
entity.other.attribute-name #FFD580 —
support.constant #F29E74 italic
support.type, support.class, source.go storage.type #5CCFE6 —
meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation #FFE6B3 —
meta.diff, meta.diff.header #C594C5 —
source.ruby variable.other.readwrite #FFD580 —
source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag #73D0FF —
source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type #5C6773 —
support.type.property-name #5CCFE6 normal
constant.numeric.line-number.find-in-files - match #5C6773 —
constant.numeric.line-number.match #FFA759 —
entity.name.filename.find-in-files #BAE67E —
markup.heading, markup.heading entity.name #BAE67E bold
markup.underline.link, string.other.link #5CCFE6 —
markup.italic #F28779 italic
markup.italic markup.bold, markup.bold markup.italic — bold italic
meta.separator #5C6773 bold
markup.quote #95E6CB italic
markup.list punctuation.definition.list.begin #FFD580 —
text.html.markdown markup.inline.raw #F29E74 —
text.html.markdown meta.dummy.line-break #5C6773 —
punctuation.definition.markdown #5C6773 —
token.error-token #F44747 —
token.debug-token #B267E6 —
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*
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 }!` ;
}
bentheme | Coding Theme