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 #00000000 activityBar.background #191919 activityBar.border #00000000 activityBar.foreground #18baba activityBar.inactiveForeground #18baba2a activityBarBadge.background #565656 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment, punctuation.definition.comment #546E7A italic variable, string constant.other.placeholder #abcbcb — 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.
activityBarBadge.foreground #18baba
badge.background #565656
badge.foreground #18baba
breadcrumb.activeSelectionForeground #18baba
breadcrumb.background #191919
breadcrumb.focusForeground #18baba
breadcrumb.foreground #565656
button.background #18baba2a
button.foreground #18baba
button.hoverBackground #18baba8d
button.secondaryBackground #18baba2a
button.secondaryForeground #18baba
button.secondaryHoverBackground #18baba8d
checkbox.background #191919
checkbox.border #00000000
checkbox.foreground #18baba
debugExceptionWidget.background #191919
debugExceptionWidget.border #18baba
debugToolBar.background #191919
debugToolBar.border #18baba
diffEditor.border #00000000
diffEditor.insertedTextBackground #79943a33
diffEditor.insertedTextBorder #864c4c
diffEditor.removedTextBackground #ff4e4e33
diffEditor.removedTextBorder #8a41418b
dropdown.background #191919
dropdown.border #00000000
dropdown.foreground #18baba
editor.background #191919
editor.findMatchBackground #18baba2a
editor.findMatchBorder #18baba
editor.findMatchHighlightBackground #18baba2a
editor.findMatchHighlightBorder #00000000
editor.findRangeHighlightBackground #35445866
editor.findRangeHighlightBorder #f2f2f200
editor.foldBackground #18baba2a
editor.foreground #18baba
editor.hoverHighlightBackground #18baba2a
editor.inactiveSelectionBackground #18baba2a
editor.lineHighlightBackground #00000000
editor.lineHighlightBorder #00000000
editor.rangeHighlightBackground #ffb1b10b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #18baba2a
editor.selectionHighlightBackground #18baba2a
editor.selectionHighlightBorder #18baba
editor.wordHighlightBackground #18baba2a
editor.wordHighlightBorder #00000000
editor.wordHighlightStrongBackground #18baba2a
editor.wordHighlightStrongBorder #00000000
editorBracketMatch.background #18baba2a
editorBracketMatch.border #18baba
editorCodeLens.foreground #565656
editorCursor.background #565656
editorCursor.foreground #18baba
editorError.background #00000000
editorError.border #00000000
editorError.foreground #b85566
editorGroup.border #18baba2a
editorGroup.emptyBackground #191919
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #191919
editorGroupHeader.tabsBorder #00000000
editorGutter.addedBackground #55ba0f
editorGutter.background #191919
editorGutter.commentRangeForeground #565656
editorGutter.deletedBackground #c41f26
editorGutter.foldingControlForeground #565656
editorGutter.modifiedBackground #26a8cd
editorHoverWidget.background #191919
editorHoverWidget.border #18baba
editorHoverWidget.foreground #18baba
editorIndentGuide.activeBackground #18baba
editorIndentGuide.background #18baba2a
editorInfo.background #00000000
editorInfo.border #00000000
editorInfo.foreground #5186b6
editorLineNumber.activeForeground #18baba
editorLineNumber.foreground #565656
editorLink.activeForeground #18baba
editorMarkerNavigation.background #323245
editorMarkerNavigationError.background #8a4d4d
editorMarkerNavigationInfo.background #527fa7
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #00000000
editorOverviewRuler.border #00000000
editorRuler.foreground #18baba2a
editorSuggestWidget.background #191919
editorSuggestWidget.border #18baba
editorSuggestWidget.foreground #565656
editorSuggestWidget.highlightForeground #18baba
editorSuggestWidget.selectedBackground #18baba2a
editorWarning.background #00000000
editorWarning.border #00000000
editorWarning.foreground #565656
editorWhitespace.foreground #18baba
editorWidget.background #191919
editorWidget.foreground #565656
editorWidget.resizeBorder #18baba
focusBorder #00000000
foreground #18baba
gitDecoration.addedResourceForeground #81b88b
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #c74e39
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #18baba
input.background #191919
input.border #00000000
input.foreground #18baba
input.placeholderForeground #565656
inputOption.activeBackground #18baba2a
inputOption.activeBorder #18baba
inputOption.activeForeground #18baba
list.activeSelectionBackground #18baba2a
list.activeSelectionForeground #18baba
list.dropBackground #18baba2a
list.focusBackground #18baba2a
list.focusForeground #565656
list.highlightForeground #18baba
list.hoverBackground #00000000
list.hoverForeground #18baba2a
list.inactiveSelectionBackground #18baba2a
list.inactiveSelectionForeground #18baba
listFilterWidget.background #18baba2a
listFilterWidget.noMatchesOutline #00000000
listFilterWidget.outline #18baba
menu.background #191919
menu.border #00000000
menu.foreground #18baba
menu.selectionBackground #18baba2a
menu.selectionBorder #00000000
menu.selectionForeground #18baba
menu.separatorBackground #18baba2a
menubar.selectionBackground #18baba2a
menubar.selectionBorder #00000000
menubar.selectionForeground #18baba
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #191919
minimap.errorHighlight #b85566
minimap.findMatchHighlight #18baba2a
minimap.selectionHighlight #18baba2a
minimap.warningHighlight #565656
minimapGutter.addedBackground #55ba0f
minimapGutter.deletedBackground #c41f26
minimapGutter.modifiedBackground #26a8cd
notificationCenter.border #18baba2a
notificationCenterHeader.background #191919
notificationCenterHeader.foreground #18baba
notifications.background #191919
notifications.border #18baba2a
notifications.foreground #18baba
notificationsErrorIcon.foreground #b85566
notificationsInfoIcon.foreground #18baba
notificationsWarningIcon.foreground #cca700
notificationToast.border #18baba
panel.background #191919
panel.border #18baba2a
panelSection.border #18baba2a
panelTitle.activeBorder #18baba
panelTitle.activeForeground #18baba
panelTitle.inactiveForeground #18baba
peekView.border #7bb4d9
peekViewEditor.background #1c2741
peekViewEditor.matchHighlightBackground #ee860056
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #1c2741
peekViewResult.background #141c30
peekViewResult.fileForeground #b0f0ff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1c2741
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #cbfdff
pickerGroup.border #00000000
pickerGroup.foreground #18baba
progressBar.background #18baba
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #18baba
scrollbarSlider.background #18baba2a
scrollbarSlider.hoverBackground #18baba
selection.background #18baba2a
settings.focusedRowBackground #ffffff07
settings.headerForeground #18baba
sideBar.background #191919
sideBar.border #18baba2a
sideBar.dropBackground #18baba2a
sideBar.foreground #18baba
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #00000000
sideBarSectionHeader.foreground #18baba
sideBarTitle.foreground #18baba
statusBar.background #191919
statusBar.border #00000000
statusBar.debuggingBackground #191919
statusBar.debuggingBorder #00000000
statusBar.debuggingForeground #18baba
statusBar.foreground #18baba
statusBar.noFolderBackground #191919
statusBar.noFolderBorder #00000000
statusBar.noFolderForeground #18baba
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #18baba2a
statusBarItem.remoteBackground #00000000
statusBarItem.remoteForeground #18baba
tab.activeBackground #191919
tab.activeBorder #18baba
tab.activeBorderTop #5affb200
tab.activeForeground #18baba
tab.border #00000000
tab.hoverBackground #18baba2a
tab.hoverBorder #00000000
tab.hoverForeground #18baba
tab.inactiveBackground #191919
tab.inactiveForeground #565656
terminal.ansiBlack #000000
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #e5e510
terminal.border #18baba2a
terminal.foreground #18baba
terminal.selectionBackground #18baba2a
terminalCursor.background #18baba2a
terminalCursor.foreground #18baba
textLink.foreground #b85566
titleBar.activeBackground #191919
titleBar.activeForeground #18baba
titleBar.border #00000000
titleBar.inactiveBackground #191919
titleBar.inactiveForeground #18baba
tree.indentGuidesStroke #18baba
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000000 punctuation.definition.string.begin.python, punctuation.definition.string.end.python #2d7e7e —
comment, punctuation.definition.comment #565656 —
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 #18baba —
entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter #18baba —
entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method #b85566 —
meta.block variable.other #18baba —
support.other.variable, string.other.link #f07178 —
constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other #2d7e7e —
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 #2d7e7e —
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 #abcbcb —
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 #abcbcb —
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 #abcbcb —
entity.other.attribute-name.class #b85566 —
source.sass keyword.control #82AAFF —
constant.character.escape #b85566 —
*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 #18baba —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #abcbcb —
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 #b85566 —
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 #3cc9c2 —
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 #ffffff —
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 #abcbcb —
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 #b85566 —
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 #3cc9c2 —
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 #ffffff —
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
text.html.derivative #b85566 —
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 } ! ` ;
}
Cyan Gray | Coding Theme