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 #ffffff activityBar.background #0e0e15 activityBar.border #0e0e15 activityBar.foreground #514f9f activityBar.inactiveForeground #514f9f activityBarBadge.background #7873ff 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 #eb00ff — variable.other.generic-type.haskell #11ffde — storage.type.haskell #00ff58 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
luanslasla-theme — Luan Sla Sla
activityBarBadge.foreground
#ffffff
badge.background #ff0000
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #0e0e15
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #ffffffcc
button.background #7d7dc7
button.foreground #ffffff
button.hoverBackground #5d5da7
button.secondaryBackground #3a3d41
button.secondaryForeground #ffffff
button.secondaryHoverBackground #2c2f32
checkbox.background #101215
checkbox.border #ff000000
checkbox.foreground #b4b4cf
debugExceptionWidget.background #ffffff
debugExceptionWidget.border #0c2ee6
debugToolBar.background #ffffff
debugToolBar.border #0c2ee6
diffEditor.border #fbfbfb00
diffEditor.insertedTextBackground #1b1c21
diffEditor.insertedTextBorder #be2a2a00
diffEditor.removedTextBackground #ff0000b9
diffEditor.removedTextBorder #ffcece00
dropdown.background #101215
dropdown.border #ff000000
dropdown.foreground #b4b4cf
editor.background #0e0e15
editor.findMatchBackground #aaaeb4
editor.findMatchBorder #4f4ae8
editor.findMatchHighlightBackground #17186f9f
editor.findMatchHighlightBorder #d9333300
editor.findRangeHighlightBackground #01102470
editor.findRangeHighlightBorder #201d4f00
editor.foldBackground #02020d
editor.foreground #ffffff
editor.hoverHighlightBackground #c7e3fffd
editor.inactiveSelectionBackground #2c0e587c
editor.lineHighlightBackground #17182ad1
editor.lineHighlightBorder #84838300
editor.rangeHighlightBackground #d9d7d7
editor.rangeHighlightBorder #21131300
editor.selectionBackground #000002
editor.selectionHighlightBackground #c1cacb
editor.selectionHighlightBorder #646479
editor.wordHighlightBackground #e5effb
editor.wordHighlightBorder #11000000
editor.wordHighlightStrongBackground #272168c1
editor.wordHighlightStrongBorder #321b1b00
editorBracketMatch.background #18b0c9cb
editorBracketMatch.border #c70f0f00
editorCodeLens.foreground #8d5dad
editorCursor.background #00ffe7
editorCursor.foreground #b5b9d9
editorError.background #eeeeee00
editorError.border #00ee3000
editorError.foreground #b40e8a
editorGroup.border #ff424200
editorGroup.emptyBackground #0e0e15
editorGroupHeader.border #0e0e15
editorGroupHeader.tabsBackground #ffffff
editorGroupHeader.tabsBorder #ffffff
editorGutter.addedBackground #9864b0
editorGutter.background #0e0e15
editorGutter.commentRangeForeground #29055e
editorGutter.deletedBackground #4f02d7
editorGutter.foldingControlForeground #29055e
editorGutter.modifiedBackground #4336e6
editorHoverWidget.background #c7c7ff
editorHoverWidget.border #ff000000
editorHoverWidget.foreground #2f1ac0
editorIndentGuide.activeBackground #514f9f
editorIndentGuide.background #514f9f
editorInfo.background #4cbaff0a
editorInfo.border #bf444400
editorInfo.foreground #ffb300
editorLineNumber.activeForeground #2e30ad
editorLineNumber.foreground #7b6de0
editorLink.activeForeground #ff009b
editorMarkerNavigation.background #090911
editorMarkerNavigationError.background #6b35cb
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #60309b
editorOverviewRuler.background #ffffff
editorOverviewRuler.border #1e1b3400
editorRuler.foreground #232334
editorSuggestWidget.background #252526
editorSuggestWidget.border #454545
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #0097fb
editorSuggestWidget.selectedBackground #062f4a
editorWarning.background #00000000
editorWarning.border #7b6e6e
editorWarning.foreground #f20022
editorWhitespace.foreground #00fff3
editorWidget.background #13131f
editorWidget.foreground #ffffff
editorWidget.resizeBorder #ffffff
focusBorder #06090a00
foreground #7284e4
gitDecoration.addedResourceForeground #34cb50
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 #7284e4
input.background #101215
input.border #ff000000
input.foreground #b4b4cf
input.placeholderForeground #b4b4cf
inputOption.activeBackground #7d7dc7
inputOption.activeBorder #23517100
inputOption.activeForeground #ffffff
list.activeSelectionBackground #222230
list.activeSelectionForeground #ffffff
list.dropBackground #cacaff
list.focusBackground #000000
list.focusForeground #ffffff
list.highlightForeground #6e6eff
list.hoverBackground #0e0e15
list.hoverForeground #ffffff
list.inactiveSelectionBackground #0e0e15
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #d7cac4
listFilterWidget.noMatchesOutline #000000
listFilterWidget.outline #ffffff00
menu.background #0a0a0a
menu.border #ffffff00
menu.foreground #7d7dc7
menu.selectionBackground #7d7dc7
menu.selectionBorder #ffffff00
menu.selectionForeground #e6e2ee
menu.separatorBackground #3030b6
menubar.selectionBackground #323254
menubar.selectionBorder #0e0e15
menubar.selectionForeground #b4b4cf
merge.commonContentBackground #343434
merge.commonHeaderBackground #1ffd17
merge.currentContentBackground #0e1513
merge.currentHeaderBackground #0093ff
merge.incomingContentBackground #213041
merge.incomingHeaderBackground #0a1421
minimap.background #0e0e15
minimap.errorHighlight #b40e8a
minimap.findMatchHighlight #aaaeb4
minimap.selectionHighlight #000002
minimap.warningHighlight #f20022
minimapGutter.addedBackground #9864b0
minimapGutter.deletedBackground #4f02d7
minimapGutter.modifiedBackground #4336e6
notificationCenter.border #0e0e15
notificationCenterHeader.background #0e0e15
notificationCenterHeader.foreground #e2e2ea
notifications.background #ea0020
notifications.border #0e0e15
notifications.foreground #ffffff
notificationsErrorIcon.foreground #e2e2ea
notificationsInfoIcon.foreground #e2e2ea
notificationsWarningIcon.foreground #e2e2ea
notificationToast.border #ffffff00
panel.background #0e0e15
panel.border #7d7dc7
panelSection.border #7d7dc7
panelTitle.activeBorder #7041f2
panelTitle.activeForeground #7041f2
panelTitle.inactiveForeground #636390
peekView.border #3c64ee00
peekViewEditor.background #000000
peekViewEditor.matchHighlightBackground #2c152706
peekViewEditor.matchHighlightBorder #d7d7d7
peekViewEditorGutter.background #ffffff
peekViewResult.background #111111
peekViewResult.fileForeground #c7c7cf
peekViewResult.lineForeground #516aee
peekViewResult.matchHighlightBackground #4747474d
peekViewResult.selectionBackground #15385c33
peekViewResult.selectionForeground #1cfff4
peekViewTitle.background #572da1
peekViewTitleDescription.foreground #ffffffb3
peekViewTitleLabel.foreground #bababa
pickerGroup.border #ffffff00
pickerGroup.foreground #fb0527
progressBar.background #a90038
scrollbar.shadow #16191d
scrollbarSlider.activeBackground #252534
scrollbarSlider.background #0e0e15
scrollbarSlider.hoverBackground #0e0e15
selection.background #545c62
settings.focusedRowBackground #ffffff07
settings.headerForeground #7284e4
sideBar.background #ffffff
sideBar.border #0e0e15
sideBar.dropBackground #cacaff
sideBar.foreground #0e0e15
sideBarSectionHeader.background #0e0e15
sideBarSectionHeader.border #0e0e15
sideBarSectionHeader.foreground #ffffff
sideBarTitle.foreground #0e0e15
statusBar.background #0e0e15
statusBar.border #0e0e15
statusBar.debuggingBackground #0e0e15
statusBar.debuggingBorder #0e0e15
statusBar.debuggingForeground #666677
statusBar.foreground #ffffff
statusBar.noFolderBackground #0e0e15
statusBar.noFolderBorder #0e0e15
statusBar.noFolderForeground #666677
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #1c1b21
statusBarItem.remoteBackground #35354f
statusBarItem.remoteForeground #ffffff
tab.activeBackground #0e0e15
tab.activeBorder #0e0e15
tab.activeBorderTop #0e0e15
tab.activeForeground #ffffff
tab.border #39399b
tab.hoverBackground #171721
tab.hoverBorder #0e0e15
tab.hoverForeground #ffffff
tab.inactiveBackground #ffffff
tab.inactiveForeground #0e0e15
terminal.ansiBlack #000000
terminal.ansiBlue #0096e0
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #bababa
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #14c905
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #ff1111
terminal.ansiWhite #ffffff
terminal.ansiYellow #e5e510
terminal.border #7d7dc7
terminal.foreground #7041f2
terminal.selectionBackground #0e0e15
terminalCursor.background #80ff00
terminalCursor.foreground #7873ff
textLink.foreground #7d7dc7
titleBar.activeBackground #0e0e15
titleBar.activeForeground #b4b4cf
titleBar.border #ffffff00
titleBar.inactiveBackground #0e0e15
titleBar.inactiveForeground #b4b4cf
tree.indentGuidesStroke #0e0e15
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0e0e15 #eb00ff
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff —
variable.parameter.function.language.special.self.python #5e4fff —
storage.modifier.lifetime.rust #ffffff —
support.function.std.rust #fb9b05 —
entity.name.lifetime.rust #5e4fff —
variable.language.rust #eb00ff —
support.constant.edge #11ffde —
constant.other.character-class.regexp #eb00ff —
keyword.operator.quantifier.regexp #00ff58 —
punctuation.definition.string.begin,punctuation.definition.string.end #6bff00 —
variable.parameter.function #ffffff —
comment markup.link #ff0048 —
markup.changed.diff #5e4fff —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #fb9b05 —
markup.inserted.diff #6bff00 —
markup.deleted.diff #eb00ff —
meta.function.c,meta.function.cpp #eb00ff —
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 #fb9b05 —
support.constant.math #5e4fff —
support.constant.property.math #00ff58 —
variable.other.constant #5e4fff —
storage.type.annotation.java, storage.type.object.array.java #5e4fff —
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 #5e4fff —
keyword.operator.instanceof.java #11ffde —
meta.definition.variable.name.java #eb00ff —
keyword.operator.logical #3340ff —
keyword.operator.bitwise #3340ff —
keyword.operator.channel #3340ff —
support.constant.property-value.scss,support.constant.property-value.css #00ff58 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #3340ff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #00ff58 —
punctuation.separator.list.comma.css #ffffff —
support.constant.color.w3c-standard-color-name.css #00ff58 —
support.type.vendored.property-name.css #3340ff —
support.module.node,support.type.object.module,support.module.node #5e4fff —
entity.name.type.module #5e4fff —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #eb00ff —
support.constant.json #00ff58 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #11ffde —
support.type.object.console #eb00ff —
support.variable.property.process #00ff58 —
entity.name.function,support.function.console #fb9b05 —
keyword.operator.misc.rust #ffffff —
keyword.operator.sigil.rust #11ffde —
keyword.operator.delete #11ffde —
support.type.object.dom #3340ff —
support.variable.dom,support.variable.property.dom #eb00ff —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #3340ff —
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 #11ffde —
punctuation.separator.delimiter #ffffff —
punctuation.separator.c,punctuation.separator.cpp #11ffde —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #3340ff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #11ffde —
variable.parameter.function.language.python #00ff58 —
support.type.python #3340ff —
keyword.operator.logical.python #11ffde —
variable.parameter.function.python #00ff58 —
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 #fb9b05 —
constant.character.format.placeholder.other.python #00ff58 —
keyword.operator.assignment.compound #11ffde —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #3340ff —
entity.name.namespace #5e4fff —
variable.language #5e4fff —
token.variable.parameter.java #ffffff —
import.storage.java #5e4fff —
token.package.keyword #11ffde —
entity.name.function, meta.require, support.function.any-method, variable.function #fb9b05 —
entity.name.type.namespace #5e4fff —
support.class, entity.name.type.class #5e4fff —
entity.name.class.identifier.namespace.type #5e4fff —
entity.name.class, variable.other.class.js, variable.other.class.ts #5e4fff —
variable.other.class.php #eb00ff —
control.elements, keyword.operator.less #00ff58 —
keyword.other.special-method #fb9b05 —
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 #11ffde —
token.storage.type.java #5e4fff —
support.type.property-name #ffffff —
support.constant.property-value #ffffff —
support.constant.font-name #00ff58 —
entity.other.inherited-class #5e4fff —
constant.other.symbol #3340ff —
punctuation.definition.constant #00ff58 —
entity.other.attribute-name #00ff58 —
entity.other.attribute-name.id #fb9b05 normal
entity.other.attribute-name.class.css #00ff58 normal
markup.heading punctuation.definition.heading, entity.name.section #fb9b05 —
keyword.other.unit #eb00ff —
markup.bold,todo.bold #00ff58 —
punctuation.definition.bold #5e4fff —
markup.italic, punctuation.definition.italic,todo.emphasis #11ffde —
entity.name.section.markdown #eb00ff —
punctuation.definition.heading.markdown #eb00ff —
punctuation.definition.list.begin.markdown #eb00ff —
markup.heading.setext #ffffff —
punctuation.definition.bold.markdown #00ff58 —
markup.inline.raw.markdown #6bff00 —
markup.inline.raw.string.markdown #6bff00 —
punctuation.definition.list.markdown #eb00ff —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #eb00ff —
beginning.punctuation.definition.list.markdown #eb00ff —
punctuation.definition.metadata.markdown #eb00ff —
markup.underline.link.markdown,markup.underline.link.image.markdown #11ffde —
string.other.link.title.markdown,string.other.link.description.markdown #fb9b05 —
constant.character.escape #3340ff —
punctuation.section.embedded, variable.interpolation #eb00ff —
punctuation.section.embedded.begin,punctuation.section.embedded.end #11ffde —
invalid.illegal.bad-ampersand.html #ffffff —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #eb00ff —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #eb00ff —
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 #3340ff —
support.type.property-name.json #eb00ff —
support.type.property-name.json punctuation #eb00ff —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #11ffde —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #11ffde —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #5e4fff —
keyword.operator.error-control.php #11ffde —
keyword.operator.type.php #11ffde —
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 #5e4fff —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #fb9b05 —
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 #00ff58 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #00ff58 —
entity.name.goto-label.php,support.other.php #fb9b05 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #3340ff —
keyword.operator.regexp.php #11ffde —
keyword.operator.comparison.php #3340ff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #11ffde —
meta.function.decorator.python #fb9b05 —
support.token.decorator.python,meta.function.decorator.identifier.python #3340ff —
function.parameter #ffffff —
function.parameter.ruby, function.parameter.cs #ffffff —
constant.language.symbol.ruby #3340ff —
inline-color-decoration rgb-value #00ff58 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #5e4fff —
block.scope.end,block.scope.begin #ffffff —
entity.name.variable.local.cs #eb00ff —
token.error-token #f44747 —
token.debug-token #11ffde —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #11ffde —
meta.template.expression #ffffff —
keyword.operator.module #11ffde —
support.type.type.flowtype #fb9b05 —
support.type.primitive #5e4fff —
meta.property.object #eb00ff —
variable.parameter.function.js #eb00ff —
keyword.other.template.begin #6bff00 —
keyword.other.template.end #6bff00 —
keyword.other.substitution.begin #6bff00 —
keyword.other.substitution.end #6bff00 —
keyword.operator.assignment #3340ff —
keyword.operator.assignment.go #5e4fff —
keyword.operator.arithmetic.go, keyword.operator.address.go #11ffde —
entity.name.package.go #5e4fff —
support.type.prelude.elm #3340ff —
support.constant.elm #00ff58 —
punctuation.quasi.element #11ffde —
constant.character.entity #eb00ff —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #3340ff —
entity.global.clojure #5e4fff —
meta.symbol.clojure #eb00ff —
constant.keyword.clojure #3340ff —
meta.arguments.coffee, variable.parameter.function.coffee #eb00ff —
meta.scope.prerequisites.makefile #eb00ff —
storage.modifier.import.groovy #5e4fff —
meta.method.groovy #fb9b05 —
meta.definition.variable.name.groovy #eb00ff —
meta.definition.class.inherited.classes.groovy #6bff00 —
support.variable.semantic.hlsl #5e4fff —
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 #11ffde —
text.variable, text.bracketed #eb00ff —
support.type.swift, support.type.vb.asp #5e4fff —
entity.name.function.xi #5e4fff —
entity.name.class.xi #3340ff —
constant.character.character-class.regexp.xi #eb00ff —
constant.regexp.xi #11ffde —
keyword.control.xi #3340ff —
beginning.punctuation.definition.quote.markdown.xi #6bff00 —
beginning.punctuation.definition.list.markdown.xi #ff0048 —
constant.character.xi #fb9b05 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #ff0048 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #5e4fff —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #eb00ff —
meta.brace.square #ffffff —
comment, punctuation.definition.comment #ff0048 italic
markup.quote.markdown #ff0048 —
punctuation.definition.block.sequence.item.yaml #ffffff —
constant.language.symbol.elixir #3340ff —
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...
~/my-project
main*
luanslasla-theme | Coding Theme Button.tsx
31
$
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 } !` ;
}