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 #ffffff activityBar.foreground #596377 activityBarBadge.background #091121 activityBarBadge.foreground #ffffff editor.background #ffffff editor.foreground #091121 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle Global settings #010101 — comment #697098 italic string #3CB371 — string.quoted #3CB371 — string.unquoted
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Dayspring theme — Dayspring theme
editor.lineHighlightBackground
#fafafa
editorPane.background #f1f1f1
gitDecoration.modifiedResourceForeground #091121
gitDecoration.untrackedResourceForeground #0088FF
list.activeSelectionBackground #e5e5e5
list.activeSelectionForeground #091121
list.errorForeground #FF0000
list.hoverBackground #e5e5e5
list.hoverForeground #1E90FF
list.inactiveSelectionBackground #f1f1f1
list.inactiveSelectionForeground #1E90FF
scrollbarSlider.activeBackground #e5e5e5
scrollbarSlider.background #ffffff
sideBar.background #fafafa
sideBarSectionHeader.background #f1f1f1
sideBarSectionHeader.foreground #091121
sideBarTitle.foreground #010101
statusBar.background #f1f1f1
statusBar.foreground #091121
tab.activeBackground #e5e5e5
tab.activeBorder #010101
tab.border #e5e5e5
tab.inactiveBackground #f1f1f1
terminal.background #ffffff
#010101
support.constant.math #ffbc3e —
constant.numeric, constant.character.numeric #F78C6C —
constant.language, punctuation.definition.constant, variable.other.constant #1E90FF bold
constant.character, constant.other #1E90FF —
constant.character.escape #F78C6C —
string.regexp, string.regexp keyword.other #3CB371 —
meta.function punctuation.separator.comma #eeffff —
punctuation.accessor, keyword #9932CC —
storage, storage.type, meta.var.expr storage.type, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx, meta.class meta.method.declaration meta.var.expr storage.type.js #9932CC —
entity.name.class, meta.class entity.name.type.class #ffbc3e —
entity.other.inherited-class #a9c77d —
entity.name.function #1E90FF —
variable.parameter #7986E7 bold
punctuation.definition.tag, meta.tag #54ceff —
entity.name.tag support.class.component, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html #ff5572 bold
entity.other.attribute-name #ffbc3e
entity.name.tag.custom #ffbc3e —
support.function, support.constant #1E90FF —
support.constant.meta.property-value #54ceff —
support.type, support.class #ffbc3e bold
support.variable.dom #ffbc3e —
invalid.deprecated #ffffff —
keyword.operator.relational #9932CC —
keyword.operator.assignment #9932CC —
comment.line.double-slash #697098 —
constant.language.null #ff5874 —
meta.delimiter.period #9932CC —
punctuation.definition.string #3CB371 —
constant.language.boolean #ff5874 —
variable.parameter.function #54ceff —
support.type.vendored.property-name, support.constant.vendored.property-value, support.type.property-name, meta.property-list entity.name.tag #010101 —
meta.property-list entity.name.tag.reference #ff5572 —
constant.other.color.rgb-value punctuation.definition.constant #F78C6C —
constant.other.color #ffe058 —
keyword.other.unit #FFEB95 —
entity.other.attribute-name.id #FAD430 —
meta.property-name #3CB371 —
entity.name.tag.doctype, meta.tag.sgml.doctype #9932CC italic
punctuation.definition.parameters #8A2BE2 bold
keyword.control.operator #54ceff —
keyword.operator.logical #9932CC —
variable.instance, variable.other.instance, variable.reaedwrite.instance, variable.other.readwrite.instance #ff5572 —
variable.other.property, variable.other.object.property #ff5a54 —
entity.name.function #1E90FF bold
keyword.operator.comparison #9932CC —
support.constant, keyword.other.special-method, keyword.other.new #54ceff —
invalid.unimplemented #ffffff —
variable.language #ff5572 —
support.variable.property #54ceff —
variable.function #1E90FF —
variable.interpolation #ec5f67 —
meta.function-call #1E90FF —
punctuation.section.embedded #d3423e —
punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array #010101 —
punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list #8A2BE2 —
string.template meta.template.expression #d3423e —
string.template punctuation.definition.string #010101 —
variable.assignment.coffee #54ceff —
variable.parameter.function.coffee #010101 —
variable.assignment.coffee #54ceff —
variable.other.readwrite.cs #010101 —
entity.name.type.class.cs, storage.type.cs #1E90FF —
entity.name.type.namespace.cs #B2CCD6 —
entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css #ff5572 —
entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass #ff5572 —
keyword.other.unit.css, constant.length.units.css, keyword.other.unit.less, constant.length.units.less, keyword.other.unit.scss, constant.length.units.scss, keyword.other.unit.sass, constant.length.units.sass, keyword.other.unit.px.css #8EACE3 —
meta.attribute-selector.css entity.other.attribute-name.attribute #F78C6C —
source.js source.css meta.property-list, source.js source.css punctuation.section, source.js source.css punctuation.terminator.rule, source.js source.css punctuation.definition.entity.end.bracket, source.js source.css punctuation.definition.entity.begin.bracket, source.js source.css punctuation.separator.key-value, source.js source.css punctuation.definition.attribute-selector, source.js source.css meta.property-list, source.js source.css meta.property-list punctuation.separator.comma, source.ts source.css punctuation.section, source.ts source.css punctuation.terminator.rule, source.ts source.css punctuation.definition.entity.end.bracket, source.ts source.css punctuation.definition.entity.begin.bracket, source.ts source.css punctuation.separator.key-value, source.ts source.css punctuation.definition.attribute-selector, source.ts source.css meta.property-list, source.ts source.css meta.property-list punctuation.separator.comma #010101 —
source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir #1E90FF —
source.elixir entity.name.function #ffbc3e —
source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir #1E90FF —
source.elixir punctuation.definition.string #a9c77d —
source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir #ffbc3e —
source.elixir .punctuation.binary.elixir #9932CC —
source.go meta.function-call.go #DDDDDD —
entity.other.attribute-name.id.html #ffbc3e —
punctuation.definition.tag.html #54ceff —
meta.tag.sgml.doctype.html #9932CC italic
meta.class entity.name.type.class.js #ffbc3e —
meta.method.declaration storage.type.js #1E90FF normal
meta.js punctuation.definition.js #010101 —
entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc #eeffff —
variable.other.jsdoc, variable.other.phpdoc #78ccf0 —
variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other #010101 bold
variable.parameter.function.js #7986E7 bold
variable.other.readwrite.js #010101 —
meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx #010101 —
variable.other.object.js, variable.other.object.jsx, meta.object-literal.key.js, meta.object-literal.key.jsx, variable.object.property.js, variable.object.property.jsx #333 —
variable.js, variable.other.js #333 —
entity.name.type.js, entity.name.type.module.js #ffbc3e —
support.type.property-name.json #ff5572 normal
support.constant.json #ffbc3e —
meta.structure.dictionary.value.json string.quoted.double #3CB371 normal
string.quoted.double.json punctuation.definition.string.json #3CB371 normal
meta.structure.dictionary.json meta.structure.dictionary.value constant.language #ff5874 —
constant.language.symbol.hashkey.ruby #54ceff —
entity.name.tag.less #ff5572 —
meta.attribute-selector.less entity.other.attribute-name.attribute #F78C6C —
markup.italic #9932CC italic
markup.quote #697098 italic
markup.inline.raw #3CB371 —
markup.underline.link, markup.underline.link.image #ff869a —
markup.meta.attribute-list #a9c77d —
markup.list.bullet #8A2BE2 —
markup.superscript, markup.subscript — italic
string.other.link.title.markdown, string.other.link.description.markdown #333 —
punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string #82b1ff —
punctuation.definition.metadata.markdown #ff5572 —
beginning.punctuation.definition.list.markdown #82b1ff —
entity.name.function.asciidoc #F78C6C —
variable.other.php #bec5d4 —
support.class.php #ffbc3e —
meta.function-call.php punctuation #333 —
variable.other.global.php #ffbc3e —
variable.other.global.php punctuation.definition.variable #ffbc3e —
constant.language.python #ff5874 —
variable.parameter.function.python, meta.function-call.arguments.python #7986E7 —
meta.function-call.python, meta.function-call.generic.python #B2CCD6 —
entity.name.function.decorator.python #ffbc3e —
source.python variable.language.special #8EACE3 —
variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass #DDDDDD —
source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable #1E90FF —
source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable #bec5d4 —
meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute #F78C6C —
entity.name.tag.scss, entity.name.tag.sass #ff5572 —
variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts #333 —
entity.name.type.ts, entity.name.type.tsx #FFB200 bold
support.class.node.ts, support.class.node.tsx #1E90FF —
meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type #eeffff —
meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block #333 —
meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx #1E90FF —
meta.tag.js meta.jsx.children.tsx #1E90FF —
entity.name.tag.yaml #54ceff —
variable.parameter.handlebars #bec5d4 —
entity.other.attribute-name.handlebars variable.parameter.handlebars #ffbc3e —
entity.other.attribute-name.handlebars #54ceff —
entity.other.attribute-value.handlebars variable.parameter.handlebars #7986E7 —
meta.tag.js meta.embedded.expression.js punctuation.section.embedded.begin.js, meta.tag.js meta.embedded.expression.js punctuation.section.embedded.end.js, meta.property-list.css meta.property-value.css variable.other.less, punctuation.section.embedded.begin.js.jsx, punctuation.section.embedded.end.js.jsx, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.type, punctuation.section.embedded.js, punctuation.definintion.string, punctuation — normal
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*
Dayspring theme | Coding Theme
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 } ! ` ;
}