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 #f78166 activityBar.background #0d1117 activityBar.border #30363d activityBar.foreground #c9d1d9 activityBar.inactiveForeground #8b949e activityBarBadge.background #1f6feb tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle constant #facb95 — entity.name #FAC29AE6 — keyword #B877DBE6 — markup.quote #FAB795B3 italic markup.heading
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#f0f6fc
badge.background #1f6feb
badge.foreground #f0f6fc
breadcrumb.activeSelectionForeground #8b949e
breadcrumb.focusForeground #c9d1d9
breadcrumb.foreground #8b949e
breadcrumbPicker.background #161b22
button.background #238636
button.foreground #ffffff
button.hoverBackground #2ea043
button.secondaryBackground #282e33
button.secondaryForeground #c9d1d9
button.secondaryHoverBackground #30363d
checkbox.background #161b22
checkbox.border #30363d
debugToolBar.background #161b22
descriptionForeground #8b949e
diffEditor.insertedTextBackground #2ea04326
diffEditor.removedTextBackground #f8514926
dropdown.background #161b22
dropdown.border #30363d
dropdown.foreground #c9d1d9
dropdown.listBackground #161b22
editor.background #0d1117
editor.findMatchBackground #ffd33d44
editor.findMatchHighlightBackground #ffd33d22
editor.focusedStackFrameHighlightBackground #3FB95025
editor.foldBackground #6e76811a
editor.foreground #c9d1d9
editor.inactiveSelectionBackground #3392FF22
editor.lineHighlightBackground #6e76811a
editor.linkedEditingBackground #3392FF22
editor.selectionBackground #3392FF44
editor.selectionHighlightBackground #17E5E633
editor.selectionHighlightBorder #17E5E600
editor.stackFrameHighlightBackground #D2992225
editor.wordHighlightBackground #17E5E600
editor.wordHighlightBorder #17E5E699
editor.wordHighlightStrongBackground #17E5E600
editor.wordHighlightStrongBorder #17E5E666
editorBracketMatch.background #17E5E650
editorBracketMatch.border #17E5E600
editorCursor.foreground #58a6ff
editorGroup.border #30363d
editorGroupHeader.tabsBackground #010409
editorGroupHeader.tabsBorder #30363d
editorGutter.addedBackground #2ea04366
editorGutter.deletedBackground #f8514966
editorGutter.modifiedBackground #bb800966
editorIndentGuide.activeBackground #30363d
editorIndentGuide.background #21262d
editorLineNumber.activeForeground #c9d1d9
editorLineNumber.foreground #8b949e
editorOverviewRuler.border #010409
editorWhitespace.foreground #484f58
editorWidget.background #161b22
errorForeground #f85149
focusBorder #1f6feb
foreground #c9d1d9
gitDecoration.addedResourceForeground #3fb950
gitDecoration.conflictingResourceForeground #db6d28
gitDecoration.deletedResourceForeground #f85149
gitDecoration.ignoredResourceForeground #484f58
gitDecoration.modifiedResourceForeground #d29922
gitDecoration.submoduleResourceForeground #8b949e
gitDecoration.untrackedResourceForeground #3fb950
input.background #0d1117
input.border #30363d
input.foreground #c9d1d9
input.placeholderForeground #484f58
list.activeSelectionBackground #6e768166
list.activeSelectionForeground #c9d1d9
list.focusBackground #388bfd26
list.focusForeground #c9d1d9
list.highlightForeground #58a6ff
list.hoverBackground #6e76811a
list.hoverForeground #c9d1d9
list.inactiveFocusBackground #388bfd26
list.inactiveSelectionBackground #6e768166
list.inactiveSelectionForeground #c9d1d9
notificationCenterHeader.background #161b22
notificationCenterHeader.foreground #8b949e
notifications.background #161b22
notifications.border #30363d
notifications.foreground #c9d1d9
notificationsErrorIcon.foreground #f85149
notificationsInfoIcon.foreground #58a6ff
notificationsWarningIcon.foreground #d29922
panel.background #010409
panel.border #30363d
panelInput.border #30363d
panelTitle.activeBorder #f78166
panelTitle.activeForeground #c9d1d9
panelTitle.inactiveForeground #8b949e
peekViewEditor.background #0d111788
peekViewEditor.matchHighlightBackground #ffd33d33
peekViewResult.background #0d1117
peekViewResult.matchHighlightBackground #ffd33d33
pickerGroup.border #30363d
pickerGroup.foreground #8b949e
progressBar.background #1f6feb
quickInput.background #161b22
quickInput.foreground #c9d1d9
scrollbar.shadow #0008
scrollbarSlider.activeBackground #484F5888
scrollbarSlider.background #484F5833
scrollbarSlider.hoverBackground #484F5844
settings.headerForeground #8b949e
settings.modifiedItemIndicator #bb800966
sideBar.background #010409
sideBar.border #30363d
sideBar.foreground #c9d1d9
sideBarSectionHeader.background #010409
sideBarSectionHeader.border #30363d
sideBarSectionHeader.foreground #c9d1d9
sideBarTitle.foreground #c9d1d9
statusBar.background #0d1117
statusBar.border #30363d
statusBar.debuggingBackground #da3633
statusBar.debuggingForeground #f0f6fc
statusBar.foreground #8b949e
statusBar.noFolderBackground #0d1117
statusBarItem.prominentBackground #161b22
tab.activeBackground #0d1117
tab.activeBorder #0d1117
tab.activeBorderTop #f78166
tab.activeForeground #c9d1d9
tab.border #30363d
tab.hoverBackground #0d1117
tab.inactiveBackground #010409
tab.inactiveForeground #8b949e
tab.unfocusedActiveBorder #0d1117
tab.unfocusedActiveBorderTop #30363d
tab.unfocusedHoverBackground #6e76811a
terminal.ansiBlack #484f58
terminal.ansiBlue #58a6ff
terminal.ansiBrightBlack #6e7681
terminal.ansiBrightBlue #79c0ff
terminal.ansiBrightCyan #56d4dd
terminal.ansiBrightGreen #56d364
terminal.ansiBrightMagenta #d2a8ff
terminal.ansiBrightRed #ffa198
terminal.ansiBrightWhite #f0f6fc
terminal.ansiBrightYellow #e3b341
terminal.ansiCyan #39c5cf
terminal.ansiGreen #3fb950
terminal.ansiMagenta #bc8cff
terminal.ansiRed #ff7b72
terminal.ansiWhite #b1bac4
terminal.ansiYellow #d29922
terminal.foreground #8b949e
textBlockQuote.background #010409
textBlockQuote.border #30363d
textCodeBlock.background #6e768166
textLink.activeForeground #58a6ff
textLink.foreground #58a6ff
textPreformat.foreground #8b949e
textSeparator.foreground #21262d
titleBar.activeBackground #0d1117
titleBar.activeForeground #8b949e
titleBar.border #30363d
titleBar.inactiveBackground #010409
titleBar.inactiveForeground #8b949e
tree.indentGuidesStroke #21262d
welcomePage.buttonBackground #21262d
welcomePage.buttonHoverBackground #30363d
#E95678E6
markup.italic #25B0BCE6 italic
markup.inline.raw, markup.fenced_code.block #F09483E6 —
markup.underline.link #FAB795E6 —
string.other.link #F09483E6 —
support, variable.language #FAC29AE6 —
string.template meta.embedded #BBBBBB —
punctuation.separator #BBBBBB —
punctuation.section.embedded #B877DBE6 —
punctuation.definition.list #F09483E6 —
support.variable.magic #b8cf8d —
support.function.magic #74b6c2 —
punctuation.definition.bracket.curly.begin.jsdoc, punctuation.definition.bracket.curly.end.jsdoc #bbaa8c —
entity.name.type.instance.jsdoc #8f826b —
support.type.primitive #569cd6 —
punctuation.definition.template-expression, punctuation.section.tag #bb615a —
punctuation.separator.key-value #bfddd1 —
keyword.operator.type.annotation #d9dec0 —
keyword.operator.ternary, punctuation.accessor.optional, keyword.operator.optional #afbccb —
storage.type.function.arrow #d4bdde —
variable.other.jsdoc, keyword.other.documentation #8a736a —
keyword.operator, storage.type.function.arrow, keyword.operator.logical, punctuation.separator.parameter, entity.name.tag.reference #dddddd —
punctuation.accessor, keyword.operator.type.annotation #b1b1b1 —
storage.type.class.jsdoc #4e634e —
constant.character.escape #b8d786 —
punctuation.definition.comment, entity.other.document.begin.yaml #676f7d —
comment.block, comment.line #676f7d —
keyword.other.unit #a3c4b9 —
keyword.operator.expression, keyword.operator.new, keyword.control.flow, keyword.operator.logical, keyword.operator.type #f3f99d —
keyword, keyword.control, storage.type #916fde —
meta.directive.vue #20a6be —
keyword.other.important #ff5c57 —
entity.name.function #407de6 —
entity.name.function #407de6 —
variable.other.readwrite #c9d1d9 —
variable.language.super #6cd4c2 —
variable.other, support.variable, markup.heading, entity.name.section #4EC9B0 —
variable.parameter.function-call, meta.function.parameter, meta.function.parameters #7ee787 —
entity.name.type.alias, support.type #db9b25 —
support.variable.property, variable.other.object.property, meta.attribute, support.type.property-name, variable.object.property, meta.flow-mapping.yaml, meta.property-name, entity.other.attribute-name, entity.name.tag.yaml #facb95 —
entity.name.type.class, entity.other.inherited-class #ff5c57 —
entity.other.attribute-name.class #3aad5d —
meta.symbol.namespace #2b9468 —
variable.language.this, variable.language.self, variable.language.special.self #ff5c57 —
meta.directive.vue, entity.other.attribute-name.pseudo-class #20a6be —
entity.name.function #407de6 —
support.function.builtin, support.function.misc #6984ef —
meta.embedded, source.groovy.embedded #bbb —
comment, string.comment — italic
constant.language #569cd6 —
constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent #b5cea8 —
entity.name.tag.css #d7ba7d —
entity.other.attribute-name #9cdcfe —
entity.other.attribute-name.class.mixin.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.attribute.scss, entity.other.attribute-name.scss #d7ba7d —
markup.underline — underline
markup.heading #569cd6 bold
punctuation.definition.quote.begin.markdown #6A9955 —
punctuation.definition.list.begin.markdown #6796e6 —
markup.inline.raw #ce9178 —
punctuation.definition.tag #569cd6 —
meta.preprocessor, entity.name.function.preprocessor #569cd6 —
meta.preprocessor.string #ce9178 —
meta.preprocessor.numeric #b5cea8 —
meta.structure.dictionary.key.python #9cdcfe —
storage.modifier, keyword.operator.noexcept #569cd6 —
string, meta.embedded.assembly #7ee787 —
string.quoted.triple, string.quoted.double, string.quoted.single #ce9178 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #569cd6 —
meta.template.expression #d4d4d4 —
support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded #9cdcfe —
keyword, keyword.operator.logical, keyword.operator.constructor #e06c75 —
variable.other.property #facb95 —
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 #569cd6 —
keyword.other.unit #b5cea8 —
punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php #569cd6 —
support.function.git-rebase #9cdcfe —
constant.sha.git-rebase #b5cea8 —
storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java #c9d1d9 —
variable.language #569cd6 —
entity.name.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal #d2a8ff —
meta.return-type, 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 #4EC9B0 —
meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class #4EC9B0 —
keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator #ff6ac1 —
variable, variable.other.constanst, meta.definition.variable.name, support.variable, entity.name.variable #c9d1d9 —
variable.other.constant #b5cea8 —
variable.other.enummember #b5cea8 —
meta.object-literal.key #9cdcfe —
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 #CE9178 —
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 #CE9178 —
constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp #d16969 —
keyword.operator.or.regexp, keyword.control.anchor.regexp #DCDCAA —
keyword.operator.quantifier.regexp #d7ba7d —
constant.character #569cd6 —
constant.character.escape #d7ba7d —
entity.name.label #C8C8C8 —
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 —
entity.other.attribute-name #f3f99d —
entity.name.tag, entity.name.tag.class.js #ff5c57 —
support.constant, support.variable #4EC9B0
meta.function-call.generic.python #d2a8ff —
keyword.operator.sigil.rust #c678dd —
comment, punctuation.definition.comment, string.quoted.docstring #616263 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*
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 } !` ;
}
Open Dark | Coding Theme