Skip to main content
Home Theme VS Code Artinpixel Turquoise Theme A light and simple theme with vibrant colors of turquoise shades
Artinpixel Turquoise Theme | 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 #101517 activityBar.background #21282b activityBar.border #101517 activityBar.foreground #00cce6 activityBar.inactiveForeground #9decf581 activityBarBadge.background #00cce6 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 #17b3de — variable.other.generic-type.haskell #ff4097 — storage.type.haskell #68b8ff — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Artinpixel Turquoise Theme — Artinpixel Turquoise Dark Theme
activityBarBadge.foreground
#ffffff
badge.background #cb4545
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #c6ebef
breadcrumb.background #20242683
breadcrumb.focusForeground #c6ebef
breadcrumb.foreground #c4ccd1
button.background #077d9d
button.foreground #ffffff
button.hoverBackground #00cce6
button.secondaryBackground #101517
button.secondaryForeground #ffffff
button.secondaryHoverBackground #27353b
checkbox.background #21282b8f
checkbox.border #101517
checkbox.foreground #c6ebeffb
debugExceptionWidget.background #101517
debugExceptionWidget.border #47474700
debugToolBar.background #101517
debugToolBar.border #47474700
diffEditor.border #00000000
diffEditor.insertedTextBackground #79943a33
diffEditor.insertedTextBorder #864c4c
diffEditor.removedTextBackground #ff4e4e33
diffEditor.removedTextBorder #8a41418b
dropdown.background #2d373b
dropdown.border #2c383d
dropdown.foreground #c6ebeffb
editor.background #21282b
editor.findMatchBackground #187d5c
editor.findMatchBorder #74879f00
editor.findMatchHighlightBackground #187d5c83
editor.findMatchHighlightBorder #187d5c
editor.findRangeHighlightBackground #9decf50a
editor.findRangeHighlightBorder #f2f2f200
editor.foldBackground #077d9d32
editor.foreground #ccd8de
editor.hoverHighlightBackground #9decf544
editor.inactiveSelectionBackground #FFFFFF20
editor.lineHighlightBackground #15161744
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #f96f6f0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #077d9d32
editor.selectionHighlightBackground #077d9d66
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #575757b8
editor.wordHighlightBorder #ff000000
editor.wordHighlightStrongBackground #0fcce564
editor.wordHighlightStrongBorder #ff000000
editorBracketMatch.background #00cce636
editorBracketMatch.border #00cce668
editorCodeLens.foreground #9ea19c9b
editorCursor.background #ffffff
editorCursor.foreground #00cce6
editorError.background #7b444200
editorError.border #ffffff00
editorError.foreground #ff4620
editorGroup.border #00000070
editorGroup.emptyBackground #21282b
editorGroupHeader.border #101517
editorGroupHeader.tabsBackground #323638fd
editorGroupHeader.tabsBorder #0fcce530
editorGutter.addedBackground #55ba0f
editorGutter.background #1015176c
editorGutter.commentRangeForeground #cbc4c4
editorGutter.deletedBackground #c41f26
editorGutter.foldingControlForeground #cbc4c4
editorGutter.modifiedBackground #0c7d9d
editorHoverWidget.background #101517
editorHoverWidget.border #2b4854
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #077d9dd1
editorIndentGuide.background #077d9d5c
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #5186b6
editorLineNumber.activeForeground #00cce6
editorLineNumber.foreground #c6ebef56
editorLink.activeForeground #00cce6
editorMarkerNavigation.background #222526
editorMarkerNavigationError.background #8a4d4d
editorMarkerNavigationInfo.background #527fa7
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #5e5e5e00
editorOverviewRuler.border #c0afaf00
editorRuler.foreground #FFFFFF14
editorSuggestWidget.background #101517
editorSuggestWidget.border #45454544
editorSuggestWidget.foreground #8da5b6
editorSuggestWidget.highlightForeground #0fcce5
editorSuggestWidget.selectedBackground #171819
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffe46c
editorWhitespace.foreground #fbfff829
editorWidget.background #21282b
editorWidget.foreground #b2a8a8
editorWidget.resizeBorder #077d9d
focusBorder #0fcce52e
foreground #9decf5
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 #9decf5
input.background #21282b8f
input.border #101517
input.foreground #c6ebeffb
input.placeholderForeground #7aa2b2
inputOption.activeBackground #077d9d83
inputOption.activeBorder #0fcce504
inputOption.activeForeground #ffffff
list.activeSelectionBackground #077d9d32
list.activeSelectionForeground #0fcce5
list.dropBackground #1015175a
list.focusBackground #077d9d32
list.focusForeground #e0e0e0
list.highlightForeground #00cce6
list.hoverBackground #077d9d85
list.hoverForeground #ffffff
list.inactiveSelectionBackground #077d9d32
list.inactiveSelectionForeground #28e7ff
listFilterWidget.background #187d7b74
listFilterWidget.noMatchesOutline #f0564700
listFilterWidget.outline #c2bdbd00
menu.background #101517
menu.border #8a7b7b00
menu.foreground #c6ebef
menu.selectionBackground #077d9d32
menu.selectionBorder #00000000
menu.selectionForeground #0fd9eefb
menu.separatorBackground #434749
menubar.selectionBackground #0fcce530
menubar.selectionBorder #e60f0f00
menubar.selectionForeground #0fcce5
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #043136
merge.incomingHeaderBackground #29818c
minimap.background #21282b
minimap.errorHighlight #ff4620
minimap.findMatchHighlight #187d5c
minimap.selectionHighlight #077d9d32
minimap.warningHighlight #ffe46c
minimapGutter.addedBackground #55ba0f
minimapGutter.deletedBackground #c41f26
minimapGutter.modifiedBackground #0c7d9d
notificationCenter.border #47474700
notificationCenterHeader.background #1d1e1f
notificationCenterHeader.foreground #fbfbfb
notifications.background #21282b
notifications.border #c6ebef36
notifications.foreground #c6ebef
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #ffffff00
panel.background #21282b
panel.border #101517
panelSection.border #077d9d99
panelTitle.activeBorder #077d9d
panelTitle.activeForeground #00cce6
panelTitle.inactiveForeground #c6ebef99
peekView.border #111111
peekViewEditor.background #101517
peekViewEditor.matchHighlightBackground #ee860056
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #1f282c
peekViewResult.background #141617
peekViewResult.fileForeground #077d9d
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #141617
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #0fcce5
pickerGroup.border #51517100
pickerGroup.foreground #9f9e9e
progressBar.background #00cce6
scrollbar.shadow #1a1e1f9d
scrollbarSlider.activeBackground #077d9d6e
scrollbarSlider.background #101517
scrollbarSlider.hoverBackground #077d9d54
selection.background #0b6580b7
settings.focusedRowBackground #ffffff07
settings.headerForeground #9decf5
sideBar.background #21282b
sideBar.border #101517
sideBar.dropBackground #1015175a
sideBar.foreground #daeaec
sideBarSectionHeader.background #10151787
sideBarSectionHeader.border #101517a5
sideBarSectionHeader.foreground #9decf5b5
sideBarTitle.foreground #c6ebef
statusBar.background #101517
statusBar.border #101517
statusBar.debuggingBackground #187d7b
statusBar.debuggingBorder #323638
statusBar.debuggingForeground #ffffff
statusBar.foreground #92f4ff
statusBar.noFolderBackground #077d9d99
statusBar.noFolderBorder #323638
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #077d9d85
statusBarItem.remoteBackground #07383f
statusBarItem.remoteForeground #f8fcff
tab.activeBackground #077d9d32
tab.activeBorder #077d9d
tab.activeBorderTop #5affb200
tab.activeForeground #c6ebef
tab.border #101517
tab.hoverBackground #077d9d85
tab.hoverBorder #00000000
tab.inactiveBackground #10151785
tab.inactiveForeground #ffffff4c
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 #077d9d99
terminal.foreground #beb6b6
terminal.selectionBackground #10151752
terminalCursor.background #077d9d
terminalCursor.foreground #ffffff
textLink.foreground #00cce6
titleBar.activeBackground #101517
titleBar.activeForeground #9decf5
titleBar.border #0a0d0f
titleBar.inactiveBackground #10151780
titleBar.inactiveForeground #5b6162
tree.indentGuidesStroke #077d9d99
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000078 #17b3de
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ccd8de —
variable.parameter.function.language.special.self.python #6fced9 —
storage.modifier.lifetime.rust #ccd8de —
support.function.std.rust #498cd3 —
entity.name.lifetime.rust #6fced9 —
variable.language.rust #17b3de —
support.constant.edge #ff4097 —
constant.other.character-class.regexp #17b3de —
keyword.operator.quantifier.regexp #68b8ff —
punctuation.definition.string.begin,punctuation.definition.string.end #f9db6a —
variable.parameter.function #ccd8de —
comment markup.link #5f626b —
markup.changed.diff #6fced9 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #498cd3 —
markup.inserted.diff #f9db6a —
markup.deleted.diff #17b3de —
meta.function.c,meta.function.cpp #17b3de —
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 #ccd8de —
punctuation.separator.key-value #ccd8de —
keyword.operator.expression.import #498cd3 —
support.constant.math #6fced9 —
support.constant.property.math #68b8ff —
variable.other.constant #6fced9 —
storage.type.annotation.java, storage.type.object.array.java #6fced9 —
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 #ccd8de —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #6fced9 —
keyword.operator.instanceof.java #ff4097 —
meta.definition.variable.name.java #17b3de —
keyword.operator.logical #b7cccf —
keyword.operator.bitwise #b7cccf —
keyword.operator.channel #b7cccf —
support.constant.property-value.scss,support.constant.property-value.css #68b8ff —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #b7cccf —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #68b8ff —
punctuation.separator.list.comma.css #ccd8de —
support.constant.color.w3c-standard-color-name.css #68b8ff —
support.type.vendored.property-name.css #b7cccf —
support.module.node,support.type.object.module,support.module.node #6fced9 —
entity.name.type.module #6fced9 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #17b3de —
support.constant.json #68b8ff —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ff4097 —
support.type.object.console #17b3de —
support.variable.property.process #68b8ff —
entity.name.function,support.function.console #498cd3 —
keyword.operator.misc.rust #ccd8de —
keyword.operator.sigil.rust #ff4097 —
keyword.operator.delete #ff4097 —
support.type.object.dom #b7cccf —
support.variable.dom,support.variable.property.dom #17b3de —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #b7cccf —
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 #ff4097 —
punctuation.separator.delimiter #ccd8de —
punctuation.separator.c,punctuation.separator.cpp #ff4097 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #b7cccf —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ff4097 —
variable.parameter.function.language.python #68b8ff —
support.type.python #b7cccf —
keyword.operator.logical.python #ff4097 —
variable.parameter.function.python #68b8ff —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ccd8de —
meta.function-call.generic.python #498cd3 —
constant.character.format.placeholder.other.python #68b8ff —
keyword.operator.assignment.compound #ff4097 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #b7cccf —
entity.name.namespace #6fced9 —
variable.language #6fced9 —
token.variable.parameter.java #ccd8de —
import.storage.java #6fced9 —
token.package.keyword #ff4097 —
entity.name.function, meta.require, support.function.any-method, variable.function #498cd3 —
entity.name.type.namespace #6fced9 —
support.class, entity.name.type.class #6fced9 —
entity.name.class.identifier.namespace.type #6fced9 —
entity.name.class, variable.other.class.js, variable.other.class.ts #6fced9 —
variable.other.class.php #17b3de —
control.elements, keyword.operator.less #68b8ff —
keyword.other.special-method #498cd3 —
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 #ff4097 —
token.storage.type.java #6fced9 —
support.type.property-name #ccd8de —
support.constant.property-value #ccd8de —
support.constant.font-name #68b8ff —
entity.other.inherited-class #6fced9 —
constant.other.symbol #b7cccf —
punctuation.definition.constant #68b8ff —
entity.other.attribute-name #68b8ff —
entity.other.attribute-name.id #498cd3 normal
entity.other.attribute-name.class.css #68b8ff normal
markup.heading punctuation.definition.heading, entity.name.section #498cd3 —
keyword.other.unit #17b3de —
markup.bold,todo.bold #68b8ff —
punctuation.definition.bold #6fced9 —
markup.italic, punctuation.definition.italic,todo.emphasis #ff4097 —
entity.name.section.markdown #17b3de —
punctuation.definition.heading.markdown #17b3de —
punctuation.definition.list.begin.markdown #17b3de —
markup.heading.setext #ccd8de —
punctuation.definition.bold.markdown #68b8ff —
markup.inline.raw.markdown #f9db6a —
markup.inline.raw.string.markdown #f9db6a —
punctuation.definition.list.markdown #17b3de —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #17b3de —
beginning.punctuation.definition.list.markdown #17b3de —
punctuation.definition.metadata.markdown #17b3de —
markup.underline.link.markdown,markup.underline.link.image.markdown #ff4097 —
string.other.link.title.markdown,string.other.link.description.markdown #498cd3 —
constant.character.escape #b7cccf —
punctuation.section.embedded, variable.interpolation #17b3de —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ff4097 —
invalid.illegal.bad-ampersand.html #ccd8de —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #17b3de —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #17b3de —
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 #f9db6a —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #b7cccf —
support.type.property-name.json #17b3de —
support.type.property-name.json punctuation #17b3de —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ff4097 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ff4097 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #6fced9 —
keyword.operator.error-control.php #ff4097 —
keyword.operator.type.php #ff4097 —
punctuation.section.array.begin.php #ccd8de —
punctuation.section.array.end.php #ccd8de —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #6fced9 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #498cd3 —
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 #ccd8de —
support.constant.core.rust #68b8ff —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #68b8ff —
entity.name.goto-label.php,support.other.php #498cd3 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #b7cccf —
keyword.operator.regexp.php #ff4097 —
keyword.operator.comparison.php #b7cccf —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ff4097 —
meta.function.decorator.python #498cd3 —
support.token.decorator.python,meta.function.decorator.identifier.python #b7cccf —
function.parameter #ccd8de —
function.parameter.ruby, function.parameter.cs #ccd8de —
constant.language.symbol.ruby #b7cccf —
inline-color-decoration rgb-value #68b8ff —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #6fced9 —
block.scope.end,block.scope.begin #ccd8de —
entity.name.variable.local.cs #17b3de —
token.error-token #f44747 —
token.debug-token #ff4097 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ff4097 —
meta.template.expression #ccd8de —
keyword.operator.module #ff4097 —
support.type.type.flowtype #498cd3 —
support.type.primitive #6fced9 —
meta.property.object #17b3de —
variable.parameter.function.js #17b3de —
keyword.other.template.begin #f9db6a —
keyword.other.template.end #f9db6a —
keyword.other.substitution.begin #f9db6a —
keyword.other.substitution.end #f9db6a —
keyword.operator.assignment #b7cccf —
keyword.operator.assignment.go #6fced9 —
keyword.operator.arithmetic.go, keyword.operator.address.go #ff4097 —
entity.name.package.go #6fced9 —
support.type.prelude.elm #b7cccf —
support.constant.elm #68b8ff —
punctuation.quasi.element #ff4097 —
constant.character.entity #17b3de —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #b7cccf —
entity.global.clojure #6fced9 —
meta.symbol.clojure #17b3de —
constant.keyword.clojure #b7cccf —
meta.arguments.coffee, variable.parameter.function.coffee #17b3de —
meta.scope.prerequisites.makefile #17b3de —
storage.modifier.import.groovy #6fced9 —
meta.method.groovy #498cd3 —
meta.definition.variable.name.groovy #17b3de —
meta.definition.class.inherited.classes.groovy #f9db6a —
support.variable.semantic.hlsl #6fced9 —
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 #ff4097 —
text.variable, text.bracketed #17b3de —
support.type.swift, support.type.vb.asp #6fced9 —
entity.name.function.xi #6fced9 —
entity.name.class.xi #b7cccf —
constant.character.character-class.regexp.xi #17b3de —
constant.regexp.xi #ff4097 —
keyword.control.xi #b7cccf —
beginning.punctuation.definition.quote.markdown.xi #f9db6a —
beginning.punctuation.definition.list.markdown.xi #5f626b —
constant.character.xi #498cd3 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #5f626b —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #6fced9 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #17b3de —
meta.brace.square #ccd8de —
comment, punctuation.definition.comment #5f626b italic
markup.quote.markdown #5f626b —
punctuation.definition.block.sequence.item.yaml #ccd8de —
constant.language.symbol.elixir #b7cccf —
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 } !` ;
}