Skip to main content
Home Theme VS Code Cyber2077 [valkonians theme] I found 2 colours i liked and made a random theme out of them
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 #ff00551e activityBar.background #050115 activityBar.border #1c1668 activityBar.foreground #ff0055 activityBar.inactiveForeground #6d0b2b activityBarBadge.background #2b1cea 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 #5a4eff — variable.other.generic-type.haskell #cb1bff — storage.type.haskell #f75dc2 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
Cyber2077 [valkonians theme] — Cyber2077 [personal theme]
activityBarBadge.foreground
#000807
badge.background #2b1cea
badge.foreground #000807
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #050115
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #ff0055
button.background #221a8d
button.foreground #ffffff
button.hoverBackground #27226b
button.secondaryBackground #1f004d
button.secondaryForeground #ffffff
button.secondaryHoverBackground #100032
checkbox.background #050115
checkbox.border #00000000
checkbox.foreground #ff0055
debugExceptionWidget.background #050115
debugExceptionWidget.border #474747
debugToolBar.background #050115
debugToolBar.border #474747
diffEditor.border #ff0055
diffEditor.insertedTextBackground #8408254c
diffEditor.insertedTextBorder #ffffff00
diffEditor.removedTextBackground #0d1d5c33
dropdown.background #050115
dropdown.border #00000000
dropdown.foreground #ff0055
editor.background #050115
editor.findMatchBackground #ff005562
editor.findMatchBorder #ff0055
editor.findMatchHighlightBackground #ff005562
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #18004b34
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #264f784d
editor.foreground #ff0055
editor.hoverHighlightBackground #ff5d7b40
editor.inactiveSelectionBackground #221a8d50
editor.lineHighlightBackground #ff005530
editor.lineHighlightBorder #ff000000
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #221a8d
editor.selectionHighlightBackground #221a8d8b
editor.selectionHighlightBorder #221a8d
editor.wordHighlightBackground #13006fb8
editor.wordHighlightBorder #ff010100
editor.wordHighlightStrongBackground #221a8d7e
editor.wordHighlightStrongBorder #ff000000
editorBracketMatch.background #0064001a
editorBracketMatch.border #88888800
editorCodeLens.foreground #999999
editorCursor.background #ffffff
editorCursor.foreground #ff0055
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #ff0055
editorGroup.border #444444
editorGroup.emptyBackground #050115
editorGroupHeader.border #221a8d
editorGroupHeader.tabsBackground #050115
editorGroupHeader.tabsBorder #221a8d
editorGutter.addedBackground #d52165
editorGutter.background #050115
editorGutter.commentRangeForeground #6d0b2b
editorGutter.deletedBackground #b40008
editorGutter.foldingControlForeground #6d0b2b
editorGutter.modifiedBackground #3832e0
editorHoverWidget.background #050115
editorHoverWidget.border #221a8d
editorHoverWidget.foreground #ff0055
editorIndentGuide.activeBackground1 #0f00d5
editorIndentGuide.background1 #090084
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #ff0055
editorLineNumber.foreground #6d0b2b
editorLink.activeForeground #908aea
editorMarkerNavigation.background #2d2d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #221a8d
editorSuggestWidget.background #050115
editorSuggestWidget.border #221a8d
editorSuggestWidget.foreground #ff0055
editorSuggestWidget.highlightForeground #2a1dd1
editorSuggestWidget.selectedBackground #221a8d2c
editorWarning.background #4042a900
editorWarning.border #ffffff00
editorWarning.foreground #5a5dff
editorWhitespace.foreground #e3e4e229
editorWidget.background #050115
editorWidget.foreground #ff0055
editorWidget.resizeBorder #221a8d
focusBorder #ff0055
foreground #ff0055
gitDecoration.addedResourceForeground #b26e85
gitDecoration.conflictingResourceForeground #9c9cbc
gitDecoration.deletedResourceForeground #ff0000
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #d1b9e2
gitDecoration.stageDeletedResourceForeground #8d39c7
gitDecoration.stageModifiedResourceForeground #e28dc1dd
gitDecoration.submoduleResourceForeground #8aa0c2
gitDecoration.untrackedResourceForeground #7374c9
icon.foreground #ff0055
input.background #050115
input.border #00000000
input.foreground #ff0055
input.placeholderForeground #8c87c9
inputOption.activeBackground #221a8d99
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #221a8d
list.activeSelectionForeground #bdbbff
list.dropBackground #1c16683a
list.focusBackground #0d084f
list.focusForeground #ff0055
list.highlightForeground #443ac4
list.hoverBackground #1c16683a
list.hoverForeground #3a2cee
list.inactiveSelectionBackground #1c16683a
list.inactiveSelectionForeground #3a2cee
listFilterWidget.background #6d0b2b
listFilterWidget.noMatchesOutline #0c009b
listFilterWidget.outline #00000000
menu.background #150f2c
menu.border #221a8d
menu.foreground #ff0055
menu.selectionBackground #221a8d
menu.selectionBorder #ff005500
menu.selectionForeground #ffffff
menu.separatorBackground #ff0055
menubar.selectionBackground #ff005554
menubar.selectionBorder #ff000000
menubar.selectionForeground #ffffff
merge.commonContentBackground #000c30
merge.commonHeaderBackground #10005e
merge.currentContentBackground #0b0341
merge.currentHeaderBackground #2e1377
merge.incomingContentBackground #3f0230
merge.incomingHeaderBackground #511342
minimap.background #050115
minimap.errorHighlight #ff0055
minimap.findMatchHighlight #ff005562
minimap.selectionHighlight #221a8d
minimap.warningHighlight #5a5dff
minimapGutter.addedBackground #d52165
minimapGutter.deletedBackground #b40008
minimapGutter.modifiedBackground #3832e0
notificationCenter.border #221a8d
notificationCenterHeader.background #0e0d25
notificationCenterHeader.foreground #ff0055
notifications.background #050115
notifications.border #221a8d
notifications.foreground #ff0055
notificationsErrorIcon.foreground #ff0055
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #5a5dff
notificationToast.border #221a8d
panel.background #050115
panel.border #1c1668
panelSection.border #1c1668
panelTitle.activeBorder #ff0055
panelTitle.activeForeground #ff0055
panelTitle.inactiveForeground #6d0b2b
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 #3f3f46
pickerGroup.foreground #221a8d
progressBar.background #221a8d
scrollbar.shadow #000000
scrollbarSlider.activeBackground #221a8d
scrollbarSlider.background #27226b
scrollbarSlider.hoverBackground #221a8d
selection.background #221a8d
settings.focusedRowBackground #ffffff07
settings.headerForeground #ff0055
sideBar.background #050115
sideBar.border #1c1668
sideBar.dropBackground #1c16683a
sideBar.foreground #ff0055
sideBarSectionHeader.background #0e0d25
sideBarSectionHeader.border #1c1668
sideBarSectionHeader.foreground #ff0055
sideBarTitle.foreground #ff0055
statusBar.background #1d000ae5
statusBar.border #ff0055
statusBar.debuggingBackground #0e0d25
statusBar.debuggingBorder #1c1668
statusBar.debuggingForeground #665aff
statusBar.foreground #ff0055
statusBar.noFolderBackground #440056
statusBar.noFolderBorder #d300ff
statusBar.noFolderForeground #d300ff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ff0055
statusBarItem.remoteBackground #ff0055
statusBarItem.remoteForeground #ffffff
tab.activeBackground #050115
tab.activeBorder #221a8d
tab.activeBorderTop #221a8d
tab.activeForeground #ff0055
tab.border #221a8d
tab.hoverBackground #0d052c
tab.hoverBorder #ff000000
tab.hoverForeground #ffffff
tab.inactiveBackground #000000
tab.inactiveForeground #6d0b2b
terminal.ansiBlack #000000
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #00ff40
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #ff0000
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #ffcb00
terminal.ansiCyan #11a8cd
terminal.ansiGreen #00c403
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #d10000
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #eea700
terminal.border #1c1668
terminal.foreground #ff0055
terminal.selectionBackground #14005a38
terminalCursor.background #221a8d
terminalCursor.foreground #ffffff
textLink.foreground #675cff
titleBar.activeBackground #050115
titleBar.activeForeground #ff0055
titleBar.border #1c1668
titleBar.inactiveBackground #211f2a
titleBar.inactiveForeground #993959
tree.indentGuidesStroke #1a183f
walkThrough.embeddedEditorBackground #00000050
widget.shadow #5c00ff5c #5a4eff
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ff0055 —
variable.parameter.function.language.special.self.python #54afff —
storage.modifier.lifetime.rust #ff0055 —
support.function.std.rust #ef617c —
entity.name.lifetime.rust #54afff —
variable.language.rust #5a4eff —
support.constant.edge #cb1bff —
constant.other.character-class.regexp #5a4eff —
keyword.operator.quantifier.regexp #f75dc2 —
punctuation.definition.string.begin,punctuation.definition.string.end #ffe7f8 —
variable.parameter.function #ff0055 —
comment markup.link #a3a3a3 —
markup.changed.diff #54afff —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #ef617c —
markup.inserted.diff #ffe7f8 —
markup.deleted.diff #5a4eff —
meta.function.c,meta.function.cpp #5a4eff —
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 #ff0055 —
punctuation.separator.key-value #ff0055 —
keyword.operator.expression.import #ef617c —
support.constant.math #54afff —
support.constant.property.math #f75dc2 —
variable.other.constant #54afff —
storage.type.annotation.java, storage.type.object.array.java #54afff —
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 #ff0055 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #54afff —
keyword.operator.instanceof.java #cb1bff —
meta.definition.variable.name.java #5a4eff —
keyword.operator.logical #568ac2 —
keyword.operator.bitwise #568ac2 —
keyword.operator.channel #568ac2 —
support.constant.property-value.scss,support.constant.property-value.css #f75dc2 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #568ac2 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #f75dc2 —
punctuation.separator.list.comma.css #ff0055 —
support.constant.color.w3c-standard-color-name.css #f75dc2 —
support.type.vendored.property-name.css #568ac2 —
support.module.node,support.type.object.module,support.module.node #54afff —
entity.name.type.module #54afff —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #5a4eff —
support.constant.json #f75dc2 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #cb1bff —
support.type.object.console #5a4eff —
support.variable.property.process #f75dc2 —
entity.name.function,support.function.console #ef617c —
keyword.operator.misc.rust #ff0055 —
keyword.operator.sigil.rust #cb1bff —
keyword.operator.delete #cb1bff —
support.type.object.dom #568ac2 —
support.variable.dom,support.variable.property.dom #5a4eff —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #568ac2 —
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 #cb1bff —
punctuation.separator.delimiter #ff0055 —
punctuation.separator.c,punctuation.separator.cpp #cb1bff —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #568ac2 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #cb1bff —
variable.parameter.function.language.python #f75dc2 —
support.type.python #568ac2 —
keyword.operator.logical.python #cb1bff —
variable.parameter.function.python #f75dc2 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #ff0055 —
meta.function-call.generic.python #ef617c —
constant.character.format.placeholder.other.python #f75dc2 —
keyword.operator.assignment.compound #cb1bff —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #568ac2 —
entity.name.namespace #54afff —
variable.language #54afff —
token.variable.parameter.java #ff0055 —
import.storage.java #54afff —
token.package.keyword #cb1bff —
entity.name.function, meta.require, support.function.any-method, variable.function #ef617c —
entity.name.type.namespace #54afff —
support.class, entity.name.type.class #54afff —
entity.name.class.identifier.namespace.type #54afff —
entity.name.class, variable.other.class.js, variable.other.class.ts #54afff —
variable.other.class.php #5a4eff —
control.elements, keyword.operator.less #f75dc2 —
keyword.other.special-method #ef617c —
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 #cb1bff —
token.storage.type.java #54afff —
support.type.property-name #ff0055 —
support.constant.property-value #ff0055 —
support.constant.font-name #f75dc2 —
entity.other.inherited-class #54afff —
constant.other.symbol #568ac2 —
punctuation.definition.constant #f75dc2 —
entity.other.attribute-name #f75dc2 —
entity.other.attribute-name.id #ef617c
entity.other.attribute-name.class.css #f75dc2
markup.heading punctuation.definition.heading, entity.name.section #ef617c —
keyword.other.unit #5a4eff —
markup.bold,todo.bold #f75dc2 —
punctuation.definition.bold #54afff —
markup.italic, punctuation.definition.italic,todo.emphasis #cb1bff —
entity.name.section.markdown #5a4eff —
punctuation.definition.heading.markdown #5a4eff —
punctuation.definition.list.begin.markdown #5a4eff —
markup.heading.setext #ff0055 —
punctuation.definition.bold.markdown #f75dc2 —
markup.inline.raw.markdown #ffe7f8 —
markup.inline.raw.string.markdown #ffe7f8 —
punctuation.definition.list.markdown #5a4eff —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #5a4eff —
beginning.punctuation.definition.list.markdown #5a4eff —
punctuation.definition.metadata.markdown #5a4eff —
markup.underline.link.markdown,markup.underline.link.image.markdown #cb1bff —
string.other.link.title.markdown,string.other.link.description.markdown #ef617c —
constant.character.escape #568ac2 —
punctuation.section.embedded, variable.interpolation #5a4eff —
punctuation.section.embedded.begin,punctuation.section.embedded.end #cb1bff —
invalid.illegal.bad-ampersand.html #ff0055 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #5a4eff —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #5a4eff —
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 #ffe7f8 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #568ac2 —
support.type.property-name.json #5a4eff —
support.type.property-name.json punctuation #5a4eff —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #cb1bff —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #cb1bff —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #54afff —
keyword.operator.error-control.php #cb1bff —
keyword.operator.type.php #cb1bff —
punctuation.section.array.begin.php #ff0055 —
punctuation.section.array.end.php #ff0055 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #54afff —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #ef617c —
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 #ff0055 —
support.constant.core.rust #f75dc2 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #f75dc2 —
entity.name.goto-label.php,support.other.php #ef617c —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #568ac2 —
keyword.operator.regexp.php #cb1bff —
keyword.operator.comparison.php #568ac2 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #cb1bff —
meta.function.decorator.python #ef617c —
support.token.decorator.python,meta.function.decorator.identifier.python #568ac2 —
function.parameter #ff0055 —
function.parameter.ruby, function.parameter.cs #ff0055 —
constant.language.symbol.ruby #568ac2 —
inline-color-decoration rgb-value #f75dc2 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #54afff —
block.scope.end,block.scope.begin #ff0055 —
entity.name.variable.local.cs #5a4eff —
token.error-token #f44747 —
token.debug-token #cb1bff —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #cb1bff —
meta.template.expression #ff0055 —
keyword.operator.module #cb1bff —
support.type.type.flowtype #ef617c —
support.type.primitive #54afff —
meta.property.object #5a4eff —
variable.parameter.function.js #5a4eff —
keyword.other.template.begin #ffe7f8 —
keyword.other.template.end #ffe7f8 —
keyword.other.substitution.begin #ffe7f8 —
keyword.other.substitution.end #ffe7f8 —
keyword.operator.assignment #568ac2 —
keyword.operator.assignment.go #54afff —
keyword.operator.arithmetic.go, keyword.operator.address.go #cb1bff —
entity.name.package.go #54afff —
support.type.prelude.elm #568ac2 —
support.constant.elm #f75dc2 —
punctuation.quasi.element #cb1bff —
constant.character.entity #5a4eff —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #568ac2 —
entity.global.clojure #54afff —
meta.symbol.clojure #5a4eff —
constant.keyword.clojure #568ac2 —
meta.arguments.coffee, variable.parameter.function.coffee #5a4eff —
meta.scope.prerequisites.makefile #5a4eff —
storage.modifier.import.groovy #54afff —
meta.method.groovy #ef617c —
meta.definition.variable.name.groovy #5a4eff —
meta.definition.class.inherited.classes.groovy #ffe7f8 —
support.variable.semantic.hlsl #54afff —
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 #cb1bff —
text.variable, text.bracketed #5a4eff —
support.type.swift, support.type.vb.asp #54afff —
entity.name.function.xi #54afff —
entity.name.class.xi #568ac2 —
constant.character.character-class.regexp.xi #5a4eff —
constant.regexp.xi #cb1bff —
keyword.control.xi #568ac2 —
beginning.punctuation.definition.quote.markdown.xi #ffe7f8 —
beginning.punctuation.definition.list.markdown.xi #a3a3a3 —
constant.character.xi #ef617c —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #a3a3a3 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #54afff —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #5a4eff —
meta.brace.square #ff0055 —
comment, punctuation.definition.comment #a3a3a3 italic
markup.quote.markdown #a3a3a3 —
punctuation.definition.block.sequence.item.yaml #ff0055 —
constant.language.symbol.elixir #568ac2 —
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*
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 } !` ;
}
Cyber2077 [valkonians theme] | Coding Theme