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 #14181a activityBar.border #202426 activityBar.foreground #d6dadf activityBar.inactiveForeground #757980 activityBarBadge.background #88c0d0 activityBarBadge.foreground #1d2128 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle emphasis — italic strong — bold comment #616E88 italic constant.character #EBCB8B — constant.character.escape #EBCB8B —
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Nordic Midnight — Nordic Midnight
badge.background
#88c0d0
badge.foreground #1d2128
breadcrumb.activeSelectionForeground #e5e9f1
breadcrumb.background #181d21
breadcrumb.foreground #697180
breadcrumbPicker.background #14181a
button.background #88c0d0
button.foreground #14181a
button.hoverBackground #98d5e7
button.secondaryBackground #434c5e
button.secondaryForeground #e5e9f1
button.secondaryHoverBackground #4c566a
debugExceptionWidget.background #4c566a
debugExceptionWidget.border #14181a
debugToolBar.background #20242c
diffEditor.insertedTextBackground #a3be8c22
diffEditor.removedTextBackground #bf616a22
dropdown.background #14181a
dropdown.border #272c36
dropdown.foreground #e5e9f1
editor.background #181d21
editor.findMatchBackground #88c0d066
editor.findMatchHighlightBackground #88c0d033
editor.findRangeHighlightBackground #88c0d033
editor.foreground #d6dadf
editor.hoverHighlightBackground #20242c
editor.inactiveSelectionBackground #434c5e77
editor.lineHighlightBackground #434c5e00
editor.lineHighlightBorder #272930
editor.rangeHighlightBackground #434c5e52
editor.selectionBackground #434c5e99
editor.selectionHighlightBackground #434c5ecc
editor.snippetFinalTabstopHighlightBorder #7b88a1
editor.snippetTabstopHighlightBackground #7b88a155
editor.wordHighlightBackground #81a1c166
editor.wordHighlightStrongBackground #81a1c199
editorBracketMatch.background #14181a00
editorBracketMatch.border #88c0d055
editorCodeLens.foreground #4c566a
editorCursor.foreground #e5e9f1
editorError.border #bf616a00
editorError.foreground #bf616a
editorGroup.border #272c36
editorGroup.dropBackground #272c3699
editorGroup.emptyBackground #14181a
editorGroupHeader.noTabsBackground #14181a
editorGroupHeader.tabsBackground #14181a
editorGroupHeader.tabsBorder #272c36
editorGutter.addedBackground #a3be8c
editorGutter.background #181d21
editorGutter.deletedBackground #bf616a
editorGutter.modifiedBackground #ebcb8b
editorHoverWidget.background #20242c
editorHoverWidget.border #272c36
editorInlayHint.background #00000000
editorInlayHint.foreground #4c566a
editorInlayHint.parameterBackground #00000000
editorInlayHint.parameterForeground #4c566a
editorInlayHint.typeBackground #00000000
editorInlayHint.typeForeground #4c566a
editorLineNumber.activeForeground #687692
editorLineNumber.foreground #4c566a
editorLink.activeForeground #88c0d0
editorMarkerNavigation.background #5e81acc0
editorMarkerNavigationError.background #bf616ac0
editorMarkerNavigationWarning.background #ebcb8bc0
editorOverviewRuler.addedForeground #a3be8c99
editorOverviewRuler.border #00000000
editorOverviewRuler.bracketMatchForeground #00000000
editorOverviewRuler.commonContentForeground #bf616a
editorOverviewRuler.currentContentForeground #bf616a
editorOverviewRuler.deletedForeground #bf616a99
editorOverviewRuler.errorForeground #bf616a
editorOverviewRuler.findMatchForeground #00000000
editorOverviewRuler.incomingContentForeground #bf616a
editorOverviewRuler.infoForeground #00000000
editorOverviewRuler.modifiedForeground #ebcb8b99
editorOverviewRuler.rangeHighlightForeground #00000000
editorOverviewRuler.selectionHighlightForeground #00000000
editorOverviewRuler.warningForeground #ebcb8b
editorOverviewRuler.wordHighlightForeground #00000000
editorOverviewRuler.wordHighlightStrongForeground #00000000
editorRuler.foreground #434c5e
editorSuggestWidget.background #14181a
editorSuggestWidget.border #272c36
editorSuggestWidget.foreground #e5e9f1
editorSuggestWidget.highlightForeground #88c0d0
editorSuggestWidget.selectedBackground #434c5e
editorWarning.border #ebcb8b00
editorWarning.foreground #ebcb8b
editorWhitespace.foreground #4c566ab3
editorWidget.background #14181a
editorWidget.resizeBorder #88c0d0
errorForeground #bf616a
extensionButton.prominentBackground #434c5e
extensionButton.prominentForeground #e5e9f1
extensionButton.prominentHoverBackground #4c566a
focusBorder #00000000
foreground #d6dadf
gitDecoration.addedResourceForeground #a3be8c
gitDecoration.deletedResourceForeground #bf616a
gitDecoration.ignoredResourceForeground #98a0b3
gitDecoration.modifiedResourceForeground #ebcb8b
gitDecoration.untrackedResourceForeground #88c0d0
gitlens.trailingLineForegroundColor #6c7d8f99
input.background #272c3655
input.border #272c36
input.foreground #e5e9f1
input.placeholderForeground #e5e9f199
inputOption.activeBorder #88c0d0
inputValidation.errorBackground #bf616a
inputValidation.errorBorder #bf616a
inputValidation.infoBackground #81a1c1
inputValidation.infoBorder #81a1c1
inputValidation.infoForeground #2e3440
inputValidation.warningBackground #d08770
inputValidation.warningBorder #d08770
list.activeSelectionBackground #21242b
list.activeSelectionForeground #d6dadf
list.deemphasizedForeground #d6dbdf
list.dropBackground #88c0d099
list.errorForeground #bf616a
list.focusBackground #434c5e
list.focusForeground #e5e9f1
list.highlightForeground #88c0d0
list.hoverBackground #272c3699
list.hoverForeground #d6dadf
list.inactiveSelectionBackground #21242b
list.inactiveSelectionForeground #d6dadf
list.invalidItemForeground #d6dbdf
list.warningForeground #ebcb8b
menu.background #14181a
menu.foreground #d6dadf
menu.separatorBackground #7b88a1
menubar.selectionBackground #7b88a133
merge.border #272c3600
merge.currentContentBackground #81a1c14d
merge.currentHeaderBackground #81a1c166
merge.incomingContentBackground #8fbcbb4d
merge.incomingHeaderBackground #8fbcbb66
notificationLink.foreground #88c0d0
notifications.background #14181a
notifications.foreground #e5e9f1
panel.background #14181a
panel.border #272c36
panelTitle.activeBorder #ffffff00
panelTitle.activeForeground #ffffff
panelTitle.inactiveForeground #7b88a1
peekView.border #4c566a
peekViewEditor.background #14181a
peekViewEditor.matchHighlightBackground #88c0d0cc
peekViewEditorGutter.background #14181a
peekViewResult.background #14181a
peekViewResult.fileForeground #88c0d0
peekViewResult.lineForeground #e5e9f166
peekViewResult.matchHighlightBackground #88c0d0cc
peekViewResult.selectionBackground #434c5e
peekViewResult.selectionForeground #e5e9f1
peekViewTitle.background #272c36
peekViewTitleDescription.foreground #e5e9f1
peekViewTitleLabel.foreground #88c0d0
pickerGroup.border #272c3600
pickerGroup.foreground #e5e9f1
progressBar.background #88c0d0
scrollbar.shadow #000000a0
scrollbarSlider.activeBackground #434c5e55
scrollbarSlider.background #434c5e55
scrollbarSlider.hoverBackground #434c5e55
selection.background #88c0d033
sideBar.background #14181a
sideBar.border #272c36
sideBar.foreground #d6dbdf
sideBarSectionHeader.background #14181a
sideBarSectionHeader.border #202426
sideBarSectionHeader.foreground #98a0b3
sideBarTitle.foreground #7b88a1
statusBar.background #14181a
statusBar.border #272c36
statusBar.debuggingBackground #434c5e
statusBar.debuggingForeground #e5e9f1
statusBar.foreground #98a0b3
statusBar.noFolderBackground #14181a
statusBar.noFolderForeground #e5e9f1
statusBarItem.activeBackground #4c566a
statusBarItem.hoverBackground #434c5e
statusBarItem.prominentBackground #272c36
statusBarItem.prominentHoverBackground #434c5e
tab.activeBackground #181d21
tab.activeBorder #181d21
tab.activeBorderTop #ffffff00
tab.activeForeground #e5e9f1
tab.border #272c36
tab.hoverBackground #88c0d000
tab.inactiveBackground #14181a
tab.inactiveForeground #98a0b3
tab.unfocusedActiveBorder #181d21
tab.unfocusedActiveForeground #e5e9f199
tab.unfocusedHoverBackground #272c36b3
tab.unfocusedHoverBorder #88c0d000
tab.unfocusedInactiveForeground #e5e9f166
terminal.ansiBlack #272c36
terminal.ansiBlue #81a1c1
terminal.ansiBrightBlack #4c566a
terminal.ansiBrightBlue #81a1c1
terminal.ansiBrightCyan #8fbcbb
terminal.ansiBrightGreen #a3be8c
terminal.ansiBrightMagenta #b48ead
terminal.ansiBrightRed #bf616a
terminal.ansiBrightWhite #d6dadf
terminal.ansiBrightYellow #ebcb8b
terminal.ansiCyan #88c0d0
terminal.ansiGreen #a3be8c
terminal.ansiMagenta #7d7c9b
terminal.ansiRed #bf616a
terminal.ansiWhite #e5e9f0
terminal.ansiYellow #ebcb8b
terminal.background #14181a
terminal.foreground #e5e9f1
terminal.selectionBackground #434c5e88
terminalCursor.background #8fbcbb22
terminalCursor.foreground #8fbcbb
textLink.activeForeground #8fbcbb
textLink.foreground #8fbcbb
textPreformat.foreground #8fbcbb
textSeparator.foreground #8fbcbb
titleBar.activeBackground #14181a
titleBar.activeForeground #9fa4ae
titleBar.border #272c36
titleBar.inactiveBackground #14181a
titleBar.inactiveForeground #9fa4ae
tree.indentGuidesStroke #7b88a155
walkThrough.embeddedEditorBackground #14181a
widget.shadow #000000a0 constant.language #81A1C1 —
constant.language.boolean.true #B48EAD —
constant.language.boolean.false #B48EAD —
constant.language.undefined #7D7C9B —
constant.language.null #7D7C9B —
entity.name.class, entity.name.type.class #8FBCBB —
entity.name.function #88C0D0 —
entity.other.attribute-name #8FBCBB italic
entity.other.inherited-class #8FBCBB bold
invalid.deprecated #EBCB8B —
keyword.other.new #81A1C1 —
markup.deleted, punctuation.definition.deleted #BF616A —
meta.preprocessor #5E81AC —
punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters #D6DADF —
punctuation.definition.tag #81A1C1 —
punctuation.definition.comment, punctuation.end.definition.comment, punctuation.start.definition.comment #616E88 —
punctuation.definition.inserted #A3BE8C —
punctuation.definition.deleted #BF616A —
punctuation.section #D6DADF —
punctuation.section.embedded.begin, punctuation.section.embedded.end #81A1C1 —
punctuation.terminator #81A1C1 —
punctuation.definition.variable #81A1C1 —
support.function.construct #81A1C1 —
support.type.exception #8FBCBB —
token.debug-token #B48EAD —
token.error-token #BF616A —
variable.language #81A1C1 —
variable.parameter #E5E9F1 —
punctuation.separator.pointer-access.c #81A1C1 —
source.c meta.preprocessor.include, source.c string.quoted.other.lt-gt.include #8FBCBB —
source.cpp keyword.control.directive.conditional, source.cpp punctuation.definition.directive, source.c keyword.control.directive.conditional, source.c punctuation.definition.directive #5E81AC bold
source.css constant.other.color.rgb-value #B48EAD —
source.css meta.property-value #88C0D0 —
source.css keyword.control.at-rule.media, source.css keyword.control.at-rule.media punctuation.definition.keyword #D08770 —
source.css punctuation.definition.keyword #81A1C1 —
source.css support.type.property-name #E5E9F1 —
source.diff meta.diff.range.context #8FBCBB —
source.diff meta.diff.header.from-file #8FBCBB —
source.diff punctuation.definition.from-file #8FBCBB —
source.diff punctuation.definition.range #8FBCBB —
source.diff punctuation.definition.separator #81A1C1 —
source.go constant.other.placeholder.go #EBCB8B —
source.java comment.block.documentation.javadoc punctuation.definition.entity.html #81A1C1 —
source.java constant.other #E5E9F1 —
source.java keyword.other.documentation #8FBCBB —
source.java keyword.other.documentation.author.javadoc #8FBCBB —
source.java keyword.other.documentation.directive, source.java keyword.other.documentation.custom #8FBCBB —
source.java keyword.other.documentation.see.javadoc #8FBCBB —
source.java meta.method-call meta.method #88C0D0 —
source.java meta.tag.template.link.javadoc, source.java string.other.link.title.javadoc #8FBCBB —
source.java meta.tag.template.value.javadoc #88C0D0 —
source.java punctuation.definition.keyword.javadoc #8FBCBB —
source.java punctuation.definition.tag.begin.javadoc, source.java punctuation.definition.tag.end.javadoc #4C566A —
source.java storage.modifier.import #8FBCBB —
source.java storage.modifier.package #8FBCBB —
source.java storage.type #8FBCBB —
source.java storage.type.annotation #D08770 —
source.java storage.type.generic #8FBCBB —
source.java storage.type.primitive #81A1C1 —
source.js punctuation.decorator, source.js meta.decorator variable.other.readwrite, source.js meta.decorator entity.name.function #D08770 —
source.js meta.object-literal.key #88C0D0 —
source.js storage.type.class.jsdoc #8FBCBB —
source.js string.template punctuation.definition.template-expression #5E81AC —
source.js string.template meta.template.expression support.variable.property, source.js string.template meta.template.expression variable.other.object #E5E9F1 —
source.js support.type.primitive #81A1C1 —
variable.language.this.js #B48EAD italic
meta.tag.js entity.name.tag.js support.class.component.js #81A1C1 —
source.js meta.var.expr variable.other.object #8FBCBB —
source.js variable.other.readwrite.alias #8FBCBB —
text.html.basic constant.character.entity.html #EBCB8B —
text.html.basic constant.other.inline-data #D08770 italic
text.html.basic meta.tag.sgml.doctype #5E81AC —
text.html.basic punctuation.definition.entity #81A1C1 —
source.properties entity.name.section.group-title.ini #88C0D0 —
source.properties punctuation.separator.key-value.ini #81A1C1 —
text.html.markdown markup.fenced_code.block #7B88A1 —
text.html.markdown markup.fenced_code.block punctuation.definition #E5E9F1 —
fenced_code.block.language #E5E9F1 —
text.html.markdown markup.inline.raw, text.html.markdown markup.inline.raw punctuation.definition.raw #8FBCBB —
text.html.markdown markup.italic — italic
text.html.markdown markup.underline.link — underline
text.html.markdown beginning.punctuation.definition.list #81A1C1 —
text.html.markdown beginning.punctuation.definition.quote #8FBCBB —
text.html.markdown markup.quote #4C566A italic
text.html.markdown punctuation.definition.heading #81A1C1 —
text.html.markdown punctuation.definition.constant, text.html.markdown punctuation.definition.string #81A1C1 —
text.html.markdown constant.other.reference.link, text.html.markdown string.other.link.description, text.html.markdown string.other.link.title #88C0D0 —
source.php meta.function-call, source.php meta.function-call.object #88C0D0 —
source.python entity.name.function.decorator, source.python meta.function.decorator support.type #D08770 —
source.python meta.function-call, source.python meta.function-call.generic #88C0D0 —
source.python support.type #88C0D0 —
source.python variable.parameter.function.language #E5E9F1 —
source.python meta.function.parameters variable.parameter.function.language.special.self #81A1C1 —
source.css.scss punctuation.definition.interpolation.begin.bracket.curly, source.css.scss punctuation.definition.interpolation.end.bracket.curly #81A1C1 —
source.css.scss variable.interpolation #E5E9F1 italic
source.ts punctuation.decorator, source.ts meta.decorator variable.other.readwrite, source.ts meta.decorator entity.name.function, source.tsx punctuation.decorator, source.tsx meta.decorator variable.other.readwrite, source.tsx meta.decorator entity.name.function #D08770 —
source.ts meta.object-literal.key, source.tsx meta.object-literal.key #E5E9F1 —
source.ts meta.object-literal.key entity.name.function, source.tsx meta.object-literal.key entity.name.function #88C0D0 —
source.ts support.class, source.ts support.type, source.ts entity.name.type, source.ts entity.name.class, source.tsx support.class, source.tsx support.type, source.tsx entity.name.type, source.tsx entity.name.class #8FBCBB —
source.ts support.constant.math, source.ts support.constant.dom, source.ts support.constant.json, source.tsx support.constant.math, source.tsx support.constant.dom, source.tsx support.constant.json #8FBCBB —
source.ts support.variable, source.tsx support.variable #E5E9F1 —
text.xml entity.name.tag.namespace #8FBCBB —
text.xml keyword.other.doctype #5E81AC —
text.xml meta.tag.preprocessor entity.name.tag #5E81AC —
text.xml string.unquoted.cdata, text.xml string.unquoted.cdata punctuation.definition.string #D08770 italic
source.yaml entity.name.tag #8FBCBB —
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*
Nordic Midnight | Coding Theme 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 } ! ` ;
}