Skip to main content
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 #161b1f00 activityBar.background #101417 activityBar.border #00000000 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #101417 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 #ff0014 — variable.other.generic-type.haskell #c500ff — storage.type.haskell #ff7c00 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Andromeda-custom — andromeda-custom
activityBarBadge.foreground #ffffff
badge.background #FFFFFF1A
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #a7a7a7
breadcrumb.background #101417
breadcrumb.focusForeground #a7a7a7
breadcrumb.foreground #ffffff
button.background #00fff36e
button.foreground #ffffff
button.hoverBackground #00fff36e
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #45494e78
checkbox.background #161b1f
checkbox.border #00000000
checkbox.foreground #ffffff
debugExceptionWidget.background #161b1f
debugExceptionWidget.border #47474700
debugToolBar.background #161b1f
debugToolBar.border #47474700
diffEditor.border #ffffff
diffEditor.insertedTextBackground #b3ff0033
diffEditor.removedTextBackground #ff000033
dropdown.background #161b1f
dropdown.border #00000000
dropdown.foreground #ffffff
editor.background #101417
editor.findMatchBackground #515c6a
editor.findMatchBorder #515c6a
editor.findMatchHighlightBackground #38649663
editor.findMatchHighlightBorder #71050500
editor.findRangeHighlightBackground #161b1f
editor.findRangeHighlightBorder #86373700
editor.foldBackground #161b1f
editor.foreground #ffffff
editor.hoverHighlightBackground #ffffff15
editor.inactiveSelectionBackground #FFFFFF20
editor.lineHighlightBackground #161b1f
editor.lineHighlightBorder #00000000
editor.rangeHighlightBackground #15751218
editor.rangeHighlightBorder #ff000000
editor.selectionBackground #264f78
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #004972b8
editorBracketMatch.background #0064001a
editorBracketMatch.border #888888
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #ffffff
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f5826b
editorGroup.border #ffffff
editorGroup.emptyBackground #101417
editorGroupHeader.border #d3d3d300
editorGroupHeader.tabsBackground #101417
editorGroupHeader.tabsBorder #96515100
editorGutter.addedBackground #adff00
editorGutter.background #101417
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #ff000c
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #161b1f
editorHoverWidget.border #00000000
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #ffffff
editorIndentGuide.background #ffffff
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #0087ff
editorLineNumber.activeForeground #101417
editorLineNumber.foreground #ffffff
editorLink.activeForeground #4e94ce
editorMarkerNavigation.background #161b1f
editorMarkerNavigationError.background #ff2b00
editorMarkerNavigationInfo.background #0087ff
editorMarkerNavigationWarning.background #ffd100
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #ffffff
editorSuggestWidget.background #161b1f
editorSuggestWidget.border #45454500
editorSuggestWidget.foreground #ffffff
editorSuggestWidget.highlightForeground #00fff36e
editorSuggestWidget.selectedBackground #062f4a
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffd101
editorWhitespace.foreground #FFFFFF14
editorWidget.background #161b1f
editorWidget.foreground #ffffff
editorWidget.resizeBorder #ffffff
focusBorder #ab9b9b
foreground #ab9b9b
gitDecoration.addedResourceForeground #00ff2f
gitDecoration.conflictingResourceForeground #7171ff
gitDecoration.deletedResourceForeground #ff2600
gitDecoration.ignoredResourceForeground #7b7b7b
gitDecoration.modifiedResourceForeground #ff9900
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #ab9b9b
input.background #161b1f
input.border #00000000
input.foreground #ffffff
input.placeholderForeground #a6a6a6
inputOption.activeBackground #161b1f
inputOption.activeBorder #00000000
inputOption.activeForeground #ffffff
list.activeSelectionBackground #9191ff0e
list.activeSelectionForeground #cbe3fd
list.dropBackground #bfbfff0e
list.focusBackground #9a9aff0e
list.focusForeground #ececec
list.highlightForeground #ffffff
list.hoverBackground #141d3b00
list.hoverForeground #ffffff
list.inactiveSelectionBackground #9191ff0e
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #161b1f
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #ad797900
menu.background #161b1f
menu.border #00000085
menu.foreground #ffffff
menu.selectionBackground #00000000
menu.selectionBorder #caebff54
menu.selectionForeground #ffffff
menu.separatorBackground #ffffff
menubar.selectionBackground #161b1f
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #174841
merge.currentHeaderBackground #158472
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #101417
minimap.errorHighlight #f5826b
minimap.findMatchHighlight #515c6a
minimap.selectionHighlight #264f78
minimap.warningHighlight #ffd101
minimapGutter.addedBackground #adff00
minimapGutter.deletedBackground #ff000c
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #47474700
notificationCenterHeader.background #161b1f
notificationCenterHeader.foreground #ffffff
notifications.background #161b1f
notifications.border #30303100
notifications.foreground #ffffff
notificationsErrorIcon.foreground #ff2b00
notificationsInfoIcon.foreground #0087ff
notificationsWarningIcon.foreground #ffd100
notificationToast.border #47474700
panel.background #101417
panel.border #80808000
panelSection.border #808080
panelTitle.activeBorder #ffffff
panelTitle.activeForeground #ffffff
panelTitle.inactiveForeground #e7e7e799
peekView.border #007acc00
peekViewEditor.background #161b1f
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #161b1f
peekViewResult.background #161b1f
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #28496b33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #161b1f
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #ffffff
pickerGroup.foreground #a2bede
progressBar.background #ab9b9b
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #79797966
scrollbarSlider.hoverBackground #646464b3
selection.background #79a2e280
settings.focusedRowBackground #ffffff07
settings.headerForeground #ab9b9b
sideBar.background #101417
sideBar.border #ffffff00
sideBar.dropBackground #bfbfff0e
sideBar.foreground #d5e9ff
sideBarSectionHeader.background #101417
sideBarSectionHeader.border #08080800
sideBarSectionHeader.foreground #ffe8ca
sideBarTitle.foreground #ffffff
statusBar.background #101417
statusBar.border #ba646400
statusBar.debuggingBackground #D26218
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #101417
statusBar.noFolderBorder #ff000000
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #0e14286e
statusBarItem.remoteBackground #101417
statusBarItem.remoteForeground #ffffff
tab.activeBackground #161b1f00
tab.activeBorder #00000000
tab.activeBorderTop #ffffff8b
tab.activeForeground #ffffff
tab.border #00000000
tab.hoverBackground #41404020
tab.hoverBorder #ffffff
tab.inactiveBackground #101417
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 #D4D4D4
terminal.ansiYellow #e5e510
terminal.border #808080
terminal.foreground #C5C5C5
terminal.selectionBackground #b0a8a840
terminalCursor.background #00fff36e
terminalCursor.foreground #ffffff
textLink.foreground #00fff36e
titleBar.activeBackground #101417
titleBar.activeForeground #ffffff
titleBar.border #00000000
titleBar.inactiveBackground #101417
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #cbe3fd
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000080 #ff0014
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff —
variable.parameter.function.language.special.self.python #ffa600 —
storage.modifier.lifetime.rust #ffffff —
support.function.std.rust #008cff —
entity.name.lifetime.rust #ffa600 —
variable.language.rust #ff0014 —
support.constant.edge #c500ff —
constant.other.character-class.regexp #ff0014 —
keyword.operator.quantifier.regexp #ff7c00 —
punctuation.definition.string.begin,punctuation.definition.string.end #6bff00 —
variable.parameter.function #ffffff —
comment markup.link #d3d3d3 —
markup.changed.diff #ffa600 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #008cff —
markup.inserted.diff #6bff00 —
markup.deleted.diff #ff0014 —
meta.function.c,meta.function.cpp #ff0014 —
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 #008cff —
support.constant.math #ffa600 —
support.constant.property.math #ff7c00 —
variable.other.constant #ffa600 —
storage.type.annotation.java, storage.type.object.array.java #ffa600 —
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 #ffa600 —
keyword.operator.instanceof.java #c500ff —
meta.definition.variable.name.java #ff0014 —
keyword.operator.logical #00e3ff —
keyword.operator.bitwise #00e3ff —
keyword.operator.channel #00e3ff —
support.constant.property-value.scss,support.constant.property-value.css #ff7c00 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #00e3ff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #ff7c00 —
punctuation.separator.list.comma.css #ffffff —
support.constant.color.w3c-standard-color-name.css #ff7c00 —
support.type.vendored.property-name.css #00e3ff —
support.module.node,support.type.object.module,support.module.node #ffa600 —
entity.name.type.module #ffa600 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ff0014 —
support.constant.json #ff7c00 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #c500ff —
support.type.object.console #ff0014 —
support.variable.property.process #ff7c00 —
entity.name.function,support.function.console #008cff —
keyword.operator.misc.rust #ffffff —
keyword.operator.sigil.rust #c500ff —
keyword.operator.delete #c500ff —
support.type.object.dom #00e3ff —
support.variable.dom,support.variable.property.dom #ff0014 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #00e3ff —
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 #c500ff —
punctuation.separator.delimiter #ffffff —
punctuation.separator.c,punctuation.separator.cpp #c500ff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #00e3ff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #c500ff —
variable.parameter.function.language.python #ff7c00 —
support.type.python #00e3ff —
keyword.operator.logical.python #c500ff —
variable.parameter.function.python #ff7c00 —
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 #008cff —
constant.character.format.placeholder.other.python #ff7c00 —
keyword.operator.assignment.compound #c500ff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #00e3ff —
entity.name.namespace #ffa600 —
variable.language #ffa600 —
token.variable.parameter.java #ffffff —
import.storage.java #ffa600 —
token.package.keyword #c500ff —
entity.name.function, meta.require, support.function.any-method, variable.function #008cff —
entity.name.type.namespace #ffa600 —
support.class, entity.name.type.class #ffa600 —
entity.name.class.identifier.namespace.type #ffa600 —
entity.name.class, variable.other.class.js, variable.other.class.ts #ffa600 —
variable.other.class.php #ff0014 —
control.elements, keyword.operator.less #ff7c00 —
keyword.other.special-method #008cff —
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 #c500ff —
token.storage.type.java #ffa600 —
support.type.property-name #ffffff —
support.constant.property-value #ffffff —
support.constant.font-name #ff7c00 —
entity.other.inherited-class #ffa600 —
constant.other.symbol #00e3ff —
punctuation.definition.constant #ff7c00 —
entity.other.attribute-name #ff7c00 —
entity.other.attribute-name.id #008cff normal
entity.other.attribute-name.class.css #ff7c00 normal
markup.heading punctuation.definition.heading, entity.name.section #008cff —
keyword.other.unit #ff0014 —
markup.bold,todo.bold #ff7c00 —
punctuation.definition.bold #ffa600 —
markup.italic, punctuation.definition.italic,todo.emphasis #c500ff —
entity.name.section.markdown #ff0014 —
punctuation.definition.heading.markdown #ff0014 —
punctuation.definition.list.begin.markdown #ff0014 —
markup.heading.setext #ffffff —
punctuation.definition.bold.markdown #ff7c00 —
markup.inline.raw.markdown #6bff00 —
markup.inline.raw.string.markdown #6bff00 —
punctuation.definition.list.markdown #ff0014 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ff0014 —
beginning.punctuation.definition.list.markdown #ff0014 —
punctuation.definition.metadata.markdown #ff0014 —
markup.underline.link.markdown,markup.underline.link.image.markdown #c500ff —
string.other.link.title.markdown,string.other.link.description.markdown #008cff —
constant.character.escape #00e3ff —
punctuation.section.embedded, variable.interpolation #ff0014 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #c500ff —
invalid.illegal.bad-ampersand.html #ffffff —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ff0014 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ff0014 —
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 #6bff00 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #00e3ff —
support.type.property-name.json #ff0014 —
support.type.property-name.json punctuation #ff0014 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #c500ff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #c500ff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ffa600 —
keyword.operator.error-control.php #c500ff —
keyword.operator.type.php #c500ff —
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 #ffa600 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #008cff —
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 #ff7c00 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #ff7c00 —
entity.name.goto-label.php,support.other.php #008cff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #00e3ff —
keyword.operator.regexp.php #c500ff —
keyword.operator.comparison.php #00e3ff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #c500ff —
meta.function.decorator.python #008cff —
support.token.decorator.python,meta.function.decorator.identifier.python #00e3ff —
function.parameter #ffffff —
function.parameter.ruby, function.parameter.cs #ffffff —
constant.language.symbol.ruby #00e3ff —
inline-color-decoration rgb-value #ff7c00 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ffa600 —
block.scope.end,block.scope.begin #ffffff —
entity.name.variable.local.cs #ff0014 —
token.error-token #f44747 —
token.debug-token #c500ff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #c500ff —
meta.template.expression #ffffff —
keyword.operator.module #c500ff —
support.type.type.flowtype #008cff —
support.type.primitive #ffa600 —
meta.property.object #ff0014 —
variable.parameter.function.js #ff0014 —
keyword.other.template.begin #6bff00 —
keyword.other.template.end #6bff00 —
keyword.other.substitution.begin #6bff00 —
keyword.other.substitution.end #6bff00 —
keyword.operator.assignment #00e3ff —
keyword.operator.assignment.go #ffa600 —
keyword.operator.arithmetic.go, keyword.operator.address.go #c500ff —
entity.name.package.go #ffa600 —
support.type.prelude.elm #00e3ff —
support.constant.elm #ff7c00 —
punctuation.quasi.element #c500ff —
constant.character.entity #ff0014 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #00e3ff —
entity.global.clojure #ffa600 —
meta.symbol.clojure #ff0014 —
constant.keyword.clojure #00e3ff —
meta.arguments.coffee, variable.parameter.function.coffee #ff0014 —
meta.scope.prerequisites.makefile #ff0014 —
storage.modifier.import.groovy #ffa600 —
meta.method.groovy #008cff —
meta.definition.variable.name.groovy #ff0014 —
meta.definition.class.inherited.classes.groovy #6bff00 —
support.variable.semantic.hlsl #ffa600 —
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 #c500ff —
text.variable, text.bracketed #ff0014 —
support.type.swift, support.type.vb.asp #ffa600 —
entity.name.function.xi #ffa600 —
entity.name.class.xi #00e3ff —
constant.character.character-class.regexp.xi #ff0014 —
constant.regexp.xi #c500ff —
keyword.control.xi #00e3ff —
beginning.punctuation.definition.quote.markdown.xi #6bff00 —
beginning.punctuation.definition.list.markdown.xi #d3d3d3 —
constant.character.xi #008cff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #d3d3d3 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ffa600 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ff0014 —
meta.brace.square #ffffff —
comment, punctuation.definition.comment #d3d3d3 italic
markup.quote.markdown #d3d3d3 —
punctuation.definition.block.sequence.item.yaml #ffffff —
constant.language.symbol.elixir #00e3ff —
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 } !` ;
}
Andromeda-custom | Coding Theme