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 #191919 activityBar.background #191919 activityBar.border #ffffff00 activityBar.foreground #6ec4ff activityBar.inactiveForeground #ff9797 activityBarBadge.background #282828 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 #00fff3 — variable.other.generic-type.haskell #ff7b7b — storage.type.haskell #6ec4ff — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Cinnamoroll | DARK THEME — Cinnamoroll Dark
activityBarBadge.foreground
#ffffff
badge.background #ff8888
badge.foreground #ffffff
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #6ec4ff
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #000000
button.background #6ec4ff
button.foreground #ffffff
button.hoverBackground #0062a3
button.secondaryBackground #5f6a79
button.secondaryForeground #ffffff
button.secondaryHoverBackground #4c5561
checkbox.background #ff7b7b
checkbox.border #00000000
checkbox.foreground #ffffff
debugExceptionWidget.background #f3f3f3
debugExceptionWidget.border #d5d5d5
debugToolBar.background #f3f3f3
debugToolBar.border #d5d5d5
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #ff7b7b
dropdown.border #00000000
dropdown.foreground #ffffff
editor.background #191919
editor.findMatchBackground #ab4545
editor.findMatchBorder #878c6e00
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #6666664d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #add6ff4d
editor.foreground #ff7b7b
editor.hoverHighlightBackground #ffffff26
editor.inactiveSelectionBackground #323e49
editor.lineHighlightBackground #ffffff0a
editor.lineHighlightBorder #32323230
editor.rangeHighlightBackground #fdff0033
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #383d43
editor.selectionHighlightBackground #b0b0b080
editor.selectionHighlightBorder #00000000
editor.wordHighlightBackground #57575740
editor.wordHighlightStrongBackground #8ed2ff40
editor.wordHighlightStrongBorder #ffbbbb00
editorBracketMatch.background #00ff001a
editorBracketMatch.border #ff7e7e
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #ffffff66
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #ff4433
editorGroup.border #e7e7e7
editorGroup.emptyBackground #191919
editorGroupHeader.border #ff000000
editorGroupHeader.tabsBackground #ff7b7b
editorGroupHeader.tabsBorder #ffffff00
editorGutter.addedBackground #81b88b
editorGutter.background #191919
editorGutter.commentRangeForeground #424242
editorGutter.deletedBackground #ca4b51
editorGutter.foldingControlForeground #424242
editorGutter.modifiedBackground #66afe0
editorHoverWidget.background #000000
editorHoverWidget.border #000000
editorHoverWidget.foreground #616161
editorIndentGuide.activeBackground #cf7272
editorIndentGuide.background #664040
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #797979
editorLink.activeForeground #a1a1ff
editorMarkerNavigation.background #494949
editorMarkerNavigationError.background #e51400
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #e9a700
editorOverviewRuler.background #191919
editorOverviewRuler.border #ffffff4d
editorRuler.foreground #6ec4ff
editorSuggestWidget.background #5e5e5e
editorSuggestWidget.border #c8c8c8
editorSuggestWidget.foreground #ffffff
editorSuggestWidget.highlightForeground #ff7777
editorSuggestWidget.selectedBackground #262626
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffd877
editorWhitespace.foreground #33333333
editorWidget.background #5e5e5e
editorWidget.foreground #c7c7c7
editorWidget.resizeBorder #c7c7c7
focusBorder #ffa1a1
foreground #ffffff
gitDecoration.addedResourceForeground #aeff00
gitDecoration.conflictingResourceForeground #bbbbff
gitDecoration.deletedResourceForeground #ff0000
gitDecoration.ignoredResourceForeground #8e8e90
gitDecoration.modifiedResourceForeground #ff6c00
gitDecoration.stageDeletedResourceForeground #ff0000
gitDecoration.stageModifiedResourceForeground #ff6c00
gitDecoration.submoduleResourceForeground #91c5ff
gitDecoration.untrackedResourceForeground #00ff00
icon.foreground #ffffff
input.background #ff7b7b
input.border #00000000
input.foreground #ffffff
input.placeholderForeground #ff7b7b
inputOption.activeBackground #0090f133
inputOption.activeBorder #007acc00
inputOption.activeForeground #000000
list.activeSelectionBackground #6ec4ff
list.activeSelectionForeground #000000
list.dropBackground #282828
list.focusBackground #6ec4ff
list.focusForeground #ffffff
list.highlightForeground #ffffff
list.hoverBackground #5e5e5e
list.hoverForeground #ffffff
list.inactiveSelectionBackground #626262
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #ff8181
listFilterWidget.noMatchesOutline #ffffff
listFilterWidget.outline #00000000
menu.background #191919
menu.border #00000085
menu.foreground #f0f0f0
menu.selectionBackground #6ec4ff
menu.selectionBorder #00000000
menu.selectionForeground #000000
menu.separatorBackground #888888
menubar.selectionBackground #0000001a
menubar.selectionBorder #ffffff
menubar.selectionForeground #ff7b7b
merge.commonContentBackground #E5E5E5
merge.commonHeaderBackground #BFBFBF
merge.currentContentBackground #DBF4EF
merge.currentHeaderBackground #A4E3D6
merge.incomingContentBackground #DBECFF
merge.incomingHeaderBackground #A6CFFF
minimap.background #191919
minimap.errorHighlight #ff4433
minimap.findMatchHighlight #ab4545
minimap.selectionHighlight #383d43
minimap.warningHighlight #ffd877
minimapGutter.addedBackground #81b88b
minimapGutter.deletedBackground #ca4b51
minimapGutter.modifiedBackground #66afe0
notificationCenter.border #d5d5d5
notificationCenterHeader.background #e7e7e7
notificationCenterHeader.foreground #616161
notifications.background #000000
notifications.border #e7e7e7
notifications.foreground #6ec4ff
notificationsErrorIcon.foreground #ff958b
notificationsInfoIcon.foreground #ffffff
notificationsWarningIcon.foreground #ffd05a
notificationToast.border #ff9393
panel.background #343434
panel.border #80808059
panelSection.border #ffffff00
panelTitle.activeBorder #42424200
panelTitle.activeForeground #60b3ec
panelTitle.inactiveForeground #babababf
peekView.border #007acc
peekViewEditor.background #303030
peekViewEditor.matchHighlightBackground #ffe10046
peekViewEditor.matchHighlightBorder #dbc417
peekViewEditorGutter.background #000000
peekViewResult.background #646464
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #646465
peekViewResult.matchHighlightBackground #ff914a
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #6c6c6c
peekViewTitle.background #000000
peekViewTitleDescription.foreground #ffffffe6
peekViewTitleLabel.foreground #868686
pickerGroup.border #cccedb
pickerGroup.foreground #0066bf
progressBar.background #cbcbcb
scrollbar.shadow #ffffff00
scrollbarSlider.activeBackground #00000099
scrollbarSlider.background #64646466
scrollbarSlider.hoverBackground #646464b3
selection.background #cfcfcf
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffffff
sideBar.background #343434
sideBar.border #ffffff00
sideBar.dropBackground #282828
sideBar.foreground #fbfbfb
sideBarSectionHeader.background #ffffff00
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #ff9797
sideBarTitle.foreground #6ec4ff
statusBar.background #191919
statusBar.border #ffffff00
statusBar.debuggingBackground #6d3939
statusBar.debuggingForeground #ffffff
statusBar.foreground #dbdbdb
statusBar.noFolderBackground #421e4b
statusBar.noFolderBorder #ff000000
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #96d8ff
statusBarItem.remoteForeground #000000
tab.activeBackground #6ec4ff
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #191919
tab.border #ffffff00
tab.hoverBackground #ffffff
tab.hoverBorder #ffffff00
tab.hoverForeground #000000
tab.inactiveBackground #191919
tab.inactiveForeground #ff9797
terminal.ansiBlack #000000
terminal.ansiBlue #0451a5
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #0451a5
terminal.ansiBrightCyan #0598bc
terminal.ansiBrightGreen #14ce14
terminal.ansiBrightMagenta #bc05bc
terminal.ansiBrightRed #cd3131
terminal.ansiBrightWhite #a5a5a5
terminal.ansiBrightYellow #b5ba00
terminal.ansiCyan #0598bc
terminal.ansiGreen #00bc00
terminal.ansiMagenta #bc05bc
terminal.ansiRed #cd3131
terminal.ansiWhite #555555
terminal.ansiYellow #949800
terminal.border #ffffff00
terminal.foreground #60b3ec
terminal.selectionBackground #ff717140
terminalCursor.background #61b4ff
terminalCursor.foreground #ffffff
textLink.foreground #006ab1
titleBar.activeBackground #191919
titleBar.activeForeground #cbcbcb
titleBar.border #00000000
titleBar.inactiveBackground #dddddd99
titleBar.inactiveForeground #ffffff99
tree.indentGuidesStroke #a9a9a9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000029 #00fff3
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ff7b7b —
variable.parameter.function.language.special.self.python #ffffff —
storage.modifier.lifetime.rust #ff7b7b —
support.function.std.rust #6ec4ff —
entity.name.lifetime.rust #ffffff —
variable.language.rust #00fff3 —
support.constant.edge #ff7b7b —
constant.other.character-class.regexp #00fff3 —
keyword.operator.quantifier.regexp #6ec4ff —
punctuation.definition.string.begin,punctuation.definition.string.end #ffed8b —
variable.parameter.function #ff7b7b —
comment markup.link #7f848e —
markup.changed.diff #ffffff —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #6ec4ff —
markup.inserted.diff #ffed8b —
markup.deleted.diff #00fff3 —
meta.function.c,meta.function.cpp #00fff3 —
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 #ff7b7b —
punctuation.separator.key-value #ff7b7b —
keyword.operator.expression.import #6ec4ff —
support.constant.math #ffffff —
support.constant.property.math #6ec4ff —
variable.other.constant #ffffff —
storage.type.annotation.java, storage.type.object.array.java #ffffff —
punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,punctuation.bracket.angle.java,punctuation.definition.annotation.java,meta.method.body.java #ff7b7b —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #ffffff —
keyword.operator.instanceof.java #ff7b7b —
meta.definition.variable.name.java #00fff3 —
keyword.operator.logical #6ec4ff —
keyword.operator.bitwise #6ec4ff —
keyword.operator.channel #6ec4ff —
support.constant.property-value.scss,support.constant.property-value.css #6ec4ff —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #6ec4ff —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #6ec4ff —
punctuation.separator.list.comma.css #ff7b7b —
support.constant.color.w3c-standard-color-name.css #6ec4ff —
support.type.vendored.property-name.css #6ec4ff —
support.module.node,support.type.object.module,support.module.node #ffffff —
entity.name.type.module #ffffff —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #00fff3 —
support.constant.json #6ec4ff —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #ff7b7b —
support.type.object.console #00fff3 —
support.variable.property.process #6ec4ff —
entity.name.function,support.function.console #6ec4ff —
keyword.operator.misc.rust #ff7b7b —
keyword.operator.sigil.rust #ff7b7b —
keyword.operator.delete #ff7b7b —
support.type.object.dom #6ec4ff —
support.variable.dom,support.variable.property.dom #00fff3 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #6ec4ff —
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 #ff7b7b —
punctuation.separator.delimiter #ff7b7b —
punctuation.separator.c,punctuation.separator.cpp #ff7b7b —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #6ec4ff —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #ff7b7b —
variable.parameter.function.language.python #6ec4ff —
support.type.python #6ec4ff —
keyword.operator.logical.python #ff7b7b —
variable.parameter.function.python #6ec4ff —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ff7b7b —
meta.function-call.generic.python #6ec4ff —
constant.character.format.placeholder.other.python #6ec4ff —
keyword.operator.assignment.compound #ff7b7b —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #6ec4ff —
entity.name.namespace #ffffff —
variable.language #ffffff —
token.variable.parameter.java #ff7b7b —
import.storage.java #ffffff —
token.package.keyword #ff7b7b —
entity.name.function, meta.require, support.function.any-method, variable.function #6ec4ff —
entity.name.type.namespace #ffffff —
support.class, entity.name.type.class #ffffff —
entity.name.class.identifier.namespace.type #ffffff —
entity.name.class, variable.other.class.js, variable.other.class.ts #ffffff —
variable.other.class.php #00fff3 —
control.elements, keyword.operator.less #6ec4ff —
keyword.other.special-method #6ec4ff —
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 #ff7b7b —
token.storage.type.java #ffffff —
support.type.property-name #ff7b7b —
support.constant.property-value #ff7b7b —
support.constant.font-name #6ec4ff —
entity.other.inherited-class #ffffff —
constant.other.symbol #6ec4ff —
punctuation.definition.constant #6ec4ff —
entity.other.attribute-name #6ec4ff —
entity.other.attribute-name.id #6ec4ff normal
entity.other.attribute-name.class.css #6ec4ff normal
markup.heading punctuation.definition.heading, entity.name.section #6ec4ff —
keyword.other.unit #00fff3 —
markup.bold,todo.bold #6ec4ff —
punctuation.definition.bold #ffffff —
markup.italic, punctuation.definition.italic,todo.emphasis #ff7b7b —
entity.name.section.markdown #00fff3 —
punctuation.definition.heading.markdown #00fff3 —
punctuation.definition.list.begin.markdown #00fff3 —
markup.heading.setext #ff7b7b —
punctuation.definition.bold.markdown #6ec4ff —
markup.inline.raw.markdown #ffed8b —
markup.inline.raw.string.markdown #ffed8b —
punctuation.definition.list.markdown #00fff3 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #00fff3 —
beginning.punctuation.definition.list.markdown #00fff3 —
punctuation.definition.metadata.markdown #00fff3 —
markup.underline.link.markdown,markup.underline.link.image.markdown #ff7b7b —
string.other.link.title.markdown,string.other.link.description.markdown #6ec4ff —
constant.character.escape #6ec4ff —
punctuation.section.embedded, variable.interpolation #00fff3 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #ff7b7b —
invalid.illegal.bad-ampersand.html #ff7b7b —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #00fff3 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #00fff3 —
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 #ffed8b —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #6ec4ff —
support.type.property-name.json #00fff3 —
support.type.property-name.json punctuation #00fff3 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #ff7b7b —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #ff7b7b —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #ffffff —
keyword.operator.error-control.php #ff7b7b —
keyword.operator.type.php #ff7b7b —
punctuation.section.array.begin.php #ff7b7b —
punctuation.section.array.end.php #ff7b7b —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #ffffff —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #6ec4ff —
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 #ff7b7b —
support.constant.core.rust #6ec4ff —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #6ec4ff —
entity.name.goto-label.php,support.other.php #6ec4ff —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #6ec4ff —
keyword.operator.regexp.php #ff7b7b —
keyword.operator.comparison.php #6ec4ff —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #ff7b7b —
meta.function.decorator.python #6ec4ff —
support.token.decorator.python,meta.function.decorator.identifier.python #6ec4ff —
function.parameter #ff7b7b —
function.parameter.ruby, function.parameter.cs #ff7b7b —
constant.language.symbol.ruby #6ec4ff —
inline-color-decoration rgb-value #6ec4ff —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #ffffff —
block.scope.end,block.scope.begin #ff7b7b —
entity.name.variable.local.cs #00fff3 —
token.error-token #f44747 —
token.debug-token #ff7b7b —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #ff7b7b —
meta.template.expression #ff7b7b —
keyword.operator.module #ff7b7b —
support.type.type.flowtype #6ec4ff —
support.type.primitive #ffffff —
meta.property.object #00fff3 —
variable.parameter.function.js #00fff3 —
keyword.other.template.begin #ffed8b —
keyword.other.template.end #ffed8b —
keyword.other.substitution.begin #ffed8b —
keyword.other.substitution.end #ffed8b —
keyword.operator.assignment #6ec4ff —
keyword.operator.assignment.go #ffffff —
keyword.operator.arithmetic.go, keyword.operator.address.go #ff7b7b —
entity.name.package.go #ffffff —
support.type.prelude.elm #6ec4ff —
support.constant.elm #6ec4ff —
punctuation.quasi.element #ff7b7b —
constant.character.entity #00fff3 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #6ec4ff —
entity.global.clojure #ffffff —
meta.symbol.clojure #00fff3 —
constant.keyword.clojure #6ec4ff —
meta.arguments.coffee, variable.parameter.function.coffee #00fff3 —
meta.scope.prerequisites.makefile #00fff3 —
storage.modifier.import.groovy #ffffff —
meta.method.groovy #6ec4ff —
meta.definition.variable.name.groovy #00fff3 —
meta.definition.class.inherited.classes.groovy #ffed8b —
support.variable.semantic.hlsl #ffffff —
support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, support.type.object.hlsl #ff7b7b —
text.variable, text.bracketed #00fff3 —
support.type.swift, support.type.vb.asp #ffffff —
entity.name.function.xi #ffffff —
entity.name.class.xi #6ec4ff —
constant.character.character-class.regexp.xi #00fff3 —
constant.regexp.xi #ff7b7b —
keyword.control.xi #6ec4ff —
beginning.punctuation.definition.quote.markdown.xi #ffed8b —
beginning.punctuation.definition.list.markdown.xi #7f848e —
constant.character.xi #6ec4ff —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #7f848e —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #ffffff —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #00fff3 —
meta.brace.square #ff7b7b —
comment, punctuation.definition.comment #7f848e italic
markup.quote.markdown #7f848e —
punctuation.definition.block.sequence.item.yaml #ff7b7b —
constant.language.symbol.elixir #6ec4ff —
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*
Cinnamoroll | DARK THEME | Coding Theme
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 } !` ;
}