Skip to main content
Home Theme VS Code Midnight Sapphire ✨ Unlock the secrets of coding under the starlight ✨ with Midnight Sapphire. Immerse yourself in a luxuriously dark coding experience, where every keystroke shines bright. ⭐️ Let your code sparkle with elegance and sophistication. ✨
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 #603e2e activityBar.background #1b1e2a activityBar.border #36417b activityBar.foreground #ffef53 activityBar.inactiveForeground #d9e5ff activityBarBadge.background #5c6bc0 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment, punctuation.definition.comment #546E7A italic variable, string constant.other.placeholder #EEFFFF — constant.other.color #ffffff — invalid, invalid.illegal #FF5370 — keyword, storage.type, storage.modifier
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Midnight Sapphire ✨ — Midnight Sapphire Midnight Sapphire ✨ | Coding Theme
activityBarBadge.foreground
#e1ebff
badge.background #6374d5d5
badge.foreground #d9e5ff
breadcrumb.activeSelectionForeground #ffed45
breadcrumb.background #3439514e
breadcrumb.focusForeground #ffed45
breadcrumb.foreground #eaf1ff
button.background #48559f
button.foreground #f4f7ff
button.hoverBackground #5c6bc0
button.secondaryBackground #4b4e60a9
button.secondaryForeground #f4f7ff
button.secondaryHoverBackground #575c79a9
checkbox.background #242634c7
checkbox.border #b81d1d00
checkbox.foreground #eff4ff
debugExceptionWidget.background #2d2f3d
debugExceptionWidget.border #455296
debugToolBar.background #2d2f3d
debugToolBar.border #455296
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #242634c7
dropdown.border #b81d1d00
dropdown.foreground #eff4ff
editor.background #1b1e2a
editor.findMatchBackground #77573b
editor.findMatchBorder #9f653b
editor.findMatchHighlightBackground #db763455
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #282a34
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #ffffff
editor.hoverHighlightBackground #485188
editor.inactiveSelectionBackground #323843
editor.lineHighlightBackground #2c3047
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #ffffff1e
editor.rangeHighlightBorder #ffa5a570
editor.selectionBackground #252c51
editor.selectionHighlightBackground #27316d
editor.selectionHighlightBorder #5c6bc0
editor.wordHighlightBackground #495077
editor.wordHighlightBorder #fb151500
editor.wordHighlightStrongBackground #444c77
editor.wordHighlightStrongBorder #e2040400
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #eef3ff
editorCursor.foreground #6777cb
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #444444
editorGroup.emptyBackground #1b1e2a
editorGroupHeader.border #a73b3b00
editorGroupHeader.tabsBackground #282a3d
editorGroupHeader.tabsBorder #323b68
editorGutter.addedBackground #587c0c
editorGutter.background #1d2234
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #181a28
editorHoverWidget.border #4a5596
editorHoverWidget.foreground #d9e5ff
editorIndentGuide.activeBackground #9dacff
editorIndentGuide.background #435099
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #c0d5ff
editorLineNumber.foreground #5e6777
editorLink.activeForeground #6a7ad5
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #4a548c
editorSuggestWidget.background #181a28
editorSuggestWidget.border #5c6bc0
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #e4e8ff
editorSuggestWidget.selectedBackground #5c6bc0
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #697080
editorWidget.background #222532
editorWidget.foreground #adb1bc
editorWidget.resizeBorder #5d6dc4
focusBorder #5264be
foreground #d9e5ff
gitDecoration.addedResourceForeground #11d567
gitDecoration.conflictingResourceForeground #6969c2
gitDecoration.deletedResourceForeground #ea4e33
gitDecoration.ignoredResourceForeground #8c94a3
gitDecoration.modifiedResourceForeground #f9e84e
gitDecoration.stageDeletedResourceForeground #ea4e33
gitDecoration.stageModifiedResourceForeground #f9e84e
gitDecoration.submoduleResourceForeground #80c2ff
gitDecoration.untrackedResourceForeground #11d567
icon.foreground #d9e5ff
input.background #242634c7
input.border #b81d1d00
input.foreground #eff4ff
input.placeholderForeground #d6d8db
inputOption.activeBackground #394066
inputOption.activeBorder #5866b6
inputOption.activeForeground #ecf2ff
list.activeSelectionBackground #5563b0
list.activeSelectionForeground #ffea28
list.dropBackground #3f456293
list.focusBackground #4e5788
list.focusForeground #ffffff
list.highlightForeground #c0d5ff
list.hoverBackground #777ea758
list.hoverForeground #d9e5ff
list.inactiveSelectionBackground #46519258
list.inactiveSelectionForeground #d9e5ff
listFilterWidget.background #564829cf
listFilterWidget.noMatchesOutline #ff4242
listFilterWidget.outline #ffef5a
menu.background #1e2130
menu.border #3e4c9f
menu.foreground #d5e3ff
menu.selectionBackground #4b59a5
menu.selectionBorder #5f71d7
menu.selectionForeground #ffffff
menu.separatorBackground #cedeff8f
menubar.selectionBackground #616999a3
menubar.selectionBorder #272e54
menubar.selectionForeground #ffed45
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #1b1e2a
minimap.errorHighlight #f48771
minimap.findMatchHighlight #77573b
minimap.selectionHighlight #252c51
minimap.warningHighlight #cca700
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #424c8a
notificationCenterHeader.background #34418a
notificationCenterHeader.foreground #eef3ff
notifications.background #111221
notifications.border #424c8a
notifications.foreground #cfdeff
notificationsErrorIcon.foreground #ff5252
notificationsInfoIcon.foreground #6fd3ff
notificationsWarningIcon.foreground #f9e741
notificationToast.border #384280
panel.background #1b1e2a
panel.border #505b9b
panelSection.border #586299
panelTitle.activeBorder #6272cb
panelTitle.activeForeground #e6eaff
panelTitle.inactiveForeground #c1c1c4
peekView.border #5766bc
peekViewEditor.background #1b1d30
peekViewEditor.matchHighlightBackground #5a3d1799
peekViewEditor.matchHighlightBorder #de9e4c
peekViewEditorGutter.background #0d1230
peekViewResult.background #13172c
peekViewResult.fileForeground #f6f9ff
peekViewResult.lineForeground #ffffff
peekViewResult.matchHighlightBackground #e06d234d
peekViewResult.selectionBackground #2d84db33
peekViewResult.selectionForeground #fffafa
peekViewTitle.background #1e2230
peekViewTitleDescription.foreground #eef3ff
peekViewTitleLabel.foreground #e7da5f
pickerGroup.border #272e54
pickerGroup.foreground #5c6bc0
progressBar.background #808fe4
scrollbar.shadow #1d2136
scrollbarSlider.activeBackground #5c6bc0
scrollbarSlider.background #5c6bc076
scrollbarSlider.hoverBackground #4d578e
selection.background #384664
settings.focusedRowBackground #ffffff07
settings.headerForeground #d9e5ff
sideBar.background #282a34
sideBar.border #444d82
sideBar.dropBackground #3f456293
sideBar.foreground #d9e5ff
sideBarSectionHeader.background #48549658
sideBarSectionHeader.border #3c4264
sideBarSectionHeader.foreground #d9e5ff
sideBarTitle.foreground #d9e5ff
statusBar.background #007acc
statusBar.debuggingBackground #cc6633
statusBar.debuggingForeground #ffffff
statusBar.foreground #d9e5ff
statusBar.noFolderBackground #68217a
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #16825d
statusBarItem.remoteForeground #ffffff
tab.activeBackground #212538
tab.activeBorder #546bf2
tab.activeBorderTop #5c6bc000
tab.activeForeground #ecf2ff
tab.border #292f51
tab.hoverBackground #1e2134
tab.hoverBorder #ffec3d
tab.hoverForeground #ecf2ff
tab.inactiveBackground #282a3d
tab.inactiveForeground #ecf2ff
terminal.ansiBlack #545454
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #8c8c8c
terminal.ansiBrightBlue #278dfd
terminal.ansiBrightCyan #08c3f0
terminal.ansiBrightGreen #0ad785
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #ffec3b
terminal.ansiCyan #28a6c4
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #c9c9c9
terminal.ansiYellow #e7da5f
terminal.border #586299
terminal.foreground #d9e5ff
terminal.selectionBackground #624e306a
terminalCursor.background #414660
terminalCursor.foreground #d9e5ff
textLink.foreground #a2abe0
titleBar.activeBackground #40466b
titleBar.activeForeground #d9e5ff
titleBar.border #394690
titleBar.inactiveBackground #383b49
titleBar.inactiveForeground #c0d5ff
tree.indentGuidesStroke #45508e
walkThrough.embeddedEditorBackground #00000050
widget.shadow #5c6bc036 keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution #89DDFF —
entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter #f07178 —
entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method #82AAFF —
meta.block variable.other #f07178 —
support.other.variable, string.other.link #f07178 —
constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other #F78C6C —
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 #C3E88D —
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 #FFCB6B —
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 #B2CCD6 —
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 #C792EA —
text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name #FFCB6B italic
entity.other.attribute-name.class #FFCB6B —
source.sass keyword.control #82AAFF —
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
markup.quote punctuation.definition.blockquote.markdown #65737E —
string.other.link.title.markdown #82AAFF —
string.other.link.description.title.markdown #C792EA —
constant.other.reference.link.markdown #FFCB6B —
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 } ! ` ;
}