Skip to main content
Home Theme VS Code purple ish A kind of purple, kind of orange theme for your eyes to appreciate.
purple ish | 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.background #131313 activityBar.border #131313 activityBar.foreground #ac94f4 activityBar.inactiveForeground #c8a4d466 activityBarBadge.background #e06550 activityBarBadge.foreground #ffffff 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 #a6afff — variable.other.generic-type.haskell #ff7373 — storage.type.haskell #ffffff — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
purple ish — purple ish (dimmed)
badge.background
#e06550
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #e0e0e0
breadcrumb.background #151515
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #e06550
button.foreground #ffffff
button.hoverBackground #ff7a52
button.secondaryBackground #2a2a36
button.secondaryForeground #ffffff
button.secondaryHoverBackground #3f3f4f
checkbox.background #151515
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #2a2a2a
debugExceptionWidget.border #ffffff00
debugToolBar.background #2a2a2a
debugToolBar.border #ffffff00
diffEditor.border #c8a4d489
diffEditor.insertedTextBackground #63d57a33
diffEditor.insertedTextBorder #ffffff00
diffEditor.removedTextBackground #ff485033
dropdown.background #151515
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #151515
editor.findMatchBackground #ac94f4a9
editor.findMatchBorder #ac94f4
editor.findMatchHighlightBackground #e065509b
editor.findMatchHighlightBorder #e06550
editor.findRangeHighlightBackground #2c2c2c66
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #c8a4d444
editor.foreground #ffffff
editor.hoverHighlightBackground #e0baff54
editor.inactiveSelectionBackground #3f3f3f
editor.lineHighlightBackground #ffffff06
editor.lineHighlightBorder #ffffff00
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #c8a4d470
editor.selectionHighlightBackground #ac94f42e
editor.selectionHighlightBorder #ac94f4
editor.wordHighlightBackground #c8a4d42c
editor.wordHighlightStrongBackground #e0baff66
editorBracketMatch.background #c8a4d489
editorBracketMatch.border #c8a4d4
editorCodeLens.foreground #c8a4d4a7
editorCursor.background #ffffff
editorCursor.foreground #e0baff
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #c8a4d489
editorGroup.emptyBackground #151515
editorGroupHeader.tabsBackground #151515
editorGutter.addedBackground #53d573
editorGutter.background #151515
editorGutter.commentRangeForeground #c8a4d4
editorGutter.deletedBackground #ff4f58
editorGutter.foldingControlForeground #c8a4d4
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #2a2a2a
editorHoverWidget.border #00000085
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #c8a4d470
editorIndentGuide.background #c8a4d470
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #e0baff
editorLineNumber.foreground #e0baff9b
editorLink.activeForeground #e0baff
editorMarkerNavigation.background #2a2a2a
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #c8a4d412
editorOverviewRuler.border #ffffff00
editorRuler.foreground #ffffff00
editorSuggestWidget.background #2a2a2a
editorSuggestWidget.border #00000085
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #ac94f4
editorSuggestWidget.selectedBackground #c8a4d420
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #c9c9c929
editorWidget.background #151515
editorWidget.foreground #cccccc
editorWidget.resizeBorder #151515
focusBorder #ac94f4
foreground #ac94f4
gitDecoration.addedResourceForeground #81b88b
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 #ac94f4
input.background #151515
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #c8a4d420
inputOption.activeBorder #ffffff00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #c8a4d470
list.activeSelectionForeground #ffffff
list.dropBackground #151515
list.focusBackground #c8a4d434
list.focusForeground #ffffff
list.highlightForeground #e0baff
list.hoverBackground #c8a4d420
list.hoverForeground #cccccc
list.inactiveSelectionBackground #c8a4d434
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #c8a4d434
listFilterWidget.noMatchesOutline #ff638f
listFilterWidget.outline #00000000
menu.background #131313
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #c8a4d434
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #bbbbbb
menubar.selectionBackground #c8a4d420
menubar.selectionBorder #ffffff00
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #151515
minimap.errorHighlight #f48771
minimap.findMatchHighlight #ac94f4a9
minimap.selectionHighlight #c8a4d470
minimap.warningHighlight #cca700
minimapGutter.addedBackground #53d573
minimapGutter.deletedBackground #ff4f58
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #00000085
notificationCenterHeader.background #2a2a2a
notificationCenterHeader.foreground #cccccc
notifications.background #2a2a2a
notifications.border #2a2a2a
notifications.foreground #cccccc
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #00000085
panel.background #0f0f0f
panel.border #0f0f0f
panelSection.border #c8a4d470
panelTitle.activeBorder #ac94f4
panelTitle.activeForeground #c8a4d4
panelTitle.inactiveForeground #e7e7e799
peekView.border #c8a4d4
peekViewEditor.background #362743
peekViewEditor.matchHighlightBackground #e06550
peekViewEditor.matchHighlightBorder #e06550
peekViewEditorGutter.background #362743
peekViewResult.background #2a2a2a
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #e065508b
peekViewResult.selectionBackground #c8a4d452
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #2a2a2a
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #c8a4d434
pickerGroup.foreground #c8a4d4
progressBar.background #ac94f4
scrollbar.shadow #ffffff00
scrollbarSlider.activeBackground #c8a4d46e
scrollbarSlider.background #c8a4d434
scrollbarSlider.hoverBackground #c8a4d44a
selection.background #ac94f4
settings.focusedRowBackground #ffffff07
settings.headerForeground #ac94f4
sideBar.background #151515
sideBar.border #151515
sideBar.dropBackground #151515
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #e0baff
sideBarTitle.foreground #c8a4d4
statusBar.background #151515
statusBar.border #ffffff00
statusBar.debuggingBackground #e06550
statusBar.debuggingBorder #ffffff00
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #151515
statusBar.noFolderBorder #ffffff00
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #c8a4d420
statusBarItem.remoteBackground #e06550
statusBarItem.remoteForeground #ffffff
tab.activeBackground #151515
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #151515
tab.inactiveBackground #121212
tab.inactiveForeground #ffffff80
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 #c8a4d470
terminal.foreground #cccccc
terminal.selectionBackground #ffffff40
terminalCursor.background #c8a4d470
terminalCursor.foreground #ffffff
textLink.foreground #c8a4d4
titleBar.activeBackground #131313
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #131313
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #c8a4d470
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #a6afff
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff —
variable.parameter.function.language.special.self.python #ffffff —
storage.modifier.lifetime.rust #ffffff —
support.function.std.rust #deb6ff —
entity.name.lifetime.rust #ffffff —
variable.language.rust #a6afff —
support.constant.edge #ff7373 —
constant.other.character-class.regexp #a6afff —
keyword.operator.quantifier.regexp #ffffff —
punctuation.definition.string.begin,punctuation.definition.string.end #e8ccff —
variable.parameter.function #ffffff —
comment markup.link #938f96 —
markup.changed.diff #ffffff —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #deb6ff —
markup.inserted.diff #e8ccff —
markup.deleted.diff #a6afff —
meta.function.c,meta.function.cpp #a6afff —
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 #ffffff —
punctuation.separator.key-value #ffffff —
keyword.operator.expression.import #deb6ff —
support.constant.math #ffffff —
support.constant.property.math #ffffff —
variable.other.constant #ffffff —
storage.type.annotation.java, storage.type.object.array.java #ffffff —
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 #ffffff —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ffffff —
keyword.operator.instanceof.java #ff7373 —
meta.definition.variable.name.java #a6afff —
keyword.operator.logical #a6afff —
keyword.operator.bitwise #a6afff —
keyword.operator.channel #a6afff —
support.constant.property-value.scss,support.constant.property-value.css #ffffff —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #a6afff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ffffff —
punctuation.separator.list.comma.css #ffffff —
support.constant.color.w3c-standard-color-name.css #ffffff —
support.type.vendored.property-name.css #a6afff —
support.module.node,support.type.object.module,support.module.node #ffffff —
entity.name.type.module #ffffff —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #a6afff —
support.constant.json #ffffff —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ff7373 —
support.type.object.console #a6afff —
support.variable.property.process #ffffff —
entity.name.function,support.function.console #deb6ff —
keyword.operator.misc.rust #ffffff —
keyword.operator.sigil.rust #ff7373 —
keyword.operator.delete #ff7373 —
support.type.object.dom #a6afff —
support.variable.dom,support.variable.property.dom #a6afff —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #a6afff —
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 #ff7373 —
punctuation.separator.delimiter #ffffff —
punctuation.separator.c,punctuation.separator.cpp #ff7373 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #a6afff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ff7373 —
variable.parameter.function.language.python #ffffff —
support.type.python #a6afff —
keyword.operator.logical.python #ff7373 —
variable.parameter.function.python #ffffff —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ffffff —
meta.function-call.generic.python #deb6ff —
constant.character.format.placeholder.other.python #ffffff —
keyword.operator.assignment.compound #ff7373 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #a6afff —
entity.name.namespace #ffffff —
variable.language #ffffff —
token.variable.parameter.java #ffffff —
import.storage.java #ffffff —
token.package.keyword #ff7373 —
entity.name.function, meta.require, support.function.any-method, variable.function #deb6ff —
entity.name.type.namespace #ffffff —
support.class, entity.name.type.class #ffffff —
entity.name.class.identifier.namespace.type #ffffff —
entity.name.class, variable.other.class.js, variable.other.class.ts #ff7373 —
variable.other.class.php #a6afff —
control.elements, keyword.operator.less #ffffff —
keyword.other.special-method #deb6ff —
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 #ff7373 —
token.storage.type.java #ffffff —
support.type.property-name #ffffff —
support.constant.property-value #ffffff —
support.constant.font-name #ffffff —
entity.other.inherited-class #ffffff —
constant.other.symbol #a6afff —
punctuation.definition.constant #ffffff —
entity.other.attribute-name #ffffff —
entity.other.attribute-name.id #deb6ff italic
entity.other.attribute-name.class.css #ffffff italic
markup.heading punctuation.definition.heading, entity.name.section #deb6ff —
keyword.other.unit #a6afff —
markup.bold,todo.bold #ffffff —
punctuation.definition.bold #ffffff —
markup.italic, punctuation.definition.italic,todo.emphasis #ff7373 —
entity.name.section.markdown #a6afff —
punctuation.definition.heading.markdown #a6afff —
punctuation.definition.list.begin.markdown #a6afff —
markup.heading.setext #ffffff —
punctuation.definition.bold.markdown #ffffff —
markup.inline.raw.markdown #e8ccff —
markup.inline.raw.string.markdown #e8ccff —
punctuation.definition.list.markdown #a6afff —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #a6afff —
beginning.punctuation.definition.list.markdown #a6afff —
punctuation.definition.metadata.markdown #a6afff —
markup.underline.link.markdown,markup.underline.link.image.markdown #ff7373 —
string.other.link.title.markdown,string.other.link.description.markdown #deb6ff —
constant.character.escape #a6afff —
punctuation.section.embedded, variable.interpolation #a6afff —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ff7373 —
invalid.illegal.bad-ampersand.html #ffffff —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #a6afff —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #a6afff —
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 #e8ccff —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #a6afff —
support.type.property-name.json #a6afff —
support.type.property-name.json punctuation #a6afff —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ff7373 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ff7373 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ffffff —
keyword.operator.error-control.php #ff7373 —
keyword.operator.type.php #ff7373 —
punctuation.section.array.begin.php #ffffff —
punctuation.section.array.end.php #ffffff —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ffffff —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #deb6ff —
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 #ffffff —
support.constant.core.rust #ffffff —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ffffff —
entity.name.goto-label.php,support.other.php #deb6ff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #a6afff —
keyword.operator.regexp.php #ff7373 —
keyword.operator.comparison.php #a6afff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ff7373 —
meta.function.decorator.python #deb6ff —
support.token.decorator.python,meta.function.decorator.identifier.python #a6afff —
function.parameter #ffffff —
function.parameter.ruby, function.parameter.cs #ffffff —
constant.language.symbol.ruby #a6afff —
inline-color-decoration rgb-value #ffffff —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ffffff —
block.scope.end,block.scope.begin #ffffff —
entity.name.variable.local.cs #a6afff —
token.error-token #f44747 —
token.debug-token #ff7373 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ff7373 —
meta.template.expression #ffffff —
keyword.operator.module #ff7373 —
support.type.type.flowtype #deb6ff —
support.type.primitive #ffffff —
meta.property.object #a6afff —
variable.parameter.function.js #a6afff —
keyword.other.template.begin #e8ccff —
keyword.other.template.end #e8ccff —
keyword.other.substitution.begin #e8ccff —
keyword.other.substitution.end #e8ccff —
keyword.operator.assignment #a6afff —
keyword.operator.assignment.go #ffffff —
keyword.operator.arithmetic.go, keyword.operator.address.go #ff7373 —
entity.name.package.go #ffffff —
support.type.prelude.elm #a6afff —
support.constant.elm #ffffff —
punctuation.quasi.element #ff7373 —
constant.character.entity #a6afff —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #a6afff —
entity.global.clojure #ffffff —
meta.symbol.clojure #a6afff —
constant.keyword.clojure #a6afff —
meta.arguments.coffee, variable.parameter.function.coffee #a6afff —
meta.scope.prerequisites.makefile #a6afff —
storage.modifier.import.groovy #ffffff —
meta.method.groovy #deb6ff —
meta.definition.variable.name.groovy #a6afff —
meta.definition.class.inherited.classes.groovy #e8ccff —
support.variable.semantic.hlsl #ffffff —
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 #ff7373 —
text.variable, text.bracketed #a6afff —
support.type.swift, support.type.vb.asp #ffffff —
entity.name.function.xi #ffffff —
entity.name.class.xi #a6afff —
constant.character.character-class.regexp.xi #a6afff —
constant.regexp.xi #ff7373 —
keyword.control.xi #a6afff —
beginning.punctuation.definition.quote.markdown.xi #e8ccff —
beginning.punctuation.definition.list.markdown.xi #938f96 —
constant.character.xi #deb6ff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #938f96 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ffffff —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #a6afff —
meta.brace.square #ffffff —
comment, punctuation.definition.comment #938f96 italic
markup.quote.markdown #938f96 —
punctuation.definition.block.sequence.item.yaml #ffffff —
constant.language.symbol.elixir #a6afff —
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 } !` ;
}