Skip to main content
Home Theme VS Code Thore Blue Thore blue is a theme I created for fun to style VSC exactly how I want it to look.
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 #000000 activityBar.background #000000 activityBar.border #0f0f0f activityBar.foreground #ffffff activityBar.inactiveForeground #c9c9c966 activityBarBadge.background #3763ff 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 #e47874 — variable.other.generic-type.haskell #d77ed6 — storage.type.haskell #c49262 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#ffffff
badge.background #262626
badge.foreground #c7c7c7
breadcrumb.activeSelectionForeground #e6e6e6
breadcrumb.background #0e0e0e
breadcrumb.focusForeground #e6e6e6
breadcrumb.foreground #cdcdcdcc
button.background #3763ff
button.foreground #ffffff
button.hoverBackground #234de2
button.secondaryBackground #282828
button.secondaryForeground #ffffff
button.secondaryHoverBackground #343434
checkbox.background #060606
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #111111
debugExceptionWidget.border #242424
debugToolBar.background #111111
debugToolBar.border #242424
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #060606
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #0e0e0e
editor.findMatchBackground #515c6a
editor.findMatchBorder #74879f
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3a3d4166
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #bebebe
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #191919
editor.lineHighlightBackground #adadad0a
editor.lineHighlightBorder #0e0e0e
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #3763ff4c
editor.selectionHighlightBackground #1a44e826
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #004972b8
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #0d0d0d
editorCursor.foreground #949494
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #444444
editorGroup.emptyBackground #0e0e0e
editorGroupHeader.border #1d1d1d
editorGroupHeader.tabsBackground #0e0e0e
editorGroupHeader.tabsBorder #000000
editorGutter.addedBackground #587c0c
editorGutter.background #0e0e0e
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #252526
editorHoverWidget.border #454545
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #303030
editorIndentGuide.background #1d1d1d
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #c9c9c9
editorLineNumber.foreground #5a5a5a
editorLink.activeForeground #3763ff
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #5a5a5a
editorSuggestWidget.background #252526
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #0097fb
editorSuggestWidget.selectedBackground #062f4a
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #6b6b6b29
editorWidget.background #151515
editorWidget.foreground #e2e2e2
editorWidget.resizeBorder #1d1d1d
focusBorder #3763ff
foreground #ececec
gitDecoration.addedResourceForeground #8fb896
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 #ececec
input.background #060606
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #007fd466
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #3763ff
list.activeSelectionForeground #ffffff
list.dropBackground #131313
list.focusBackground #303030
list.focusForeground #dedede
list.highlightForeground #3763ff
list.hoverBackground #080808
list.hoverForeground #ffffff
list.inactiveSelectionBackground #000000
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #212121
listFilterWidget.noMatchesOutline #ff3e2b
listFilterWidget.outline #00000000
menu.background #111111
menu.border #00000085
menu.foreground #d1d1d1
menu.selectionBackground #3763ff
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #262626
menubar.selectionBackground #3763ff
menubar.selectionBorder #3763ff
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #0e0e0e
minimap.errorHighlight #f48771
minimap.findMatchHighlight #515c6a
minimap.selectionHighlight #3763ff4c
minimap.warningHighlight #cca700
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #1d1d1d
notificationCenterHeader.background #020202
notificationCenterHeader.foreground #e4e4e4
notifications.background #000000
notifications.border #131313
notifications.foreground #cccccc
notificationsErrorIcon.foreground #ff3e2b
notificationsInfoIcon.foreground #3763ff
notificationsWarningIcon.foreground #ffd02b
notificationToast.border #1d1d1d
panel.background #0e0e0e
panel.border #2e2e2e59
panelSection.border #49494959
panelTitle.activeBorder #e7e7e7
panelTitle.activeForeground #e7e7e7
panelTitle.inactiveForeground #e7e7e799
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 #111111
pickerGroup.foreground #3763ff9d
progressBar.background #3763ff
scrollbar.shadow #000000
scrollbarSlider.activeBackground #4b4b4b66
scrollbarSlider.background #26262666
scrollbarSlider.hoverBackground #242424b3
selection.background #4761ba
settings.focusedRowBackground #ffffff07
settings.headerForeground #ececec
sideBar.background #0e0e0e
sideBar.border #060606
sideBar.dropBackground #131313
sideBar.foreground #eeeeee
sideBarSectionHeader.background #82828200
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #d9d9d9
sideBarTitle.foreground #e8e8e8
statusBar.background #070707
statusBar.border #111111
statusBar.debuggingBackground #bc6438
statusBar.debuggingBorder #131313
statusBar.debuggingForeground #ffffff
statusBar.foreground #b4b4b4
statusBar.noFolderBackground #3763ff
statusBar.noFolderBorder #111111
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #b4b4b41f
statusBarItem.remoteBackground #3763ff
statusBarItem.remoteForeground #ffffff
tab.activeBackground #000000
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #1d1d1d
tab.hoverBackground #151515
tab.hoverBorder #606060
tab.hoverForeground #b0b0b0
tab.inactiveBackground #0e0e0e
tab.inactiveForeground #d9d9d980
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 #eaeaea
terminal.ansiYellow #e5e510
terminal.border #49494959
terminal.foreground #c2c2c2
terminal.selectionBackground #ffffff40
terminalCursor.background #3763ff
terminalCursor.foreground #ffffff
textLink.foreground #3763ff
titleBar.activeBackground #040404
titleBar.activeForeground #949494
titleBar.border #00000000
titleBar.inactiveBackground #00000099
titleBar.inactiveForeground #b4b4b499
tree.indentGuidesStroke #282828
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #e47874
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #bebebe —
variable.parameter.function.language.special.self.python #eec67c —
storage.modifier.lifetime.rust #bebebe —
support.function.std.rust #61afef —
entity.name.lifetime.rust #eec67c —
variable.language.rust #e47874 —
support.constant.edge #d77ed6 —
constant.other.character-class.regexp #e47874 —
keyword.operator.quantifier.regexp #c49262 —
punctuation.definition.string.begin,punctuation.definition.string.end #98c379 —
variable.parameter.function #bebebe —
comment markup.link #656666 —
markup.changed.diff #eec67c —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #61afef —
markup.inserted.diff #98c379 —
markup.deleted.diff #e47874 —
meta.function.c,meta.function.cpp #e47874 —
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 #bebebe —
punctuation.separator.key-value #bebebe —
keyword.operator.expression.import #61afef —
support.constant.math #eec67c —
support.constant.property.math #c49262 —
variable.other.constant #eec67c —
storage.type.annotation.java, storage.type.object.array.java #eec67c —
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 #bebebe —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #eec67c —
keyword.operator.instanceof.java #d77ed6 —
meta.definition.variable.name.java #e47874 —
keyword.operator.logical #56b6c2 —
keyword.operator.bitwise #56b6c2 —
keyword.operator.channel #56b6c2 —
support.constant.property-value.scss,support.constant.property-value.css #c49262 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #56b6c2 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #c49262 —
punctuation.separator.list.comma.css #bebebe —
support.constant.color.w3c-standard-color-name.css #c49262 —
support.type.vendored.property-name.css #56b6c2 —
support.module.node,support.type.object.module,support.module.node #eec67c —
entity.name.type.module #eec67c —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #e47874 —
support.constant.json #c49262 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #d77ed6 —
support.type.object.console #e47874 —
support.variable.property.process #c49262 —
entity.name.function,support.function.console #61afef —
keyword.operator.misc.rust #bebebe —
keyword.operator.sigil.rust #d77ed6 —
keyword.operator.delete #d77ed6 —
support.type.object.dom #56b6c2 —
support.variable.dom,support.variable.property.dom #e47874 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #56b6c2 —
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 #d77ed6 —
punctuation.separator.delimiter #bebebe —
punctuation.separator.c,punctuation.separator.cpp #d77ed6 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #56b6c2 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #d77ed6 —
variable.parameter.function.language.python #c49262 —
support.type.python #56b6c2 —
keyword.operator.logical.python #d77ed6 —
variable.parameter.function.python #c49262 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #bebebe —
meta.function-call.generic.python #61afef —
constant.character.format.placeholder.other.python #c49262 —
keyword.operator.assignment.compound #d77ed6 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #56b6c2 —
entity.name.namespace #eec67c —
variable.language #eec67c —
token.variable.parameter.java #bebebe —
import.storage.java #eec67c —
token.package.keyword #d77ed6 —
entity.name.function, meta.require, support.function.any-method, variable.function #61afef —
entity.name.type.namespace #eec67c —
support.class, entity.name.type.class #eec67c —
entity.name.class.identifier.namespace.type #eec67c —
entity.name.class, variable.other.class.js, variable.other.class.ts #eec67c —
variable.other.class.php #e47874 —
control.elements, keyword.operator.less #c49262 —
keyword.other.special-method #61afef —
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 #d77ed6 —
token.storage.type.java #eec67c —
support.type.property-name #bebebe —
support.constant.property-value #bebebe —
support.constant.font-name #c49262 —
entity.other.inherited-class #eec67c —
constant.other.symbol #56b6c2 —
punctuation.definition.constant #c49262 —
entity.other.attribute-name #c49262 —
entity.other.attribute-name.id #61afef normal
entity.other.attribute-name.class.css #c49262 normal
markup.heading punctuation.definition.heading, entity.name.section #61afef —
keyword.other.unit #e47874 —
markup.bold,todo.bold #c49262 —
punctuation.definition.bold #eec67c —
markup.italic, punctuation.definition.italic,todo.emphasis #d77ed6 —
entity.name.section.markdown #e47874 —
punctuation.definition.heading.markdown #e47874 —
punctuation.definition.list.begin.markdown #e47874 —
markup.heading.setext #bebebe —
punctuation.definition.bold.markdown #c49262 —
markup.inline.raw.markdown #98c379 —
markup.inline.raw.string.markdown #98c379 —
punctuation.definition.list.markdown #e47874 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #e47874 —
beginning.punctuation.definition.list.markdown #e47874 —
punctuation.definition.metadata.markdown #e47874 —
markup.underline.link.markdown,markup.underline.link.image.markdown #d77ed6 —
string.other.link.title.markdown,string.other.link.description.markdown #61afef —
constant.character.escape #56b6c2 —
punctuation.section.embedded, variable.interpolation #e47874 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #d77ed6 —
invalid.illegal.bad-ampersand.html #bebebe —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #e47874 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #e47874 —
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 #98c379 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #56b6c2 —
support.type.property-name.json #e47874 —
support.type.property-name.json punctuation #e47874 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #d77ed6 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #d77ed6 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #eec67c —
keyword.operator.error-control.php #d77ed6 —
keyword.operator.type.php #d77ed6 —
punctuation.section.array.begin.php #bebebe —
punctuation.section.array.end.php #bebebe —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #eec67c —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #61afef —
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 #bebebe —
support.constant.core.rust #c49262 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #c49262 —
entity.name.goto-label.php,support.other.php #61afef —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #56b6c2 —
keyword.operator.regexp.php #d77ed6 —
keyword.operator.comparison.php #56b6c2 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #d77ed6 —
meta.function.decorator.python #61afef —
support.token.decorator.python,meta.function.decorator.identifier.python #56b6c2 —
function.parameter #bebebe —
function.parameter.ruby, function.parameter.cs #bebebe —
constant.language.symbol.ruby #56b6c2 —
inline-color-decoration rgb-value #c49262 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #eec67c —
block.scope.end,block.scope.begin #bebebe —
entity.name.variable.local.cs #e47874 —
token.error-token #f44747 —
token.debug-token #d77ed6 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #d77ed6 —
meta.template.expression #bebebe —
keyword.operator.module #d77ed6 —
support.type.type.flowtype #61afef —
support.type.primitive #eec67c —
meta.property.object #e47874 —
variable.parameter.function.js #e47874 —
keyword.other.template.begin #98c379 —
keyword.other.template.end #98c379 —
keyword.other.substitution.begin #98c379 —
keyword.other.substitution.end #98c379 —
keyword.operator.assignment #56b6c2 —
keyword.operator.assignment.go #eec67c —
keyword.operator.arithmetic.go, keyword.operator.address.go #d77ed6 —
entity.name.package.go #eec67c —
support.type.prelude.elm #56b6c2 —
support.constant.elm #c49262 —
punctuation.quasi.element #d77ed6 —
constant.character.entity #e47874 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #56b6c2 —
entity.global.clojure #eec67c —
meta.symbol.clojure #e47874 —
constant.keyword.clojure #56b6c2 —
meta.arguments.coffee, variable.parameter.function.coffee #e47874 —
meta.scope.prerequisites.makefile #e47874 —
storage.modifier.import.groovy #eec67c —
meta.method.groovy #61afef —
meta.definition.variable.name.groovy #e47874 —
meta.definition.class.inherited.classes.groovy #98c379 —
support.variable.semantic.hlsl #eec67c —
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 #d77ed6 —
text.variable, text.bracketed #e47874 —
support.type.swift, support.type.vb.asp #eec67c —
entity.name.function.xi #eec67c —
entity.name.class.xi #56b6c2 —
constant.character.character-class.regexp.xi #e47874 —
constant.regexp.xi #d77ed6 —
keyword.control.xi #56b6c2 —
beginning.punctuation.definition.quote.markdown.xi #98c379 —
beginning.punctuation.definition.list.markdown.xi #656666 —
constant.character.xi #61afef —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #656666 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #eec67c —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #e47874 —
meta.brace.square #bebebe —
comment, punctuation.definition.comment #656666 italic
markup.quote.markdown #656666 —
punctuation.definition.block.sequence.item.yaml #bebebe —
constant.language.symbol.elixir #56b6c2 —
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 } !` ;
}
Thore Blue | Coding Theme