Skip to main content
Home Theme VS Code sjsepan.reddish A red light-medium theme, but with borders and with matching colors in Activity- and Side-bars.
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 #ffb5d4 activityBar.border #B34B7D activityBar.foreground #57414a activityBar.inactiveForeground #c284a3 activityBarBadge.background #B34B7D activityBarBadge.foreground #ffb5d4 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 #046d85 — variable.other.generic-type.haskell #b7730e — storage.type.haskell #467878 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
sjsepan.reddish — Reddish
badge.background
#B34B7D
badge.foreground #ffb5d4
breadcrumb.activeSelectionForeground #4e4e4e
breadcrumb.background #ffb5d4
breadcrumb.focusForeground #4e4e4e
breadcrumb.foreground #545454
button.background #FFB5D4
button.border #B34B7D
button.foreground #57414a
button.hoverBackground #fdc1da
button.secondaryBackground #6a5f79
button.secondaryForeground #ffffff
button.secondaryHoverBackground #554c61
checkbox.background #ffffff
checkbox.border #00000000
checkbox.foreground #616161
debugExceptionWidget.background #f3f3f3
debugExceptionWidget.border #d5d5d5
debugToolBar.background #f3f3f3
debugToolBar.border #d5d5d5
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #65900033
diffEditor.removedTextBackground #ff000033
dropdown.background #ffffff
dropdown.border #00000000
dropdown.foreground #616161
editor.background #ffcee2
editor.findMatchBackground #aca894
editor.findMatchBorder #9b9783
editor.findMatchHighlightBackground #ea005c55
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #b4b4b44d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #ffd6ad4d
editor.foreground #000000
editor.hoverHighlightBackground #add6ff26
editor.inactiveSelectionBackground #fb76a89b
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #a9a9a9
editor.rangeHighlightBackground #fffd0033
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #fb76a8
editor.selectionHighlightBackground #7bffd254
editor.selectionHighlightBorder #d16d99
editor.wordHighlightBackground #57575740
editor.wordHighlightStrongBackground #9c630e40
editorBracketMatch.background #6400001a
editorBracketMatch.border #b9b9b9
editorCodeLens.foreground #999999
editorCursor.background #ffffff
editorCursor.foreground #000000
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #e51400
editorGroup.border #B34B7D
editorGroup.emptyBackground #ffcee2
editorGroupHeader.tabsBackground #ffcee2
editorGroupHeader.tabsBorder #B34B7D
editorGutter.addedBackground #81b88b
editorGutter.background #ffb5d4
editorGutter.commentRangeForeground #424242
editorGutter.deletedBackground #ca4b51
editorGutter.foldingControlForeground #424242
editorGutter.modifiedBackground #66afe0
editorHoverWidget.background #ffb5d4
editorHoverWidget.border #c8c8c8
editorHoverWidget.foreground #7c2150
editorInfo.background #BF904400
editorInfo.border #4490BF00
editorInfo.foreground #ffbe75
editorLineNumber.activeForeground #57414a
editorLineNumber.foreground #c284a3
editorLink.activeForeground #0000ff
editorMarkerNavigation.background #a3b6ff
editorMarkerNavigationError.background #be1708
editorMarkerNavigationInfo.background #799cbc
editorMarkerNavigationWarning.background #c99000
editorOverviewRuler.background #4a574100
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #d3d3d3
editorSuggestWidget.background #ade2c3
editorSuggestWidget.border #a1a1a1
editorSuggestWidget.foreground #000000
editorSuggestWidget.highlightForeground #641c59
editorSuggestWidget.selectedBackground #f760a6
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #00b881
editorWhitespace.foreground #33333333
editorWidget.background #ffb5d4
editorWidget.foreground #616161
editorWidget.resizeBorder #c7c7c7
focusBorder #ffb5d4
foreground #272727
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 #272727
input.background #ffcee2
input.border #ffb5d4
input.foreground #616161
input.placeholderForeground #767676
inputOption.activeBackground #9000f133
inputOption.activeBorder #cc7a0000
inputOption.activeForeground #000000
list.activeSelectionBackground #7c215080
list.activeSelectionForeground #ffb5d4
list.dropBackground #c97fb6
list.focusBackground #d6ebff
list.focusForeground #616161
list.highlightForeground #0a44b4
list.hoverBackground #7c215066
list.hoverForeground #2c2c2c
list.inactiveSelectionBackground #a3a3a39f
list.inactiveSelectionForeground #494949
listFilterWidget.background #efadc1
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #ffcee2
menu.border #B34B7D
menu.foreground #57414a
menu.selectionBackground #ffb5d4
menu.selectionBorder #00000000
menu.selectionForeground #ffdcea
menu.separatorBackground #888888
menubar.selectionBackground #0000001a
menubar.selectionForeground #333333
merge.commonContentBackground #E5E5E5FE
merge.commonHeaderBackground #BFBFBFFE
merge.currentContentBackground #DBF4EFFE
merge.currentHeaderBackground #A4E3D6FE
merge.incomingContentBackground #DBECFFFE
merge.incomingHeaderBackground #A6CFFFFE
minimap.background #ffb5d4
minimap.errorHighlight #e51400
minimap.findMatchHighlight #a8ac94FE
minimap.selectionHighlight #fb76a8FE
minimap.warningHighlight #b88100
minimapGutter.addedBackground #81b88b
minimapGutter.deletedBackground #ca4b51
minimapGutter.modifiedBackground #66afe0
minimapSlider.activeBackground #00000040
minimapSlider.background #00000020
minimapSlider.hoverBackground #00000060
notificationCenter.border #d5d5d5
notificationCenterHeader.background #ffb5d4
notificationCenterHeader.foreground #7c2150
notifications.background #ffb5d4
notifications.border #e7e7e7
notifications.foreground #7c2150
notificationsErrorIcon.foreground #e51400
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #e9a700
notificationToast.border #d5d5d5
panel.background #ffb5d4
panel.border #B34B7D
panelSection.border #51515159
panelTitle.activeBorder #57414a
panelTitle.activeForeground #57414a
panelTitle.inactiveForeground #c284a3
peekView.border #cc7a00
peekViewEditor.background #cfbca0
peekViewEditor.matchHighlightBackground #f502d8de
peekViewEditor.matchHighlightBorder #db17c4
peekViewEditorGutter.background #e2cda2
peekViewResult.background #862d67
peekViewResult.fileForeground #000000
peekViewResult.lineForeground #414141
peekViewResult.matchHighlightBackground #ea005c4d
peekViewResult.selectionBackground #d5c65e33
peekViewResult.selectionForeground #a4a4e6
peekViewTitle.background #e2a2cc
peekViewTitleDescription.foreground #616161e6
peekViewTitleLabel.foreground #333333
pickerGroup.border #cccedb
pickerGroup.foreground #bf6600
profileBadge.background #B34B7D
profileBadge.foreground #ffb5d4
progressBar.background #c0700e
scmGraph.foreground1 default
scmGraph.foreground2 default
scmGraph.foreground3 default
scmGraph.foreground4 default
scmGraph.foreground5 default
scmGraph.historyItemBaseRefColor #ffb5d4
scmGraph.historyItemHoverAdditionsForeground default
scmGraph.historyItemHoverDefaultLabelBackground default
scmGraph.historyItemHoverDefaultLabelForeground default
scmGraph.historyItemHoverDeletionsForeground default
scmGraph.historyItemHoverLabelForeground default
scmGraph.historyItemRefColor #ffb5d4
scmGraph.historyItemRemoteRefColor #ffb5d4
scrollbar.shadow #292929
scrollbarSlider.activeBackground #00000040
scrollbarSlider.background #00000020
scrollbarSlider.hoverBackground #00000060
selection.background #b0daff
settings.focusedRowBackground #ffffff07
settings.headerForeground #868686
sideBar.background #ffcee2
sideBar.border #B34B7D
sideBar.dropBackground #c9b67f
sideBar.foreground #000000
sideBarSectionHeader.background #ffb5d4
sideBarSectionHeader.border #61616130
sideBarSectionHeader.foreground #454545
sideBarTitle.foreground #000000
statusBar.background #ffb5d4
statusBar.border #B34B7D
statusBar.debuggingBackground #3366cc
statusBar.debuggingBorder #B34B7D
statusBar.debuggingForeground #ffffff
statusBar.foreground #57414a
statusBar.noFolderBackground #68217a
statusBar.noFolderBorder #B34B7D
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #82165d
statusBarItem.remoteForeground #ffffff
tab.activeBackground #ffb5d4
tab.activeBorder #000000
tab.activeBorderTop #000000
tab.activeForeground #333333
tab.border #000000
tab.hoverBackground #ffb5d4
tab.hoverBorder #818181
tab.inactiveBackground #ffcee2
tab.inactiveForeground #333333d1
terminal.ansiBlack #000000
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.background #ffcee2
terminal.border #B34B7D
terminal.foreground #5e5d5d
terminal.selectionBackground #00000040
terminalCursor.background #0087FF
terminalCursor.foreground #ffffff
textLink.foreground #006ab1
titleBar.activeBackground #ffb5d4
titleBar.activeForeground #57414a
titleBar.border #B34B7D
titleBar.inactiveBackground #ffb5d4ee
titleBar.inactiveForeground #c284a3
tree.indentGuidesStroke #a9a9a9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #292929
window.activeBorder #c284a3
window.inactiveBorder #57414a #046d85
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #898f98 —
variable.parameter.function.language.special.self.python #a17f16 —
storage.modifier.lifetime.rust #898f98 —
support.function.std.rust #0082be —
entity.name.lifetime.rust #a17f16 —
variable.language.rust #046d85 —
support.constant.edge #b7730e —
constant.other.character-class.regexp #046d85 —
keyword.operator.quantifier.regexp #467878 —
punctuation.definition.string.begin,punctuation.definition.string.end #538030 —
variable.parameter.function #898f98 —
comment markup.link #575e68 —
markup.changed.diff #a17f16 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #0082be —
markup.inserted.diff #538030 —
markup.deleted.diff #046d85 —
meta.function.c,meta.function.cpp #046d85 —
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 #898f98 —
punctuation.separator.key-value #898f98 —
keyword.operator.expression.import #0082be —
support.constant.math #a17f16 —
support.constant.property.math #467878 —
variable.other.constant #a17f16 —
storage.type.annotation.java, storage.type.object.array.java #a17f16 —
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 #898f98 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #a17f16 —
keyword.operator.instanceof.java #b7730e —
meta.definition.variable.name.java #046d85 —
keyword.operator.logical #c15f0f —
keyword.operator.bitwise #c15f0f —
keyword.operator.channel #c15f0f —
support.constant.property-value.scss,support.constant.property-value.css #467878 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #c15f0f —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #467878 —
punctuation.separator.list.comma.css #898f98 —
support.constant.color.w3c-standard-color-name.css #467878 —
support.type.vendored.property-name.css #c15f0f —
support.module.node,support.type.object.module,support.module.node #a17f16 —
entity.name.type.module #a17f16 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #046d85 —
support.constant.json #467878 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #b7730e —
support.type.object.console #046d85 —
support.variable.property.process #467878 —
entity.name.function,support.function.console #0082be —
keyword.operator.misc.rust #898f98 —
keyword.operator.sigil.rust #b7730e —
keyword.operator.delete #b7730e —
support.type.object.dom #c15f0f —
support.variable.dom,support.variable.property.dom #046d85 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #c15f0f —
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 #b7730e —
punctuation.separator.delimiter #898f98 —
punctuation.separator.c,punctuation.separator.cpp #b7730e —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #c15f0f —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #b7730e —
variable.parameter.function.language.python #467878 —
support.type.python #c15f0f —
keyword.operator.logical.python #b7730e —
variable.parameter.function.python #467878 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #898f98 —
meta.function-call.generic.python #0082be —
constant.character.format.placeholder.other.python #467878 —
keyword.operator.assignment.compound #b7730e —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #c15f0f —
entity.name.namespace #a17f16 —
variable.language #a17f16 —
token.variable.parameter.java #898f98 —
import.storage.java #a17f16 —
token.package.keyword #b7730e —
entity.name.function, meta.require, support.function.any-method, variable.function #0082be —
entity.name.type.namespace #a17f16 —
support.class, entity.name.type.class #a17f16 —
entity.name.class.identifier.namespace.type #a17f16 —
entity.name.class, variable.other.class.js, variable.other.class.ts #a17f16 —
variable.other.class.php #046d85 —
control.elements, keyword.operator.less #467878 —
keyword.other.special-method #0082be —
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 #b7730e —
token.storage.type.java #a17f16 —
support.type.property-name #898f98 —
support.constant.property-value #898f98 —
support.constant.font-name #467878 —
entity.other.inherited-class #a17f16 —
constant.other.symbol #c15f0f —
punctuation.definition.constant #467878 —
entity.other.attribute-name #467878 —
entity.other.attribute-name.id #0082be normal
entity.other.attribute-name.class.css #467878 normal
markup.heading punctuation.definition.heading, entity.name.section #0082be —
keyword.other.unit #046d85 —
markup.bold,todo.bold #467878 —
punctuation.definition.bold #a17f16 —
markup.italic, punctuation.definition.italic,todo.emphasis #b7730e —
entity.name.section.markdown #046d85 —
punctuation.definition.heading.markdown #046d85 —
punctuation.definition.list.begin.markdown #046d85 —
markup.heading.setext #898f98 —
punctuation.definition.bold.markdown #467878 —
markup.inline.raw.markdown #538030 —
markup.inline.raw.string.markdown #538030 —
punctuation.definition.list.markdown #046d85 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #046d85 —
beginning.punctuation.definition.list.markdown #046d85 —
punctuation.definition.metadata.markdown #046d85 —
markup.underline.link.markdown,markup.underline.link.image.markdown #b7730e —
string.other.link.title.markdown,string.other.link.description.markdown #0082be —
constant.character.escape #c15f0f —
punctuation.section.embedded, variable.interpolation #046d85 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #b7730e —
invalid.illegal #ff000088 —
invalid.illegal.bad-ampersand.html #898f98 —
invalid.deprecated #ff000088 —
invalid.unimplemented #ff000088 —
source.json meta.structure.dictionary.json > string.quoted.json #046d85 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #046d85 —
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 #538030 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #c15f0f —
support.type.property-name.json #046d85 —
support.type.property-name.json punctuation #046d85 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #b7730e —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #b7730e —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #a17f16 —
keyword.operator.error-control.php #b7730e —
keyword.operator.type.php #b7730e —
punctuation.section.array.begin.php #898f98 —
punctuation.section.array.end.php #898f98 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #a17f16 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #0082be —
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 #898f98 —
support.constant.core.rust #467878 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #467878 —
entity.name.goto-label.php,support.other.php #0082be —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #c15f0f —
keyword.operator.regexp.php #b7730e —
keyword.operator.comparison.php #c15f0f —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #b7730e —
meta.function.decorator.python #0082be —
support.token.decorator.python,meta.function.decorator.identifier.python #c15f0f —
function.parameter #898f98 —
function.parameter.ruby, function.parameter.cs #898f98 —
constant.language.symbol.ruby #c15f0f —
inline-color-decoration rgb-value #467878 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #a17f16 —
block.scope.end,block.scope.begin #898f98 —
entity.name.variable.local.cs #046d85 —
token.error-token #f44747 —
token.debug-token #b7730e —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #b7730e —
meta.template.expression #898f98 —
keyword.operator.module #b7730e —
support.type.type.flowtype #0082be —
support.type.primitive #a17f16 —
meta.property.object #046d85 —
variable.parameter.function.js #046d85 —
keyword.other.template.begin #538030 —
keyword.other.template.end #538030 —
keyword.other.substitution.begin #538030 —
keyword.other.substitution.end #538030 —
keyword.operator.assignment #c15f0f —
keyword.operator.assignment.go #a17f16 —
keyword.operator.arithmetic.go, keyword.operator.address.go #b7730e —
entity.name.package.go #a17f16 —
support.type.prelude.elm #c15f0f —
support.constant.elm #467878 —
punctuation.quasi.element #b7730e —
constant.character.entity #046d85 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #c15f0f —
entity.global.clojure #a17f16 —
meta.symbol.clojure #046d85 —
constant.keyword.clojure #c15f0f —
meta.arguments.coffee, variable.parameter.function.coffee #046d85 —
meta.scope.prerequisites.makefile #046d85 —
storage.modifier.import.groovy #a17f16 —
meta.method.groovy #0082be —
meta.definition.variable.name.groovy #046d85 —
meta.definition.class.inherited.classes.groovy #538030 —
support.variable.semantic.hlsl #a17f16 —
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 #b7730e —
text.variable, text.bracketed #046d85 —
support.type.swift, support.type.vb.asp #a17f16 —
entity.name.function.xi #a17f16 —
entity.name.class.xi #c15f0f —
constant.character.character-class.regexp.xi #046d85 —
constant.regexp.xi #b7730e —
keyword.control.xi #c15f0f —
beginning.punctuation.definition.quote.markdown.xi #538030 —
beginning.punctuation.definition.list.markdown.xi #575e68 —
constant.character.xi #0082be —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #575e68 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #a17f16 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #046d85 —
meta.brace.square #898f98 —
comment, punctuation.definition.comment #575e68 italic
markup.quote.markdown #575e68 —
punctuation.definition.block.sequence.item.yaml #898f98 —
constant.language.symbol.elixir #c15f0f —
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*
sjsepan.reddish | Coding Theme Button.tsx
fetchUser
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 } !` ;
}