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.activeBackground #ffffff00 activityBar.background #000011 activityBar.border #e4caca00 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #0ae78d tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle string #ffe881 — constant.numeric #6096FF — variable, meta.definition.variable #51f1bc — entity.name.function, meta.function-call, entity.name.type #ffffff — comment
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground #000000
badge.background #0ae78d
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #00001100
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #0ae78d
button.foreground #000000
button.hoverBackground #06b871
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e
checkbox.background #222238
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #000011
debugExceptionWidget.border #222238
debugToolBar.background #000011
debugToolBar.border #222238
diffEditor.border #00000000
diffEditor.insertedLineBackground #00D17C23
diffEditor.insertedTextBackground #0ae78d26
diffEditor.insertedTextBorder #00000000
diffEditor.removedLineBackground #FF00152B
diffEditor.removedTextBackground #F1001433
diffEditor.removedTextBorder #00000000
dropdown.background #222238
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #000011
editor.findMatchBackground #ffffff4c
editor.findMatchBorder #ffffff4c
editor.findMatchHighlightBackground #ffffff4c
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #222238
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #222238
editor.foreground #ffffff
editor.hoverHighlightBackground #ffffff24
editor.inactiveSelectionBackground #222238
editor.lineHighlightBackground #222238
editor.lineHighlightBorder #ffffff00
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #222238
editor.selectionHighlightBackground #ffffff4c
editor.selectionHighlightBorder #ffffff4c
editor.wordHighlightBackground #575757b8
editor.wordHighlightBorder #ffffff00
editor.wordHighlightStrongBackground #ffffff24
editor.wordHighlightStrongBorder #ffffff00
editorBracketMatch.background #fffc6700
editorBracketMatch.border #ffffff00
editorCodeLens.foreground #e2e2e2
editorCursor.background #000000
editorCursor.foreground #ffffff
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f12d52
editorGroup.border #323232
editorGroup.emptyBackground #000011
editorGroupHeader.tabsBackground #0ae78d00
editorGroupHeader.tabsBorder #5c2a2a00
editorGutter.addedBackground #12b874
editorGutter.background #ffffff00
editorGutter.commentRangeForeground #e2e2e2
editorGutter.deletedBackground #E51212
editorGutter.foldingControlForeground #e2e2e2
editorGutter.modifiedBackground #6096ff
editorHoverWidget.background #000011
editorHoverWidget.border #222238
editorHoverWidget.foreground #ffffff
editorIndentGuide.activeBackground #ffffff70
editorIndentGuide.background #ffffff33
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #6096ff
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #9d9d9d
editorLink.activeForeground #ff76f6
editorMarkerNavigation.background #000011
editorMarkerNavigationError.background #f12d52
editorMarkerNavigationInfo.background #6096ff
editorMarkerNavigationWarning.background #ff9a16
editorOverviewRuler.background #25252500
editorOverviewRuler.border #ffffff00
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #000011
editorSuggestWidget.border #222238
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #0ae78d
editorSuggestWidget.selectedBackground #171732
editorWarning.background #ffffff00
editorWarning.border #ffffff00
editorWarning.foreground #ff9a16
editorWhitespace.foreground #ffffff29
editorWidget.background #000011
editorWidget.foreground #bababa
editorWidget.resizeBorder #5F5F5F
focusBorder #222238
foreground #ffffff
gitDecoration.addedResourceForeground #12b874
gitDecoration.conflictingResourceForeground #DC980C
gitDecoration.deletedResourceForeground #E51212
gitDecoration.ignoredResourceForeground #9b9b9b
gitDecoration.modifiedResourceForeground #6096ff
gitDecoration.stageDeletedResourceForeground #E51212
gitDecoration.stageModifiedResourceForeground #6096ff
gitDecoration.submoduleResourceForeground #000000
gitDecoration.untrackedResourceForeground #12b874
icon.foreground #ffffff
input.background #222238
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #cbcbcb
inputOption.activeBackground #0ae78d
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #222238
list.activeSelectionForeground #ffffff
list.dropBackground #222238
list.focusBackground #000011
list.focusForeground #ffffff
list.highlightForeground #0ae78d
list.hoverBackground #222238
list.hoverForeground #ffffff
list.inactiveSelectionBackground #222238
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #ff9a16
listFilterWidget.noMatchesOutline #f12d52
listFilterWidget.outline #00000000
menu.background #000011
menu.border #222238
menu.foreground #cccccc
menu.selectionBackground #222238
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #222238
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #282828
merge.commonHeaderBackground #6b6b6b
merge.currentContentBackground #0a8c57
merge.currentHeaderBackground #0ae78d
merge.incomingContentBackground #305292
merge.incomingHeaderBackground #6096ff
minimap.background #000011
minimap.errorHighlight #f12d52
minimap.findMatchHighlight #ffffff4c
minimap.selectionHighlight #222238
minimap.warningHighlight #ff9a16
minimapGutter.addedBackground #12b874
minimapGutter.deletedBackground #E51212
minimapGutter.modifiedBackground #6096ff
notificationCenter.border #222238
notificationCenterHeader.background #222238
notificationCenterHeader.foreground #cccccc
notifications.background #000011
notifications.border #222238
notifications.foreground #cccccc
notificationsErrorIcon.foreground #f12d52
notificationsInfoIcon.foreground #0ae78d
notificationsWarningIcon.foreground #ff9a16
notificationToast.border #222238
panel.background #000011
panel.border #80808059
panelSection.border #80808059
panelTitle.activeBorder #e7e7e7
panelTitle.activeForeground #e7e7e7
panelTitle.inactiveForeground #e7e7e799
peekView.border #000011
peekViewEditor.background #222238
peekViewEditor.matchHighlightBackground #000011
peekViewEditor.matchHighlightBorder #ee931e00
peekViewEditorGutter.background #2d485a00
peekViewResult.background #44449400
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #000000
peekViewResult.selectionBackground #000000
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #222238
peekViewTitleDescription.foreground #ffffffb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #ffffff00
pickerGroup.foreground #0ae78d
progressBar.background #42426b
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #22223887
scrollbarSlider.background #22223887
scrollbarSlider.hoverBackground #39395687
selection.background #000011
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffffff
sideBar.background #000011
sideBar.border #ffffff00
sideBar.dropBackground #222238
sideBar.foreground #f2f2f2
sideBarSectionHeader.background #ffffff00
sideBarSectionHeader.border #dedede00
sideBarSectionHeader.foreground #ffffff
sideBarTitle.foreground #ffffff
statusBar.background #000011
statusBar.border #ffffff00
statusBar.debuggingBackground #000011
statusBar.debuggingBorder #ffffff00
statusBar.debuggingForeground #e6e6e6
statusBar.foreground #ffffff
statusBar.noFolderBackground #222238
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #222238
statusBarItem.remoteBackground #0ae78d
statusBarItem.remoteForeground #000000
tab.activeBackground #22223800
tab.activeBorder #6096ff00
tab.activeBorderTop #0ae78d
tab.activeForeground #ffffff
tab.border #ffffff00
tab.inactiveBackground #000011
tab.inactiveForeground #ffffff80
terminal.ansiBlack #000000
terminal.ansiBlue #4883f7
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #6096ff
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #3dfcb0
terminal.ansiBrightMagenta #d573d5
terminal.ansiBrightRed #f6516f
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #fffd94
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0ae78d
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #f12d52
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #fffc67
terminal.border #80808059
terminal.foreground #cccccc
terminal.selectionBackground #ffffff40
terminalCursor.background #ffffff
terminalCursor.foreground #ffffff
textLink.foreground #0ae78d
titleBar.activeBackground #000011
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #000011
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #b8b8b800
walkThrough.embeddedEditorBackground #00000050
widget.shadow #a1a1a100 #61617b
storage.type, storage.modifier #FF6294 —
meta.jsx.children #ffffff —
meta.type, entity.name.type #dddddd —
meta.tag.attributes, entity.other.attribute-name.html #b080ff —
punctuation.definition.tag #ffffff —
keyword.control.import, keyword.control.from #6096FF —
variable.other.readwrite.alias #ffffff —
keyword.operator.assignment, punctuation.separator.key-value, meta.tag.svg #ffffff —
entity.name.type.alias, entity.name.type.interface #51f1bc —
keyword.other.special-method #51f1bc —
support.type.property-name.json, entity.name.tag.yaml #ffffff —
string.other.link.title.markdown #ffe881 —
string.other.link.description.markdown #51f1bc —
markup.underline.link.image.markdown, markup.underline.link.markdown #b080ff —
entity.name.tag.css #b080ff bold
entity.other.attribute-name.class.css, entity.other.attribute-name.id.css #ffe881 —
entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element #FF6294 —
support.type.property-name.css #51f1bc —
constant.numeric.css #ffffff —
keyword.other.important.css #FF6294 —
entity.name.tag.localname.svg #51f1bc —
entity.other.attribute-name.localname.svg #b080ff —
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...
main*
Button.tsx
31
~/my-project
$
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 }!` ;
}
Octopus | Coding Theme