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 #000000 activityBar.border #131313 activityBar.foreground #626f7f activityBarBadge.background #6239f8 activityBarBadge.foreground #1d252c badge.background #66737f tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment, punctuation.definition.comment #9cb4c4 italic variable, string constant.other.placeholder #4de0e0 — constant.other.color #ffffff — invalid, invalid.illegal #ff1d43 — keyword, storage.type, storage.modifier
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
badge.foreground
#ffffff
button.background #6f63dbf3
button.foreground #ffffff
button.hoverBackground #ffcc66bb
debugExceptionWidget.background #2d3644
debugExceptionWidget.border #262e36
debugToolBar.background #2d3644
diffEditor.insertedTextBackground #95e6cb44
diffEditor.removedTextBackground #f0717844
editor.background #000000
editor.findMatchBackground #b7c5d380
editor.findMatchHighlightBackground #b7c5d330
editor.findRangeHighlightBackground #243E51
editor.foreground #fafafa
editor.hoverHighlightBackground #333F4A
editor.inactiveSelectionBackground #101418
editor.lineHighlightBackground #28313a
editor.lineHighlightBorder #28313a
editor.rangeHighlightBackground #28313a
editor.selectionBackground #FFFFFF40
editor.selectionHighlightBackground #FFFFFF15
editor.wordHighlightBackground #FFFFFF15
editor.wordHighlightStrongBackground #FFFFFF15
editorBracketMatch.background #3d454d
editorBracketMatch.border #4e6e99
editorCursor.foreground #1ff1b2
editorError.foreground #ff3333
editorGroup.border #262e36
editorGroupHeader.noTabsBackground #1d252c
editorGroupHeader.tabsBackground #060708
editorGroupHeader.tabsBorder #262e36
editorGutter.addedBackground #bae67e
editorGutter.deletedBackground #ff3333
editorGutter.modifiedBackground #5ccfe6
editorHoverWidget.background #182024
editorHoverWidget.border #262e36
editorIndentGuide.background #2b333b
editorLineNumber.foreground #3d4752
editorLink.activeForeground #1ff1b2
editorMarkerNavigation.background #2d3644
editorOverviewRuler.border #262e36
editorRuler.foreground #262e36
editorSuggestWidget.background #182024
editorSuggestWidget.border #262e36
editorSuggestWidget.highlightForeground #1ff1b2
editorSuggestWidget.selectedBackground #28313a
editorWarning.foreground #ffcc66
editorWhitespace.foreground #3d4752
editorWidget.background #1d252c
editorWidget.border #262e36
extensionButton.prominentBackground #ffcc66aa
extensionButton.prominentForeground #ffffff
extensionButton.prominentHoverBackground #ffcc66bb
focusBorder #ffffff00
foreground #aaa
gitDecoration.ignoredResourceForeground #62737f77
input.background #182024
input.border #262e36
input.foreground #d9d7ce
input.placeholderForeground #62737f8a
inputOption.activeBorder #62737f8a
inputValidation.errorBackground #1d252c
inputValidation.errorBorder #ff3333
inputValidation.infoBackground #1d252c
inputValidation.infoBorder #5ccfe6
inputValidation.warningBackground #1d252c
inputValidation.warningBorder #ffcc66
list.activeSelectionBackground #262e36
list.activeSelectionForeground #d9d7ce
list.focusBackground #262e36
list.focusForeground #d9d7ce
list.highlightForeground #1ff1b2
list.hoverBackground #1d252c
list.hoverForeground #d9d7ce
list.inactiveSelectionBackground #262e36
list.inactiveSelectionForeground #d9d7ce
menu.background #000000
menubar.selectionBackground #0b0b11
panel.background #1d252c
panel.border #262e36
panelTitle.activeBorder #1d252c
panelTitle.activeForeground #d9d7ce
panelTitle.inactiveForeground #181c1f
peekView.border #262e36
peekViewEditor.background #192024
peekViewEditor.matchHighlightBackground #323f4d
peekViewResult.background #192024
peekViewResult.fileForeground #62737f
peekViewResult.matchHighlightBackground #323f4d
peekViewTitle.background #262e36
peekViewTitleDescription.foreground #62737f
peekViewTitleLabel.foreground #62737f
pickerGroup.border #262e36
pickerGroup.foreground #66ffcc
progressBar.background #66a3ff
selection.background #8d9bad88
sideBar.background #000000
sideBar.border #0f0f0f
sideBar.dropBackground #1d252c
sideBar.foreground #8BADC1
sideBarSectionHeader.background #212425
sideBarSectionHeader.foreground #567fee
sideBarTitle.foreground #eeeeee
statusBar.background #111111
statusBar.border #000000
statusBar.debuggingBackground #2d3644
statusBar.debuggingForeground #62737f
statusBar.foreground #62737f
statusBar.noFolderBackground #1d252c
statusBarItem.activeBackground #262e36
statusBarItem.hoverBackground #262e36
statusBarItem.prominentBackground #262e36
statusBarItem.prominentHoverBackground #262e36
tab.activeBackground #192025
tab.activeForeground #e4f3f5
tab.border #0f0f0f
tab.inactiveBackground #000000
tab.inactiveForeground #8da2a8
tab.unfocusedActiveForeground #d9d7ceaa
tab.unfocusedInactiveForeground #62737f
terminal.ansiBlack #262e36
terminal.ansiBlue #36a3d9
terminal.ansiBrightBlack #686868
terminal.ansiBrightBlue #36a3d9
terminal.ansiBrightCyan #95e6cb
terminal.ansiBrightGreen #bae67e
terminal.ansiBrightMagenta #d4bfff
terminal.ansiBrightRed #f07178
terminal.ansiBrightWhite #c7c7c7
terminal.ansiBrightYellow #ffcc66
terminal.ansiCyan #95e6cb
terminal.ansiGreen #bae67e
terminal.ansiMagenta #d4bfff
terminal.ansiRed #f07178
terminal.ansiWhite #c7c7c7
terminal.ansiYellow #ffcc66
terminal.background #1d252c
terminal.border #262e36
terminal.foreground #d9d7ce
textBlockQuote.background #2d3644
textLink.activeForeground #3ef8df
textLink.foreground #66ffc4
titleBar.activeBackground #080808
titleBar.activeForeground #5d7081
titleBar.inactiveBackground #000000
titleBar.inactiveForeground #637e85
walkThrough.embeddedEditorBackground #2d3644
widget.shadow #11141ab3 keyword.control, constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.section.embedded, keyword.other.template, keyword.other.substitution #db5b81 —
punctuation, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html #5e679e —
entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter #7977e0 —
entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method #52f8d4 —
meta.block variable.other #7895b6 —
support.other.variable, string.other.link #71ddf0 —
constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other #a2a8a8 —
string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js #1ff1b2 —
entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types #507cf7 —
source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name #9fbfcc —
entity.name.module.js, variable.import.parameter.js, variable.other.class.js #FF5370 —
variable.language #FF5370 italic
entity.name.method.js #82AAFF italic
meta.class-method.js entity.name.function.js, variable.function.constructor #82AAFF —
entity.other.attribute-name #7c8fa8 —
text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name #37e28c italic
entity.other.attribute-name.class #1ff1b2 —
source.sass keyword.control #1ff1b2 —
constant.character.escape #89DDFF —
*url*, *link*, *uri* — underline
tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js #82AAFF italic
source.js constant.other.object.key.js string.unquoted.label.js #FF5370 italic
source.json meta.structure.dictionary.json support.type.property-name.json #C792EA —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #FFCB6B —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #F78C6C —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #FF5370 —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #C17E70 —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #82AAFF —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #f07178 —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #C792EA —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #C3E88D —
text.html.markdown, punctuation.definition.list_item.markdown #EEFFFF —
text.html.markdown markup.inline.raw.markdown #C792EA —
text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown #65737E —
markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown #C3E88D —
markup.italic #f07178 italic
markup.bold, markup.bold string #f07178 bold
markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string #f07178 bold
markup.underline #F78C6C underline
string.other.link.title.markdown #82AAFF —
string.other.link.description.title.markdown #C792EA —
constant.other.reference.link.markdown #6babff —
markup.raw.block.fenced.markdown #00000050 —
punctuation.definition.fenced.markdown #00000050 —
markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end #EEFFFF —
variable.language.fenced.markdown #65737E —
meta.separator #65737E bold
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 } ! ` ;
}
Darktra | Coding Theme