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 #071538 activityBar.background #071538 activityBar.border #071538 activityBar.foreground #becdf0 activityBar.inactiveForeground #becdf0 activityBarBadge.background #EC5A29 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison #EC5A29 — variable.other.generic-type.haskell #eabb88 — storage.type.haskell #d75819 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
DailyCode Light — DailyCode Light
activityBarBadge.foreground
#becdf0
badge.background #EC5A29
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #071538
breadcrumb.background #f5f7f9
breadcrumb.focusForeground #071538
breadcrumb.foreground #071538
button.background #EC5A29
button.foreground #ffffff
button.hoverBackground #edcfc4
button.secondaryBackground #071538
button.secondaryForeground #ffffff
button.secondaryHoverBackground #becdf0
checkbox.background #ffffff
checkbox.border #00000000
checkbox.foreground #071538
debugExceptionWidget.background #f5f7f9
debugExceptionWidget.border #becdf083
debugToolBar.background #f5f7f9
debugToolBar.border #becdf083
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #ffffff
dropdown.border #00000000
dropdown.foreground #071538
editor.background #fdfdfd
editor.findMatchBackground #a8ac94
editor.findMatchBorder #979b83
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #b4b4b44d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #add6ff4d
editor.foreground #000000
editor.hoverHighlightBackground #add6ff26
editor.inactiveSelectionBackground #becdf083
editor.lineHighlightBackground #edcfc47e
editor.lineHighlightBorder #fffefe00
editor.rangeHighlightBackground #fdff0033
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #edcfc4
editor.selectionHighlightBackground #becdf083
editor.selectionHighlightBorder #ffffff00
editor.wordHighlightBackground #57575740
editor.wordHighlightBorder #ffffff00
editor.wordHighlightStrongBackground #0e639c40
editorBracketMatch.background #edcfc4
editorBracketMatch.border #ffffff00
editorCodeLens.foreground #999999
editorCursor.background #ffffff
editorCursor.foreground #000000
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #e51400
editorGroup.border #e7e7e7
editorGroup.emptyBackground #fdfdfd
editorGroupHeader.border #f5f7f9
editorGroupHeader.tabsBackground #fdfdfd
editorGroupHeader.tabsBorder #fdfdfd
editorGutter.addedBackground #81b88b
editorGutter.background #f5f7f9
editorGutter.commentRangeForeground #889ccb
editorGutter.deletedBackground #ca4b51
editorGutter.foldingControlForeground #889ccb
editorGutter.modifiedBackground #66afe0
editorHoverWidget.background #f5f7f9
editorHoverWidget.border #becdf0
editorHoverWidget.foreground #071538
editorIndentGuide.activeBackground #f5f7f9
editorIndentGuide.background #becdf0
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #edcfc4
editorLineNumber.foreground #becdf0
editorLink.activeForeground #0000ff
editorMarkerNavigation.background #ffffff
editorMarkerNavigationError.background #e51400
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #e9a700
editorOverviewRuler.background #f5f7f9
editorOverviewRuler.border #becdf083
editorRuler.foreground #f5f7f9
editorSuggestWidget.background #f5f7f9
editorSuggestWidget.border #becdf0
editorSuggestWidget.foreground #071538
editorSuggestWidget.highlightForeground #071538
editorSuggestWidget.selectedBackground #becdf0
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #e9a700
editorWhitespace.foreground #33333333
editorWidget.background #f5f7f9
editorWidget.foreground #071538
editorWidget.resizeBorder #c7c7c7
focusBorder #edcfc4
foreground #071538
gitDecoration.addedResourceForeground #587c0c
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #ad0707
gitDecoration.ignoredResourceForeground #8e8e90
gitDecoration.modifiedResourceForeground #895503
gitDecoration.stageDeletedResourceForeground #ad0707
gitDecoration.stageModifiedResourceForeground #895503
gitDecoration.submoduleResourceForeground #1258a7
gitDecoration.untrackedResourceForeground #007100
icon.foreground #071538
input.background #ffffff
input.border #00000000
input.foreground #071538
input.placeholderForeground #071538
inputOption.activeBackground #0090f133
inputOption.activeBorder #007acc00
inputOption.activeForeground #071538
list.activeSelectionBackground #edcfc4
list.activeSelectionForeground #071538
list.dropBackground #becdf083
list.focusBackground #e0e9ff
list.focusForeground #071538
list.highlightForeground #EC5A29
list.hoverBackground #edcfc4
list.hoverForeground #071538
list.inactiveSelectionBackground #becdf083
list.inactiveSelectionForeground #071538
listFilterWidget.background #edcfc4
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #f5f7f9
menu.border #becdf083
menu.foreground #071538
menu.selectionBackground #EC5A29
menu.selectionBorder #becdf083
menu.selectionForeground #fdfdfd
menu.separatorBackground #EC5A29
menubar.selectionBackground #becdf083
menubar.selectionBorder #071538
menubar.selectionForeground #071538
merge.commonContentBackground #E5E5E5
merge.commonHeaderBackground #BFBFBF
merge.currentContentBackground #DBF4EF
merge.currentHeaderBackground #A4E3D6
merge.incomingContentBackground #DBECFF
merge.incomingHeaderBackground #A6CFFF
minimap.background #F5F7F9
minimap.errorHighlight #e51400
minimap.findMatchHighlight #a8ac94
minimap.selectionHighlight #edcfc4
minimap.warningHighlight #e9a700
minimapGutter.addedBackground #81b88b
minimapGutter.deletedBackground #ca4b51
minimapGutter.modifiedBackground #66afe0
notificationCenter.border #becdf083
notificationCenterHeader.background #f5f7f9
notificationCenterHeader.foreground #071538
notifications.background #f5f7f9
notifications.border #becdf083
notifications.foreground #071538
notificationsErrorIcon.foreground #e51400
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #e9a700
notificationToast.border #f5f7f9
panel.background #fdfdfd
panel.border #80808059
panelSection.border #80808059
panelTitle.activeBorder #1f3f90
panelTitle.activeForeground #1f3f90
panelTitle.inactiveForeground #1f3f90
peekView.border #007acc
peekViewEditor.background #f2f8fc
peekViewEditor.matchHighlightBackground #f5d802de
peekViewEditor.matchHighlightBorder #dbc417
peekViewEditorGutter.background #f2f8fc
peekViewResult.background #f3f3f3
peekViewResult.fileForeground #1e1e1e
peekViewResult.lineForeground #646465
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #6c6c6c
peekViewTitle.background #ffffff
peekViewTitleDescription.foreground #616161e6
peekViewTitleLabel.foreground #333333
pickerGroup.border #cccedb
pickerGroup.foreground #071538
progressBar.background #EC5A29
scrollbar.shadow #dddddd
scrollbarSlider.activeBackground #becdf083
scrollbarSlider.background #edcfc4
scrollbarSlider.hoverBackground #becdf083
selection.background #edcfc4
settings.focusedRowBackground #ffffff07
settings.headerForeground #071538
sideBar.background #fdfdfd
sideBar.border #07153834
sideBar.dropBackground #becdf083
sideBar.foreground #071538
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #61616130
sideBarSectionHeader.foreground #071538
sideBarTitle.foreground #071538
statusBar.background #f5f7f9
statusBar.border #becdf083
statusBar.debuggingBackground #EC5A29
statusBar.debuggingForeground #ffffff
statusBar.foreground #071538
statusBar.noFolderBackground #f5f7f9
statusBar.noFolderForeground #071538
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #EC5A29
statusBarItem.remoteForeground #ffffff
tab.activeBackground #fdfdfd
tab.activeBorder #fdfdfd
tab.activeBorderTop #fdfdfd
tab.activeForeground #071538
tab.border #fdfdfd
tab.inactiveBackground #fdfdfd
tab.inactiveForeground #0715386c
terminal.ansiBlack #1f3f90
terminal.ansiBlue #0451a5
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #0451a5
terminal.ansiBrightCyan #0598bc
terminal.ansiBrightGreen #14ce14
terminal.ansiBrightMagenta #bc05bc
terminal.ansiBrightRed #cd3131
terminal.ansiBrightWhite #a5a5a5
terminal.ansiBrightYellow #b5ba00
terminal.ansiCyan #0598bc
terminal.ansiGreen #00bc00
terminal.ansiMagenta #bc05bc
terminal.ansiRed #cd3131
terminal.ansiWhite #555555
terminal.ansiYellow #949800
terminal.border #80808059
terminal.foreground #333333
terminal.selectionBackground #edcfc446
terminalCursor.background #EC5A29
terminalCursor.foreground #ffffff
textLink.foreground #EC5A29
titleBar.activeBackground #fdfdfd
titleBar.activeForeground #071538
titleBar.border #00000000
titleBar.inactiveBackground #071538
titleBar.inactiveForeground #becdf0
tree.indentGuidesStroke #e0e9ff
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000029 #EC5A29
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #000000 —
variable.parameter.function.language.special.self.python #173580 —
storage.modifier.lifetime.rust #000000 —
support.function.std.rust #6c90e4 —
entity.name.lifetime.rust #173580 —
variable.language.rust #EC5A29 —
support.constant.edge #eabb88 —
constant.other.character-class.regexp #EC5A29 —
keyword.operator.quantifier.regexp #d75819 —
punctuation.definition.string.begin,punctuation.definition.string.end #b1bdcf —
variable.parameter.function #000000 —
comment markup.link #7793b0 —
markup.changed.diff #173580 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #6c90e4 —
markup.inserted.diff #b1bdcf —
markup.deleted.diff #EC5A29 —
meta.function.c,meta.function.cpp #EC5A29 —
punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c #000000 —
punctuation.separator.key-value #000000 —
keyword.operator.expression.import #6c90e4 —
support.constant.math #173580 —
support.constant.property.math #d75819 —
variable.other.constant #173580 —
storage.type.annotation.java, storage.type.object.array.java #173580 —
punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java #000000 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #173580 —
keyword.operator.instanceof.java #eabb88 —
meta.definition.variable.name.java #EC5A29 —
keyword.operator.logical #04daf5 —
keyword.operator.bitwise #04daf5 —
keyword.operator.channel #04daf5 —
support.constant.property-value.scss,support.constant.property-value.css #d75819 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #04daf5 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #d75819 —
punctuation.separator.list.comma.css #000000 —
support.constant.color.w3c-standard-color-name.css #d75819 —
support.type.vendored.property-name.css #04daf5 —
support.module.node,support.type.object.module,support.module.node #173580 —
entity.name.type.module #173580 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #EC5A29 —
support.constant.json #d75819 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #eabb88 —
support.type.object.console #EC5A29 —
support.variable.property.process #d75819 —
entity.name.function,support.function.console #6c90e4 —
keyword.operator.misc.rust #000000 —
keyword.operator.sigil.rust #eabb88 —
keyword.operator.delete #eabb88 —
support.type.object.dom #04daf5 —
support.variable.dom,support.variable.property.dom #EC5A29 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #04daf5 —
keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp #eabb88 —
punctuation.separator.delimiter #000000 —
punctuation.separator.c,punctuation.separator.cpp #eabb88 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #04daf5 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #eabb88 —
variable.parameter.function.language.python #d75819 —
support.type.python #04daf5 —
keyword.operator.logical.python #eabb88 —
variable.parameter.function.python #d75819 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #000000 —
meta.function-call.generic.python #6c90e4 —
constant.character.format.placeholder.other.python #d75819 —
keyword.operator.assignment.compound #eabb88 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #04daf5 —
entity.name.namespace #173580 —
variable.language #173580 —
token.variable.parameter.java #000000 —
import.storage.java #173580 —
token.package.keyword #eabb88 —
entity.name.function, meta.require, support.function.any-method, variable.function #6c90e4 —
entity.name.type.namespace #173580 —
support.class, entity.name.type.class #173580 —
entity.name.class.identifier.namespace.type #173580 —
entity.name.class, variable.other.class.js, variable.other.class.ts #173580 —
variable.other.class.php #EC5A29 —
control.elements, keyword.operator.less #d75819 —
keyword.other.special-method #6c90e4 —
keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void #eabb88 —
token.storage.type.java #173580 —
support.type.property-name #000000 —
support.constant.property-value #000000 —
support.constant.font-name #d75819 —
entity.other.inherited-class #173580 —
constant.other.symbol #04daf5 —
punctuation.definition.constant #d75819 —
entity.other.attribute-name #d75819 —
entity.other.attribute-name.id #6c90e4 bold
entity.other.attribute-name.class.css #d75819 bold
markup.heading punctuation.definition.heading, entity.name.section #6c90e4 —
keyword.other.unit #EC5A29 —
markup.bold,todo.bold #d75819 —
punctuation.definition.bold #173580 —
markup.italic, punctuation.definition.italic,todo.emphasis #eabb88 —
entity.name.section.markdown #EC5A29 —
punctuation.definition.heading.markdown #EC5A29 —
punctuation.definition.list.begin.markdown #EC5A29 —
markup.heading.setext #000000 —
punctuation.definition.bold.markdown #d75819 —
markup.inline.raw.markdown #b1bdcf —
markup.inline.raw.string.markdown #b1bdcf —
punctuation.definition.list.markdown #EC5A29 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #EC5A29 —
beginning.punctuation.definition.list.markdown #EC5A29 —
punctuation.definition.metadata.markdown #EC5A29 —
markup.underline.link.markdown,markup.underline.link.image.markdown #eabb88 —
string.other.link.title.markdown,string.other.link.description.markdown #6c90e4 —
constant.character.escape #04daf5 —
punctuation.section.embedded, variable.interpolation #EC5A29 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #eabb88 —
invalid.illegal.bad-ampersand.html #000000 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #EC5A29 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #EC5A29 —
source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation #b1bdcf —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #04daf5 —
support.type.property-name.json #EC5A29 —
support.type.property-name.json punctuation #EC5A29 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #eabb88 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #eabb88 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #173580 —
keyword.operator.error-control.php #eabb88 —
keyword.operator.type.php #eabb88 —
punctuation.section.array.begin.php #000000 —
punctuation.section.array.end.php #000000 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #173580 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #6c90e4 —
punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php,punctuation.definition.section.switch-block.start.bracket.curly.php,punctuation.definition.section.switch-block.begin.bracket.curly.php,punctuation.definition.section.switch-block.end.bracket.curly.php #000000 —
support.constant.core.rust #d75819 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #d75819 —
entity.name.goto-label.php,support.other.php #6c90e4 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #04daf5 —
keyword.operator.regexp.php #eabb88 —
keyword.operator.comparison.php #04daf5 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #eabb88 —
meta.function.decorator.python #6c90e4 —
support.token.decorator.python,meta.function.decorator.identifier.python #04daf5 —
function.parameter #000000 —
function.parameter.ruby, function.parameter.cs #000000 —
constant.language.symbol.ruby #04daf5 —
inline-color-decoration rgb-value #d75819 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #173580 —
block.scope.end,block.scope.begin #000000 —
entity.name.variable.local.cs #EC5A29 —
token.error-token #f44747 —
token.debug-token #eabb88 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #eabb88 —
meta.template.expression #000000 —
keyword.operator.module #eabb88 —
support.type.type.flowtype #6c90e4 —
support.type.primitive #173580 —
meta.property.object #EC5A29 —
variable.parameter.function.js #EC5A29 —
keyword.other.template.begin #b1bdcf —
keyword.other.template.end #b1bdcf —
keyword.other.substitution.begin #b1bdcf —
keyword.other.substitution.end #b1bdcf —
keyword.operator.assignment #04daf5 —
keyword.operator.assignment.go #173580 —
keyword.operator.arithmetic.go, keyword.operator.address.go #eabb88 —
entity.name.package.go #173580 —
support.type.prelude.elm #04daf5 —
support.constant.elm #d75819 —
punctuation.quasi.element #eabb88 —
constant.character.entity #EC5A29 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #04daf5 —
entity.global.clojure #173580 —
meta.symbol.clojure #EC5A29 —
constant.keyword.clojure #04daf5 —
meta.arguments.coffee, variable.parameter.function.coffee #EC5A29 —
meta.scope.prerequisites.makefile #EC5A29 —
storage.modifier.import.groovy #173580 —
meta.method.groovy #6c90e4 —
meta.definition.variable.name.groovy #EC5A29 —
meta.definition.class.inherited.classes.groovy #b1bdcf —
support.variable.semantic.hlsl #173580 —
support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, support.type.object.hlsl #eabb88 —
text.variable, text.bracketed #EC5A29 —
support.type.swift, support.type.vb.asp #173580 —
entity.name.function.xi #173580 —
entity.name.class.xi #04daf5 —
constant.character.character-class.regexp.xi #EC5A29 —
constant.regexp.xi #eabb88 —
keyword.control.xi #04daf5 —
beginning.punctuation.definition.quote.markdown.xi #b1bdcf —
beginning.punctuation.definition.list.markdown.xi #7793b0 —
constant.character.xi #6c90e4 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #7793b0 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #173580 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #EC5A29 —
meta.brace.square #000000 —
comment, punctuation.definition.comment #7793b0 italic
markup.quote.markdown #7793b0 —
punctuation.definition.block.sequence.item.yaml #000000 —
constant.language.symbol.elixir #04daf5 —
entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super — italic
comment.line.double-slash,comment.block.documentation — italic
keyword.control.import.python,keyword.control.flow.python — italic
markup.italic.markdown — italic
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 } !` ;
}
DailyCode Light | Coding Theme