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 #1abc9c activityBar.background #1b1f231a activityBar.foreground #12977d activityBar.inactiveForeground #35393c activityBarBadge.background #1abc9c breadcrumb.background #1b1f231a tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment, punctuation.definition.comment #7f8a8b italic variable, string constant.other.placeholder #35393c — constant.other.color #35393c — invalid, invalid.illegal #ce3952 — keyword, storage.type, storage.modifier
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Dark Reader (Light) — Dark Reader (Light)
editor.background #d9d7d4
editor.foreground #35393c
editor.selectionBackground #9ce0d3
editorGroupHeader.tabsBackground #1b1f231a
editorGroupHeader.tabsBorder #31363b
input.background #1b1f231a
input.foreground #35393c
list.activeSelectionBackground #1abc9c
list.activeSelectionForeground #35393c
sideBar.background #d9d7d4
sideBar.border #a5a5a5
sideBarSectionHeader.background #1b1f231a
sideBarSectionHeader.foreground #35393c
sideBarTitle.foreground #bbbbbb
statusBar.background #1b1f231a
statusBar.foreground #35393c
tab.activeBackground #1b1f231a
tab.activeBorderTop #1abc9c
tab.activeForeground #35393c
tab.border #6e6e6e00
tab.hoverBorder #1abc9c
tab.inactiveBackground #1b1f231a
terminal.ansiBlack #232627
terminal.ansiBlue #009c8f
terminal.ansiBrightBlack #464e4f
terminal.ansiBrightBlue #00b6a4
terminal.ansiBrightCyan #16a085
terminal.ansiBrightGreen #7f990d
terminal.ansiBrightMagenta #8e44ad
terminal.ansiBrightRed #ca1111
terminal.ansiBrightWhite #5d5c5a
terminal.ansiBrightYellow #9e6200
terminal.ansiCyan #17b898
terminal.ansiGreen #738d01
terminal.ansiMagenta #aa62c8
terminal.ansiRed #bf0c0c
terminal.ansiWhite #42413f
terminal.ansiYellow #d59200
terminal.background #d9d7d4
terminal.foreground #35393c 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 #009c8f —
entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter #738d01 italic
entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method #738d01 —
meta.block variable.other #9e6200 —
support.other.variable, string.other.link #ce3952 —
constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other #ce3952 bold
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 #6b6a67 —
entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types #7f9c0c —
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 # —
entity.name.module.js, variable.import.parameter.js, variable.other.class.js #FF5370 —
variable.language #FF5370 italic
entity.name.method.js #5c86e0 italic
meta.class-method.js entity.name.function.js, variable.function.constructor #5c86e0 —
entity.other.attribute-name #3f9991 —
text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name #c49338 italic
entity.other.attribute-name.class #819e0d —
source.sass keyword.control #3b64bd —
constant.character.escape #37758d —
*url*, *link*, *uri* — underline
tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js #37758d 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 #009c8f —
source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json #7f9c0c —
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 #9e6200 —
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 #8e44ad —
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 #974d3f —
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 #3f64b6 —
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 #af3138 —
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 #874baf —
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 #769e3b —
text.html.markdown, punctuation.definition.list_item.markdown #35393c —
text.html.markdown markup.inline.raw.markdown #8e44ad —
text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown #51504e —
markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown #738d01 —
markup.italic #9e6200 italic
markup.bold, markup.bold string #d59200 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 #d59200 bold
markup.underline #8e44ad underline
markup.quote punctuation.definition.blockquote.markdown #546572 —
string.other.link.title.markdown #17b898 —
string.other.link.description.title.markdown #aa62c8 —
constant.other.reference.link.markdown #c4890c —
markup.raw.block.fenced.markdown #00000050 —
punctuation.definition.fenced.markdown #00000050 —
markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end #232627 —
variable.language.fenced.markdown #586975 —
meta.separator #51504e 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
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
fetchUser
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 } ! ` ;
}
Dark Reader (Light) | Coding Theme