Skip to main content
Home Theme VS Code VSCode Main Theme Color theme for Visual Studio Code with its colors theme in it.
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 #ffffff24 activityBar.background #007acc activityBar.border #ffffff00 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff40 activityBarBadge.background #007acc 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 #1eb5ff — variable.other.generic-type.haskell #9700ff — storage.type.haskell #ff2dca — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
VSCode Main Theme — VSCode Main Theme
activityBarBadge.foreground #ffffff24
badge.background #ffffff40
badge.foreground #000000
breadcrumb.activeSelectionForeground #0099ff
breadcrumb.background #164a5e3e
breadcrumb.focusForeground #0099ff
breadcrumb.foreground #ffffff
button.background #0e639c
button.foreground #ffffff
button.hoverBackground #1177bb
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e
checkbox.background #000000
checkbox.border #ffffff
checkbox.foreground #ffffff
debugExceptionWidget.background #000000
debugExceptionWidget.border #ffffff
debugToolBar.background #000000
debugToolBar.border #ffffff
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #000000
dropdown.border #ffffff
dropdown.foreground #ffffff
editor.background #001432
editor.findMatchBackground #ffffff4c
editor.findMatchBorder #ffffff
editor.findMatchHighlightBackground #8a8a8a83
editor.findMatchHighlightBorder #ffffff4c
editor.findRangeHighlightBackground #343946
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #ffffff24
editor.foreground #ffffff5e
editor.hoverHighlightBackground #8a8a8a83
editor.inactiveSelectionBackground #ffffff44
editor.lineHighlightBackground #86868646
editor.lineHighlightBorder #51515100
editor.rangeHighlightBackground #ffffff10
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #6ec4ff58
editor.selectionHighlightBackground #8a8a8a83
editor.selectionHighlightBorder #ffffff00
editor.wordHighlightBackground #ffffff4c
editor.wordHighlightBorder #ffffff
editor.wordHighlightStrongBackground #ffffff4c
editor.wordHighlightStrongBorder #ffffff
editorBracketMatch.background #ffffff15
editorBracketMatch.border #ffffff5e
editorCodeLens.foreground #ff0000
editorCursor.background #000000
editorCursor.foreground #ffffff
editorError.background #ffffff00
editorError.border #ffffff00
editorError.foreground #ff0000
editorGroup.border #ffffff
editorGroup.emptyBackground #001432
editorGroupHeader.border #ffffff00
editorGroupHeader.tabsBackground #000000
editorGroupHeader.tabsBorder #ffffff00
editorGutter.addedBackground #587c0c
editorGutter.background #164a5e3e
editorGutter.commentRangeForeground #ffffff5e
editorGutter.deletedBackground #ba131b
editorGutter.foldingControlForeground #ffffff5e
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #000000
editorHoverWidget.border #868686
editorHoverWidget.foreground #c4c4c4
editorIndentGuide.activeBackground #ffffff28
editorIndentGuide.background #ffffff1e
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #4490BF
editorLineNumber.activeForeground #0099ff
editorLineNumber.foreground #ffffff60
editorLink.activeForeground #ff7e7e
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #7f7f7f4d
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #ffffff00
editorSuggestWidget.background #000000
editorSuggestWidget.border #494949
editorSuggestWidget.foreground #ababab
editorSuggestWidget.highlightForeground #ffffffe7
editorSuggestWidget.selectedBackground #ffffff2e
editorWarning.background #ffffff00
editorWarning.border #ffffff00
editorWarning.foreground #ff9600
editorWhitespace.foreground #ffffff26
editorWidget.background #303030
editorWidget.foreground #cbcbcb
editorWidget.resizeBorder #00000000
focusBorder #ffffff
foreground #ffffff
gitDecoration.addedResourceForeground #ffffff
gitDecoration.conflictingResourceForeground #ffffff
gitDecoration.deletedResourceForeground #ffffff
gitDecoration.ignoredResourceForeground #ffffff
gitDecoration.modifiedResourceForeground #ffffff
gitDecoration.stageDeletedResourceForeground #ffffff
gitDecoration.stageModifiedResourceForeground #ffffff
gitDecoration.submoduleResourceForeground #ffffff
gitDecoration.untrackedResourceForeground #ffffff
icon.foreground #ffffff
input.background #000000
input.border #ffffff
input.foreground #ffffff
input.placeholderForeground #ffffff60
inputOption.activeBackground #ffffff60
inputOption.activeBorder #ffffffc3
inputOption.activeForeground #dbdbdb
list.activeSelectionBackground #ffffff24
list.activeSelectionForeground #ffffff
list.dropBackground #ffffff24
list.focusBackground #184971
list.focusForeground #ffffff81
list.highlightForeground #ffffff
list.hoverBackground #00004668
list.hoverForeground #0099ff
list.inactiveSelectionBackground #ffffff24
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #888888
listFilterWidget.noMatchesOutline #ffffff00
listFilterWidget.outline #ffffff00
menu.background #000000
menu.border #ffffff00
menu.foreground #cbcbcb
menu.selectionBackground #184971
menu.selectionBorder #ffffff00
menu.selectionForeground #0099ff
menu.separatorBackground #ffffff24
menubar.selectionBackground #d3d3d3
menubar.selectionBorder #000000
menubar.selectionForeground #000000
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #001432
minimap.errorHighlight #ff0000
minimap.findMatchHighlight #ffffff4c
minimap.selectionHighlight #6ec4ff58
minimap.warningHighlight #ff9600
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #ba131b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #565656
notificationCenterHeader.background #212121
notificationCenterHeader.foreground #ffffff
notifications.background #000000
notifications.border #565656
notifications.foreground #ffffff
notificationsErrorIcon.foreground #ff0000
notificationsInfoIcon.foreground #ffff00
notificationsWarningIcon.foreground #ffa000
notificationToast.border #00000000
panel.background #000000
panel.border #00000000
panelSection.border #ffffff
panelTitle.activeBorder #ffffff40
panelTitle.activeForeground #ffffff40
panelTitle.inactiveForeground #ffffff40
peekView.border #007acc
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #252526
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #00000000
pickerGroup.foreground #0075ff
progressBar.background #007acc
scrollbar.shadow #007acc
scrollbarSlider.activeBackground #0099ff24
scrollbarSlider.background #ffffff
scrollbarSlider.hoverBackground #0099ff
selection.background #000000
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffffff
sideBar.background #003456
sideBar.border #ffffff00
sideBar.dropBackground #ffffff24
sideBar.foreground #ffffff
sideBarSectionHeader.background #ffffff24
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #ffffff
sideBarTitle.foreground #007acc
statusBar.background #007acc
statusBar.border #ffffff00
statusBar.debuggingBackground #ff5000
statusBar.debuggingBorder #ffffff00
statusBar.debuggingForeground #ffffff60
statusBar.foreground #ffffff24
statusBar.noFolderBackground #0000ff
statusBar.noFolderBorder #ffffff00
statusBar.noFolderForeground #ffffff60
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff24
statusBarItem.remoteBackground #007acc
statusBarItem.remoteForeground #ffffff24
tab.activeBackground #1863b454
tab.activeBorder #ffffff00
tab.activeBorderTop #ffffff00
tab.activeForeground #ffffff
tab.border #ffffff40
tab.hoverBackground #00004668
tab.hoverBorder #ffffff00
tab.hoverForeground #0099ff
tab.inactiveBackground #00000000
tab.inactiveForeground #ffffff
terminal.ansiBlack #212121
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #66666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #FFFFFF
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #D4D4D4
terminal.ansiYellow #e5e510
terminal.border #ffffff
terminal.foreground #ffffff
terminal.selectionBackground #ffffff20
terminalCursor.background #ffffff40
terminalCursor.foreground #ffffff
textLink.foreground #3794ff
titleBar.activeBackground #ffffff
titleBar.activeForeground #000000
titleBar.border #ffffff00
titleBar.inactiveBackground #000000
titleBar.inactiveForeground #ffffff
tree.indentGuidesStroke #ffffff20
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000000 #1eb5ff
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff5e —
variable.parameter.function.language.special.self.python #003cff —
storage.modifier.lifetime.rust #ffffff5e —
support.function.std.rust #ffffff —
entity.name.lifetime.rust #003cff —
variable.language.rust #1eb5ff —
support.constant.edge #9700ff —
constant.other.character-class.regexp #1eb5ff —
keyword.operator.quantifier.regexp #ff2dca —
punctuation.definition.string.begin,punctuation.definition.string.end #f4ff6e —
variable.parameter.function #ffffff5e —
comment markup.link #ffffff5e —
markup.changed.diff #003cff —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #ffffff —
markup.inserted.diff #f4ff6e —
markup.deleted.diff #1eb5ff —
meta.function.c,meta.function.cpp #1eb5ff —
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 #ffffff5e —
punctuation.separator.key-value #ffffff5e —
keyword.operator.expression.import #ffffff —
support.constant.math #003cff —
support.constant.property.math #ff2dca —
variable.other.constant #003cff —
storage.type.annotation.java, storage.type.object.array.java #003cff —
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 #ffffff5e —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #003cff —
keyword.operator.instanceof.java #9700ff —
meta.definition.variable.name.java #1eb5ff —
keyword.operator.logical #ffffff —
keyword.operator.bitwise #ffffff —
keyword.operator.channel #ffffff —
support.constant.property-value.scss,support.constant.property-value.css #ff2dca —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ffffff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ff2dca —
punctuation.separator.list.comma.css #ffffff5e —
support.constant.color.w3c-standard-color-name.css #ff2dca —
support.type.vendored.property-name.css #ffffff —
support.module.node,support.type.object.module,support.module.node #003cff —
entity.name.type.module #003cff —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #1eb5ff —
support.constant.json #ff2dca —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #9700ff —
support.type.object.console #1eb5ff —
support.variable.property.process #ff2dca —
entity.name.function,support.function.console #ffffff —
keyword.operator.misc.rust #ffffff5e —
keyword.operator.sigil.rust #9700ff —
keyword.operator.delete #9700ff —
support.type.object.dom #ffffff —
support.variable.dom,support.variable.property.dom #1eb5ff —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ffffff —
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 #9700ff —
punctuation.separator.delimiter #ffffff5e —
punctuation.separator.c,punctuation.separator.cpp #9700ff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ffffff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #9700ff —
variable.parameter.function.language.python #ff2dca —
support.type.python #ffffff —
keyword.operator.logical.python #9700ff —
variable.parameter.function.python #ff2dca —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ffffff5e —
meta.function-call.generic.python #ffffff —
constant.character.format.placeholder.other.python #ff2dca —
keyword.operator #ffffff5e —
keyword.operator.assignment.compound #9700ff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ffffff —
entity.name.namespace #003cff —
variable.language #003cff —
token.variable.parameter.java #ffffff5e —
import.storage.java #003cff —
token.package.keyword #9700ff —
entity.name.function, meta.require, support.function.any-method, variable.function #ffffff —
entity.name.type.namespace #003cff —
support.class, entity.name.type.class #003cff —
entity.name.class.identifier.namespace.type #003cff —
entity.name.class, variable.other.class.js, variable.other.class.ts #003cff —
variable.other.class.php #1eb5ff —
control.elements, keyword.operator.less #ff2dca —
keyword.other.special-method #ffffff —
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 #9700ff —
token.storage.type.java #003cff —
support.type.property-name #ffffff5e —
support.constant.property-value #ffffff5e —
support.constant.font-name #ff2dca —
entity.other.inherited-class #003cff —
constant.other.symbol #ffffff —
punctuation.definition.constant #ff2dca —
entity.other.attribute-name #ff2dca —
entity.other.attribute-name.id #ffffff normal
entity.other.attribute-name.class.css #ff2dca normal
markup.heading punctuation.definition.heading, entity.name.section #ffffff —
keyword.other.unit #1eb5ff —
markup.bold,todo.bold #ff2dca —
punctuation.definition.bold #003cff —
markup.italic, punctuation.definition.italic,todo.emphasis #9700ff —
entity.name.section.markdown #1eb5ff —
punctuation.definition.heading.markdown #1eb5ff —
punctuation.definition.list.begin.markdown #1eb5ff —
markup.heading.setext #ffffff5e —
punctuation.definition.bold.markdown #ff2dca —
markup.inline.raw.markdown #f4ff6e —
markup.inline.raw.string.markdown #f4ff6e —
punctuation.definition.list.markdown #1eb5ff —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #1eb5ff —
beginning.punctuation.definition.list.markdown #1eb5ff —
punctuation.definition.metadata.markdown #1eb5ff —
markup.underline.link.markdown,markup.underline.link.image.markdown #9700ff —
string.other.link.title.markdown,string.other.link.description.markdown #ffffff —
constant.character.escape #ffffff —
punctuation.section.embedded, variable.interpolation #1eb5ff —
punctuation.section.embedded.begin,punctuation.section.embedded.end #9700ff —
invalid.illegal.bad-ampersand.html #ffffff5e —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #1eb5ff —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #1eb5ff —
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 #f4ff6e —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ffffff —
support.type.property-name.json #1eb5ff —
support.type.property-name.json punctuation #1eb5ff —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #9700ff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #9700ff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #003cff —
keyword.operator.error-control.php #9700ff —
keyword.operator.type.php #9700ff —
punctuation.section.array.begin.php #ffffff5e —
punctuation.section.array.end.php #ffffff5e —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #003cff —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #ffffff —
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 #ffffff5e —
support.constant.core.rust #ff2dca —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ff2dca —
entity.name.goto-label.php,support.other.php #ffffff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ffffff —
keyword.operator.regexp.php #9700ff —
keyword.operator.comparison.php #ffffff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #9700ff —
meta.function.decorator.python #ffffff —
support.token.decorator.python,meta.function.decorator.identifier.python #ffffff —
function.parameter #ffffff5e —
function.parameter.ruby, function.parameter.cs #ffffff5e —
constant.language.symbol.ruby #ffffff —
inline-color-decoration rgb-value #ff2dca —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #003cff —
block.scope.end,block.scope.begin #ffffff5e —
entity.name.variable.local.cs #1eb5ff —
token.error-token #f44747 —
token.debug-token #9700ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #9700ff —
meta.template.expression #ffffff5e —
keyword.operator.module #9700ff —
support.type.type.flowtype #ffffff —
support.type.primitive #003cff —
meta.property.object #1eb5ff —
variable.parameter.function.js #1eb5ff —
keyword.other.template.begin #f4ff6e —
keyword.other.template.end #f4ff6e —
keyword.other.substitution.begin #f4ff6e —
keyword.other.substitution.end #f4ff6e —
keyword.operator.assignment #ffffff —
keyword.operator.assignment.go #003cff —
keyword.operator.arithmetic.go, keyword.operator.address.go #9700ff —
entity.name.package.go #003cff —
support.type.prelude.elm #ffffff —
support.constant.elm #ff2dca —
punctuation.quasi.element #9700ff —
constant.character.entity #1eb5ff —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ffffff —
entity.global.clojure #003cff —
meta.symbol.clojure #1eb5ff —
constant.keyword.clojure #ffffff —
meta.arguments.coffee, variable.parameter.function.coffee #1eb5ff —
meta.scope.prerequisites.makefile #1eb5ff —
storage.modifier.import.groovy #003cff —
meta.method.groovy #ffffff —
meta.definition.variable.name.groovy #1eb5ff —
meta.definition.class.inherited.classes.groovy #f4ff6e —
support.variable.semantic.hlsl #003cff —
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 #9700ff —
text.variable, text.bracketed #1eb5ff —
support.type.swift, support.type.vb.asp #003cff —
entity.name.function.xi #003cff —
entity.name.class.xi #ffffff —
constant.character.character-class.regexp.xi #1eb5ff —
constant.regexp.xi #9700ff —
keyword.control.xi #ffffff —
beginning.punctuation.definition.quote.markdown.xi #f4ff6e —
beginning.punctuation.definition.list.markdown.xi #ffffff5e —
constant.character.xi #ffffff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #ffffff5e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #003cff —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #1eb5ff —
meta.brace.square #ffffff5e —
comment, punctuation.definition.comment #ffffff5e italic
markup.quote.markdown #ffffff5e —
punctuation.definition.block.sequence.item.yaml #ffffff5e —
constant.language.symbol.elixir #ffffff —
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
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 } !` ;
}
VSCode Main Theme | Coding Theme