Skip to main content
Soda Pop VS | Coding Theme
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 #0a0a0a activityBar.border #00000000 activityBar.foreground #bbbbbb activityBar.inactiveForeground #555555 activityBarBadge.background #2968ff 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 #fff77c — variable.other.generic-type.haskell #16c8ff — storage.type.haskell #5650ff — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
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}!`;
}
Soda Pop VS — Soda Pop VS
3
Open Editors fetchUser.ts index.ts README.md fetchUser.ts
index.ts
README.md
src main*
0 1
Copilot
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
Dark+
activityBarBadge.foreground
#ffffff
badge.background #515bd4
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #b1e2ff
breadcrumb.background #000000
breadcrumb.focusForeground #b1e2ff
breadcrumb.foreground #8899a3
button.background #144bcd
button.foreground #ffffff
button.hoverBackground #4876e4
button.secondaryBackground #222222
button.secondaryForeground #ffffff
button.secondaryHoverBackground #333333
checkbox.background #333333
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #111111
debugExceptionWidget.border #00000000
debugToolBar.background #111111
debugToolBar.border #00000000
diffEditor.border #00000000
diffEditor.insertedTextBackground #79943a33
diffEditor.insertedTextBorder #864c4c
diffEditor.removedTextBackground #ff4e4e33
diffEditor.removedTextBorder #8a41418b
dropdown.background #333333
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #000000
editor.findMatchBackground #515c6a
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #eaa50055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #66666630
editor.findRangeHighlightBorder #f2f2f200
editor.foldBackground #2831564d
editor.foreground #7e57d3
editor.hoverHighlightBackground #a0cfff40
editor.inactiveSelectionBackground #3a3d41
editor.lineHighlightBackground #1110173c
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #f96f6f0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #222222
editor.selectionHighlightBackground #ffadad26
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #575757b8
editor.wordHighlightBorder #ff000000
editor.wordHighlightStrongBackground #03679fb8
editor.wordHighlightStrongBorder #ff000000
editorBracketMatch.background #ff97281c
editorBracketMatch.border #ff9077
editorCodeLens.foreground #9ea19c9b
editorCursor.background #111111
editorCursor.foreground #b3b4b2
editorError.background #7b444200
editorError.border #ffffff00
editorError.foreground #ff4620
editorGroup.border #00000070
editorGroup.emptyBackground #000000
editorGroupHeader.border #00000000
editorGroupHeader.tabsBackground #0a0a0a
editorGroupHeader.tabsBorder #ff787800
editorGutter.addedBackground #55ba0f
editorGutter.background #000000
editorGutter.commentRangeForeground #eeeeee
editorGutter.deletedBackground #c41f26
editorGutter.foldingControlForeground #eeeeee
editorGutter.modifiedBackground #26a8cd
editorHoverWidget.background #111111
editorHoverWidget.border #00000000
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #222222
editorIndentGuide.background #111111
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #5186b6
editorLineNumber.activeForeground #b0b1ff
editorLineNumber.foreground #858585
editorLink.activeForeground #54b2ff
editorMarkerNavigation.background #111111
editorMarkerNavigationError.background #ff5353
editorMarkerNavigationInfo.background #6dbaff
editorMarkerNavigationWarning.background #ffdb4d
editorOverviewRuler.background #5e5e5e00
editorOverviewRuler.border #c0afaf00
editorRuler.foreground #292c3e
editorSuggestWidget.background #111111
editorSuggestWidget.border #45454544
editorSuggestWidget.foreground #8da5b6
editorSuggestWidget.highlightForeground #15c0f5
editorSuggestWidget.selectedBackground #1b2336
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffe46c
editorWhitespace.foreground #222222
editorWidget.background #111111
editorWidget.foreground #888888
editorWidget.resizeBorder #00000000
focusBorder #00abff58
foreground #999999
gitDecoration.addedResourceForeground #a1ffb2
gitDecoration.conflictingResourceForeground #95a5ff
gitDecoration.deletedResourceForeground #ff6e6e
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #ffeb9e
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #999999
input.background #333333
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #2968ff
inputOption.activeBorder #00000000
inputOption.activeForeground #ffffff
list.activeSelectionBackground #111111
list.activeSelectionForeground #ffffff
list.dropBackground #000000
list.focusBackground #2968ff
list.focusForeground #ffffff
list.highlightForeground #77defe
list.hoverBackground #111111
list.hoverForeground #ffffff
list.inactiveSelectionBackground #000000
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #000000
listFilterWidget.noMatchesOutline #00000000
listFilterWidget.outline #00000000
menu.background #1d1d1d
menu.border #8a7b7b00
menu.foreground #dddddd
menu.selectionBackground #111111
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #4f677b54
menubar.selectionBackground #1d1d1d
menubar.selectionBorder #e60f0f00
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #000000
minimap.errorHighlight #ff4620
minimap.findMatchHighlight #515c6a
minimap.selectionHighlight #222222
minimap.warningHighlight #ffe46c
minimapGutter.addedBackground #55ba0f
minimapGutter.deletedBackground #c41f26
minimapGutter.modifiedBackground #26a8cd
notificationCenter.border #00000000
notificationCenterHeader.background #111111
notificationCenterHeader.foreground #fbfbfb
notifications.background #111111
notifications.border #00000000
notifications.foreground #5e8094
notificationsErrorIcon.foreground #ff6e50
notificationsInfoIcon.foreground #4eacff
notificationsWarningIcon.foreground #ffc047
notificationToast.border #47474700
panel.background #000000
panel.border #000000b5
panelSection.border #00000000
panelTitle.activeBorder #fff66d
panelTitle.activeForeground #fff66d
panelTitle.inactiveForeground #999999
peekView.border #7bb4d900
peekViewEditor.background #222222
peekViewEditor.matchHighlightBackground #ffb30056
peekViewEditor.matchHighlightBorder #00000000
peekViewEditorGutter.background #222222
peekViewResult.background #111111
peekViewResult.fileForeground #b0f0ff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ff3a254d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #111111
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #cbfdff
pickerGroup.border #00000000
pickerGroup.foreground #a7caf2
progressBar.background #2968ff
scrollbar.shadow #000000
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #49485a20
scrollbarSlider.hoverBackground #49485a20
selection.background #2968ff
settings.focusedRowBackground #ffffff07
settings.headerForeground #999999
sideBar.background #0a0a0a
sideBar.border #00000000
sideBar.dropBackground #000000
sideBar.foreground #777777
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #00000000
sideBarSectionHeader.foreground #2968ff
sideBarTitle.foreground #ffde5e
statusBar.background #0a0a0a
statusBar.border #0a0a0a
statusBar.debuggingBackground #2c1414
statusBar.debuggingBorder #0a0a0a
statusBar.debuggingForeground #999999
statusBar.foreground #777777
statusBar.noFolderBackground #241528
statusBar.noFolderBorder #0a0a0a
statusBar.noFolderForeground #999999
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #0a0a0a
statusBarItem.remoteForeground #777777
tab.activeBackground #000000
tab.activeBorder #2968ff
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #25252600
tab.hoverBackground #111111
tab.hoverBorder #00000000
tab.hoverForeground #ffffff
tab.inactiveBackground #0a0a0a
tab.inactiveForeground #999999
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 #e5e5e5
terminal.ansiYellow #e5e510
terminal.border #00000000
terminal.foreground #beb6b6
terminal.selectionBackground #8eb3c440
terminalCursor.background #303030
terminalCursor.foreground #ffffff
textLink.foreground #2968ff
titleBar.activeBackground #0a0a0a
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #0a0a0a
titleBar.inactiveForeground #999999
tree.indentGuidesStroke #333333
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000054 #fff77c
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #7e57d3 —
variable.parameter.function.language.special.self.python #9effc8 —
storage.modifier.lifetime.rust #7e57d3 —
support.function.std.rust #ff8569 —
entity.name.lifetime.rust #9effc8 —
variable.language.rust #fff77c —
support.constant.edge #16c8ff —
constant.other.character-class.regexp #fff77c —
keyword.operator.quantifier.regexp #5650ff —
punctuation.definition.string.begin,punctuation.definition.string.end #176ad3 —
variable.parameter.function #7e57d3 —
comment markup.link #9d9d9d —
markup.changed.diff #9effc8 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #ff8569 —
markup.inserted.diff #176ad3 —
markup.deleted.diff #fff77c —
meta.function.c,meta.function.cpp #fff77c —
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 #7e57d3 —
punctuation.separator.key-value #7e57d3 —
keyword.operator.expression.import #ff8569 —
support.constant.math #9effc8 —
support.constant.property.math #5650ff —
variable.other.constant #9effc8 —
storage.type.annotation.java, storage.type.object.array.java #9effc8 —
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 #7e57d3 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #9effc8 —
keyword.operator.instanceof.java #16c8ff —
meta.definition.variable.name.java #fff77c —
keyword.operator.logical #ff81e5 —
keyword.operator.bitwise #ff81e5 —
keyword.operator.channel #ff81e5 —
support.constant.property-value.scss,support.constant.property-value.css #5650ff —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ff81e5 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #5650ff —
punctuation.separator.list.comma.css #7e57d3 —
support.constant.color.w3c-standard-color-name.css #5650ff —
support.type.vendored.property-name.css #ff81e5 —
support.module.node,support.type.object.module,support.module.node #9effc8 —
entity.name.type.module #9effc8 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #fff77c —
support.constant.json #5650ff —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #16c8ff —
support.type.object.console #fff77c —
support.variable.property.process #5650ff —
entity.name.function,support.function.console #ff8569 —
keyword.operator.misc.rust #7e57d3 —
keyword.operator.sigil.rust #16c8ff —
keyword.operator.delete #16c8ff —
support.type.object.dom #ff81e5 —
support.variable.dom,support.variable.property.dom #fff77c —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ff81e5 —
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 #16c8ff —
punctuation.separator.delimiter #7e57d3 —
punctuation.separator.c,punctuation.separator.cpp #16c8ff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ff81e5 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #16c8ff —
variable.parameter.function.language.python #5650ff —
support.type.python #ff81e5 —
keyword.operator.logical.python #16c8ff —
variable.parameter.function.python #5650ff —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #7e57d3 —
meta.function-call.generic.python #ff8569 —
constant.character.format.placeholder.other.python #5650ff —
keyword.operator.assignment.compound #16c8ff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ff81e5 —
entity.name.namespace #9effc8 —
variable.language #9effc8 —
token.variable.parameter.java #7e57d3 —
import.storage.java #9effc8 —
token.package.keyword #16c8ff —
entity.name.function, meta.require, support.function.any-method, variable.function #ff8569 —
entity.name.type.namespace #9effc8 —
support.class, entity.name.type.class #9effc8 —
entity.name.class.identifier.namespace.type #9effc8 —
entity.name.class, variable.other.class.js, variable.other.class.ts #9effc8 —
variable.other.class.php #fff77c —
control.elements, keyword.operator.less #5650ff —
keyword.other.special-method #ff8569 —
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 #16c8ff —
token.storage.type.java #9effc8 —
support.type.property-name #7e57d3 —
support.constant.property-value #7e57d3 —
support.constant.font-name #5650ff —
entity.other.inherited-class #9effc8 —
constant.other.symbol #ff81e5 —
punctuation.definition.constant #5650ff —
entity.other.attribute-name #5650ff —
entity.other.attribute-name.id #ff8569 normal
entity.other.attribute-name.class.css #5650ff normal
markup.heading punctuation.definition.heading, entity.name.section #ff8569 —
keyword.other.unit #fff77c —
markup.bold,todo.bold #5650ff —
punctuation.definition.bold #9effc8 —
markup.italic, punctuation.definition.italic,todo.emphasis #16c8ff —
entity.name.section.markdown #fff77c —
punctuation.definition.heading.markdown #fff77c —
punctuation.definition.list.begin.markdown #fff77c —
markup.heading.setext #7e57d3 —
punctuation.definition.bold.markdown #5650ff —
markup.inline.raw.markdown #176ad3 —
markup.inline.raw.string.markdown #176ad3 —
punctuation.definition.list.markdown #fff77c —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #fff77c —
beginning.punctuation.definition.list.markdown #fff77c —
punctuation.definition.metadata.markdown #fff77c —
markup.underline.link.markdown,markup.underline.link.image.markdown #16c8ff —
string.other.link.title.markdown,string.other.link.description.markdown #ff8569 —
constant.character.escape #ff81e5 —
punctuation.section.embedded, variable.interpolation #fff77c —
punctuation.section.embedded.begin,punctuation.section.embedded.end #16c8ff —
invalid.illegal.bad-ampersand.html #7e57d3 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #fff77c —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #fff77c —
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 #176ad3 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ff81e5 —
support.type.property-name.json #fff77c —
support.type.property-name.json punctuation #fff77c —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #16c8ff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #16c8ff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #9effc8 —
keyword.operator.error-control.php #16c8ff —
keyword.operator.type.php #16c8ff —
punctuation.section.array.begin.php #7e57d3 —
punctuation.section.array.end.php #7e57d3 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #9effc8 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #ff8569 —
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 #7e57d3 —
support.constant.core.rust #5650ff —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #5650ff —
entity.name.goto-label.php,support.other.php #ff8569 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ff81e5 —
keyword.operator.regexp.php #16c8ff —
keyword.operator.comparison.php #ff81e5 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #16c8ff —
meta.function.decorator.python #ff8569 —
support.token.decorator.python,meta.function.decorator.identifier.python #ff81e5 —
function.parameter #7e57d3 —
function.parameter.ruby, function.parameter.cs #7e57d3 —
constant.language.symbol.ruby #ff81e5 —
inline-color-decoration rgb-value #5650ff —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #9effc8 —
block.scope.end,block.scope.begin #7e57d3 —
entity.name.variable.local.cs #fff77c —
token.error-token #f44747 —
token.debug-token #16c8ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #16c8ff —
meta.template.expression #7e57d3 —
keyword.operator.module #16c8ff —
support.type.type.flowtype #ff8569 —
support.type.primitive #9effc8 —
meta.property.object #fff77c —
variable.parameter.function.js #fff77c —
keyword.other.template.begin #176ad3 —
keyword.other.template.end #176ad3 —
keyword.other.substitution.begin #176ad3 —
keyword.other.substitution.end #176ad3 —
keyword.operator.assignment #ff81e5 —
keyword.operator.assignment.go #9effc8 —
keyword.operator.arithmetic.go, keyword.operator.address.go #16c8ff —
entity.name.package.go #9effc8 —
support.type.prelude.elm #ff81e5 —
support.constant.elm #5650ff —
punctuation.quasi.element #16c8ff —
constant.character.entity #fff77c —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ff81e5 —
entity.global.clojure #9effc8 —
meta.symbol.clojure #fff77c —
constant.keyword.clojure #ff81e5 —
meta.arguments.coffee, variable.parameter.function.coffee #fff77c —
meta.scope.prerequisites.makefile #fff77c —
storage.modifier.import.groovy #9effc8 —
meta.method.groovy #ff8569 —
meta.definition.variable.name.groovy #fff77c —
meta.definition.class.inherited.classes.groovy #176ad3 —
support.variable.semantic.hlsl #9effc8 —
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 #16c8ff —
text.variable, text.bracketed #fff77c —
support.type.swift, support.type.vb.asp #9effc8 —
entity.name.function.xi #9effc8 —
entity.name.class.xi #ff81e5 —
constant.character.character-class.regexp.xi #fff77c —
constant.regexp.xi #16c8ff —
keyword.control.xi #ff81e5 —
beginning.punctuation.definition.quote.markdown.xi #176ad3 —
beginning.punctuation.definition.list.markdown.xi #9d9d9d —
constant.character.xi #ff8569 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #9d9d9d —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #9effc8 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #fff77c —
meta.brace.square #7e57d3 —
comment, punctuation.definition.comment #9d9d9d italic
markup.quote.markdown #9d9d9d —
punctuation.definition.block.sequence.item.yaml #7e57d3 —
constant.language.symbol.elixir #ff81e5 —
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
fetchUser.ts Button.tsx Modal.tsx hooks utils index.ts public package.json tsconfig.json README.md Outline 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
31
32
33
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}!`;
}
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...
~/my-project $