Skip to main content
aqua-main | 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 #2d3d76 activityBar.background #1c264a activityBar.border #fff6bf00 activityBar.foreground #84dcc6 activityBar.inactiveForeground #c4bc77 activityBarBadge.background #5e7fe6 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 #ee8f8f — variable.other.generic-type.haskell #dbcd6f — storage.type.haskell #64b64e — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#fff9d0
badge.background #fe4a49
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #50ceae
breadcrumb.background #222e59
breadcrumb.focusForeground #50ceae
breadcrumb.foreground #fff8cb
button.background #fff197
button.foreground #000000
button.hoverBackground #84dcc6
button.secondaryBackground #405bb5
button.secondaryForeground #ffffff
button.secondaryHoverBackground #7525a7
checkbox.background #304488
checkbox.border #ffd6d600
checkbox.foreground #fff6bf
debugExceptionWidget.background #11172c
debugExceptionWidget.border #47474700
debugToolBar.background #11172c
debugToolBar.border #47474700
diffEditor.border #444444
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #304488
dropdown.border #ffd6d600
dropdown.foreground #fff6bf
editor.background #11172c
editor.findMatchBackground #00000000
editor.findMatchBorder #00e7ff
editor.findMatchHighlightBackground #00ffff24
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #3b9ba528
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #92ffdb14
editor.foreground #ffffff99
editor.hoverHighlightBackground #04ff9532
editor.inactiveSelectionBackground #1e324d
editor.lineHighlightBackground #68ff000a
editor.lineHighlightBorder #282828
editor.rangeHighlightBackground #3bffed2e
editor.rangeHighlightBorder #802b2b00
editor.selectionBackground #fff7ec16
editor.selectionHighlightBackground #ffe4c036
editor.selectionHighlightBorder #9be8c800
editor.wordHighlightBackground #5affc91a
editor.wordHighlightBorder #a7060600
editor.wordHighlightStrongBackground #00725756
editor.wordHighlightStrongBorder #00fff300
editorBracketMatch.background #6300f58b
editorBracketMatch.border #888888
editorCodeLens.foreground #ffffff
editorCursor.background #000000
editorCursor.foreground #84dcc6
editorError.background #b73a3448
editorError.border #ff000000
editorError.foreground #ff2b00
editorGroup.border #00ffc3
editorGroup.emptyBackground #11172c
editorGroupHeader.border #50ceae00
editorGroupHeader.tabsBackground #1c264a
editorGroupHeader.tabsBorder #fff4ab00
editorGutter.addedBackground #587c0c
editorGutter.background #111a3b
editorGutter.commentRangeForeground #eafffb
editorGutter.deletedBackground #94151b
editorGutter.foldingControlForeground #eafffb
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #111e51
editorHoverWidget.border #0021a1
editorHoverWidget.foreground #ffffff
editorIndentGuide.activeBackground #ffffff2c
editorIndentGuide.background #ffffff0c
editorInfo.background #4490bf3c
editorInfo.border #3eb5ff00
editorInfo.foreground #6ea9de
editorLineNumber.activeForeground #3eae89
editorLineNumber.foreground #fff7c07e
editorLink.activeForeground #ffe8c7
editorMarkerNavigation.background #171f3b
editorMarkerNavigationError.background #006850
editorMarkerNavigationInfo.background #00ffcf
editorMarkerNavigationWarning.background #ba9800
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #68131300
editorSuggestWidget.background #2e3d76
editorSuggestWidget.border #2e3d7600
editorSuggestWidget.foreground #abf9e5ad
editorSuggestWidget.highlightForeground #fff9d0
editorSuggestWidget.selectedBackground #425ecb
editorWarning.background #ffcf3436
editorWarning.border #ffb30000
editorWarning.foreground #ffd100
editorWhitespace.foreground #e3e4e229
editorWidget.background #111a3b
editorWidget.foreground #fffdf0
editorWidget.resizeBorder #eeeeee
focusBorder #006057bb
foreground #fff197
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 #fff197
input.background #304488
input.border #ffd6d600
input.foreground #fff6bf
input.placeholderForeground #ffffff78
inputOption.activeBackground #fff6bd
inputOption.activeBorder #000000
inputOption.activeForeground #000000
list.activeSelectionBackground #047e9b4a
list.activeSelectionForeground #ffffff
list.dropBackground #15bca416
list.focusBackground #004471
list.focusForeground #ffffff
list.highlightForeground #3affac
list.hoverBackground #11234f
list.hoverForeground #f0f0f0
list.inactiveSelectionBackground #35355e
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #2b5e94
listFilterWidget.noMatchesOutline #fe4a49
listFilterWidget.outline #15235e
menu.background #171e3b
menu.border #ffffff00
menu.foreground #c4c4c4
menu.selectionBackground #354690
menu.selectionBorder #ffffff
menu.selectionForeground #ffffff
menu.separatorBackground #4f64ba
menubar.selectionBackground #ffffff1a
menubar.selectionBorder #ffffff
menubar.selectionForeground #ffffff
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #11172c
minimap.errorHighlight #ff2b00
minimap.findMatchHighlight #00000000
minimap.selectionHighlight #fff7ec16
minimap.warningHighlight #ffd100
minimapGutter.addedBackground #587c0c
minimapGutter.deletedBackground #94151b
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #47474700
notificationCenterHeader.background #1d2649
notificationCenterHeader.foreground #fffedc
notifications.background #222e58
notifications.border #0d132e
notifications.foreground #fffadc
notificationsErrorIcon.foreground #fe4a49
notificationsInfoIcon.foreground #50ceae
notificationsWarningIcon.foreground #fff197
notificationToast.border #cdcdcd00
panel.background #0b0f1e
panel.border #00000000
panelSection.border #fff1972c
panelTitle.activeBorder #fff197
panelTitle.activeForeground #fff197
panelTitle.inactiveForeground #ffffff6e
peekView.border #007acc
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #252526
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #1e1e1e
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #ffffff
pickerGroup.foreground #50ceae
progressBar.background #3e59ae
scrollbar.shadow #57c8ff
scrollbarSlider.activeBackground #fff197
scrollbarSlider.background #fdee8d16
scrollbarSlider.hoverBackground #fff29d99
selection.background #3e59ae
settings.focusedRowBackground #ffffff07
settings.headerForeground #fff197
sideBar.background #0c1226
sideBar.border #fff19700
sideBar.dropBackground #15bca416
sideBar.foreground #d3d3d3
sideBarSectionHeader.background #3e59ae
sideBarSectionHeader.border #00000000
sideBarSectionHeader.foreground #eaeaea
sideBarTitle.foreground #bbbbbb
statusBar.background #0b0f1e
statusBar.debuggingBackground #fff197
statusBar.debuggingBorder #fff19700
statusBar.debuggingForeground #ffffff
statusBar.foreground #fff9d2
statusBar.noFolderBackground #7525a7
statusBar.noFolderBorder #fe4a4900
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #435bb1
statusBarItem.remoteBackground #50ceae
statusBarItem.remoteForeground #ffffff
tab.activeBackground #424f80
tab.activeBorder #96a4d7
tab.activeBorderTop #50ceae00
tab.activeForeground #ffffff
tab.border #1c264a
tab.hoverBackground #203068
tab.hoverBorder #fff197
tab.hoverForeground #fff197
tab.inactiveBackground #2d3d76
tab.inactiveForeground #ced8f9
terminal.ansiBlack #a5a5a5
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 #fff1972c
terminal.foreground #b8b8b8
terminal.selectionBackground #32448636
terminalCursor.background #84dcc6
terminalCursor.foreground #000000
textLink.foreground #dec0f1
titleBar.activeBackground #151e3c
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #2e3d76
titleBar.inactiveForeground #e6ebff
tree.indentGuidesStroke #fff197
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000000 #ee8f8f
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff99 —
variable.parameter.function.language.special.self.python #b795f2 —
storage.modifier.lifetime.rust #ffffff99 —
support.function.std.rust #1fd3a5 —
entity.name.lifetime.rust #b795f2 —
variable.language.rust #ee8f8f —
support.constant.edge #dbcd6f —
constant.other.character-class.regexp #ee8f8f —
keyword.operator.quantifier.regexp #64b64e —
punctuation.definition.string.begin,punctuation.definition.string.end #04d3d3 —
variable.parameter.function #ffffff99 —
comment markup.link #fff6b864 —
markup.changed.diff #b795f2 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #1fd3a5 —
markup.inserted.diff #04d3d3 —
markup.deleted.diff #ee8f8f —
meta.function.c,meta.function.cpp #ee8f8f —
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 #ffffff99 —
punctuation.separator.key-value #ffffff99 —
keyword.operator.expression.import #1fd3a5 —
support.constant.math #b795f2 —
support.constant.property.math #64b64e —
variable.other.constant #b795f2 —
storage.type.annotation.java, storage.type.object.array.java #b795f2 —
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 #ffffff99 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #b795f2 —
keyword.operator.instanceof.java #dbcd6f —
meta.definition.variable.name.java #ee8f8f —
keyword.operator.logical #ff6f9e —
keyword.operator.bitwise #ff6f9e —
keyword.operator.channel #ff6f9e —
support.constant.property-value.scss,support.constant.property-value.css #64b64e —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #ff6f9e —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #64b64e —
punctuation.separator.list.comma.css #ffffff99 —
support.constant.color.w3c-standard-color-name.css #64b64e —
support.type.vendored.property-name.css #ff6f9e —
support.module.node,support.type.object.module,support.module.node #b795f2 —
entity.name.type.module #b795f2 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #ee8f8f —
support.constant.json #64b64e —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #dbcd6f —
support.type.object.console #ee8f8f —
support.variable.property.process #64b64e —
entity.name.function,support.function.console #1fd3a5 —
keyword.operator.misc.rust #ffffff99 —
keyword.operator.sigil.rust #dbcd6f —
keyword.operator.delete #dbcd6f —
support.type.object.dom #ff6f9e —
support.variable.dom,support.variable.property.dom #ee8f8f —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #ff6f9e —
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 #dbcd6f —
punctuation.separator.delimiter #ffffff99 —
punctuation.separator.c,punctuation.separator.cpp #dbcd6f —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #ff6f9e —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #dbcd6f —
variable.parameter.function.language.python #64b64e —
support.type.python #ff6f9e —
keyword.operator.logical.python #dbcd6f —
variable.parameter.function.python #64b64e —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ffffff99 —
meta.function-call.generic.python #1fd3a5 —
constant.character.format.placeholder.other.python #64b64e —
keyword.operator #ffffff99 —
keyword.operator.assignment.compound #dbcd6f —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #ff6f9e —
entity.name.namespace #b795f2 —
variable.language #b795f2 —
token.variable.parameter.java #ffffff99 —
import.storage.java #b795f2 —
token.package.keyword #dbcd6f —
entity.name.function, meta.require, support.function.any-method, variable.function #1fd3a5 —
entity.name.type.namespace #b795f2 —
support.class, entity.name.type.class #b795f2 —
entity.name.class.identifier.namespace.type #b795f2 —
entity.name.class, variable.other.class.js, variable.other.class.ts #b795f2 —
variable.other.class.php #ee8f8f —
control.elements, keyword.operator.less #64b64e —
keyword.other.special-method #1fd3a5 —
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 #dbcd6f —
token.storage.type.java #b795f2 —
support.type.property-name #ffffff99 —
support.constant.property-value #ffffff99 —
support.constant.font-name #64b64e —
entity.other.inherited-class #b795f2 —
constant.other.symbol #ff6f9e —
punctuation.definition.constant #64b64e —
entity.other.attribute-name #64b64e —
entity.other.attribute-name.id #1fd3a5 normal
entity.other.attribute-name.class.css #64b64e normal
markup.heading punctuation.definition.heading, entity.name.section #1fd3a5 —
keyword.other.unit #ee8f8f —
markup.bold,todo.bold #64b64e —
punctuation.definition.bold #b795f2 —
markup.italic, punctuation.definition.italic,todo.emphasis #dbcd6f —
entity.name.section.markdown #ee8f8f —
punctuation.definition.heading.markdown #ee8f8f —
punctuation.definition.list.begin.markdown #ee8f8f —
markup.heading.setext #ffffff99 —
punctuation.definition.bold.markdown #64b64e —
markup.inline.raw.markdown #04d3d3 —
markup.inline.raw.string.markdown #04d3d3 —
punctuation.definition.list.markdown #ee8f8f —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #ee8f8f —
beginning.punctuation.definition.list.markdown #ee8f8f —
punctuation.definition.metadata.markdown #ee8f8f —
markup.underline.link.markdown,markup.underline.link.image.markdown #dbcd6f —
string.other.link.title.markdown,string.other.link.description.markdown #1fd3a5 —
constant.character.escape #ff6f9e —
punctuation.section.embedded, variable.interpolation #ee8f8f —
punctuation.section.embedded.begin,punctuation.section.embedded.end #dbcd6f —
invalid.illegal.bad-ampersand.html #ffffff99 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #ee8f8f —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #ee8f8f —
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 #04d3d3 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #ff6f9e —
support.type.property-name.json #ee8f8f —
support.type.property-name.json punctuation #ee8f8f —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #dbcd6f —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #dbcd6f —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #b795f2 —
keyword.operator.error-control.php #dbcd6f —
keyword.operator.type.php #dbcd6f —
punctuation.section.array.begin.php #ffffff99 —
punctuation.section.array.end.php #ffffff99 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #b795f2 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #1fd3a5 —
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 #ffffff99 —
support.constant.core.rust #64b64e —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #64b64e —
entity.name.goto-label.php,support.other.php #1fd3a5 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #ff6f9e —
keyword.operator.regexp.php #dbcd6f —
keyword.operator.comparison.php #ff6f9e —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #dbcd6f —
meta.function.decorator.python #1fd3a5 —
support.token.decorator.python,meta.function.decorator.identifier.python #ff6f9e —
function.parameter #ffffff99 —
function.parameter.ruby, function.parameter.cs #ffffff99 —
constant.language.symbol.ruby #ff6f9e —
inline-color-decoration rgb-value #64b64e —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #b795f2 —
block.scope.end,block.scope.begin #ffffff99 —
entity.name.variable.local.cs #ee8f8f —
token.error-token #f44747 —
token.debug-token #dbcd6f —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #dbcd6f —
meta.template.expression #ffffff99 —
keyword.operator.module #dbcd6f —
support.type.type.flowtype #1fd3a5 —
support.type.primitive #b795f2 —
meta.property.object #ee8f8f —
variable.parameter.function.js #ee8f8f —
keyword.other.template.begin #04d3d3 —
keyword.other.template.end #04d3d3 —
keyword.other.substitution.begin #04d3d3 —
keyword.other.substitution.end #04d3d3 —
keyword.operator.assignment #ff6f9e —
keyword.operator.assignment.go #b795f2 —
keyword.operator.arithmetic.go, keyword.operator.address.go #dbcd6f —
entity.name.package.go #b795f2 —
support.type.prelude.elm #ff6f9e —
support.constant.elm #64b64e —
punctuation.quasi.element #dbcd6f —
constant.character.entity #ee8f8f —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #ff6f9e —
entity.global.clojure #b795f2 —
meta.symbol.clojure #ee8f8f —
constant.keyword.clojure #ff6f9e —
meta.arguments.coffee, variable.parameter.function.coffee #ee8f8f —
meta.scope.prerequisites.makefile #ee8f8f —
storage.modifier.import.groovy #b795f2 —
meta.method.groovy #1fd3a5 —
meta.definition.variable.name.groovy #ee8f8f —
meta.definition.class.inherited.classes.groovy #04d3d3 —
support.variable.semantic.hlsl #b795f2 —
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 #dbcd6f —
text.variable, text.bracketed #ee8f8f —
support.type.swift, support.type.vb.asp #b795f2 —
entity.name.function.xi #b795f2 —
entity.name.class.xi #ff6f9e —
constant.character.character-class.regexp.xi #ee8f8f —
constant.regexp.xi #dbcd6f —
keyword.control.xi #ff6f9e —
beginning.punctuation.definition.quote.markdown.xi #04d3d3 —
beginning.punctuation.definition.list.markdown.xi #fff6b864 —
constant.character.xi #1fd3a5 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #fff6b864 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #b795f2 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #ee8f8f —
meta.brace.square #ffffff99 —
comment, punctuation.definition.comment #fff6b864 italic
markup.quote.markdown #fff6b864 —
punctuation.definition.block.sequence.item.yaml #ffffff99 —
constant.language.symbol.elixir #ff6f9e —
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 } !` ;
}