Skip to main content
Home Theme VS Code LookiFy - Dark & Light Themes LookiFy is a stylish and elegant VS Code theme extension that brings a sleek dark mode and a bright light mode for a polished coding experience. Enhance your workflow with beautifully crafted themes designed for both comfort and clarity.
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 #3C91E666 activityBar.activeBorder #3C91E6 activityBar.background #252935 activityBar.border #252935 activityBar.dropBackground #A4B9C940 activityBar.foreground #A4B9C9 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle comment, punctuation.definition.comment, punctuation.definition.tag, comment.block.documentation punctuation.definition.bracket, source.ocaml comment constant.regexp meta.separator, markup.other.anchor support.constant, markup.fenced_code, markup.fenced_code punctuation.definition, punctuation.definition.heading, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.strikethrough.markdown #dcdcdc — constant.character, constant.escape, text.html.markdown, punctuation.definition.list_item, keyword.begin.tag.ejs, constant.name.attribute.tag.pug, source.clojure meta.symbol, constant.other.description.jsdoc, keyword.other.array.phpdoc.php, keyword.operator.other.powershell, meta.link.inline punctuation.definition.string, source.sql, source meta.brace, source punctuation, text.html punctuation, markup meta punctuation.definition, meta.bracket.julia, meta.array.julia, entity.name.footnote, source.ocaml punctuation.definition.tag, source.ocaml entity.name.filename, source.reason entity.name.filename, entity.other.attribute-name strong, binding.fsharp keyword.symbol.fsharp, entity.name.record.field.elm, entity.name.record.field.accessor.elm, storage.modifier.array.bracket, source.css entity.other, meta.attribute-selector punctuation.definition.entity, markup.other.anchor string, punctuation.separator, punctuation.section, punctuation.terminator #becfda —
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
LookiFy - Dark & Light Themes — LookiFy Dark mode LookiFy - Dark & Light Themes | Coding Theme
activityBar.inactiveForeground
#A4B9C977
activityBarBadge.background #3C91E6
activityBarBadge.foreground #252935
badge.background #3C91E6
badge.foreground #F4F6F9
breadcrumb.activeSelectionForeground #FFFFFF
breadcrumb.background #252935
breadcrumb.focusForeground #FFFFFF
breadcrumb.foreground #A4B9C977
breadcrumbPicker.background #2A2E3B
button.background #3C91E6
button.foreground #F4F6F9
button.hoverBackground #5BAFFF
debugExceptionWidget.background #252935
debugExceptionWidget.border #FF6F61
debugToolBar.background #1C1F27
debugToolBar.border #3C91E6
descriptionForeground #A4B9C9
dropdown.background #2A2E3B
dropdown.border #3C91E6
dropdown.foreground #BCC7D1
editor.background #1B1E28
editor.findMatchBackground #60BF6A11
editor.findMatchHighlightBackground #60BF6A79
editor.findRangeHighlightBackground #61D1B222
editor.foldBackground #222633
editor.foreground #E1E3E6
editor.hoverHighlightBackground #3C91E633
editor.inactiveSelectionBackground #3C91E644
editor.lineHighlightBackground #505b7d83
editor.minimap.autohide
editor.minimap.scale 2
editor.rangeHighlightBackground #61D1B233
editor.selectionBackground #3C91E688
editor.selectionHighlightBackground #3C91E622
editor.wordHighlightBackground #FFD58044
editor.wordHighlightStrongBackground #61D1B244
editorBracketMatch.background #3C91E655
editorBracketMatch.border #3C91E6
editorCodeLens.foreground #5B788B
editorCursor.foreground #FFD580
editorError.border #3C91E6
editorError.foreground #FF6F61
editorGroup.border #3C91E6
editorGroup.dropBackground #3C91E633
editorGroup.emptyBackground #2F3A47
editorGroupHeader.noTabsBackground #2A2E3B
editorGroupHeader.tabsBackground #2A2E3B
editorGroupHeader.tabsBorder #3c91e693
editorGutter.addedBackground #61D1B2
editorGutter.background #1B1E28
editorGutter.deletedBackground #FF6F61
editorGutter.modifiedBackground #FFD580
editorHint.border #61D1B2
editorHint.foreground #61D1B2
editorHoverWidget.background #252935
editorHoverWidget.border #3C91E6
editorIndentGuide.activeBackground #61D1B2
editorIndentGuide.background #4E6578
editorInfo.border #3C91E6
editorInfo.foreground #3C91E6
editorLineNumber.activeForeground #0d558c
editorLineNumber.foreground #4B6075
editorLink.activeForeground #3C91E6
editorMarkerNavigation.background #2A2E3B
editorMarkerNavigationError.background #FF6F61
editorMarkerNavigationInfo.background #3C91E6
editorMarkerNavigationWarning.background #E69533
editorOverviewRuler.addedForeground #61D1B288
editorOverviewRuler.border #1B1E28
editorOverviewRuler.commonContentForeground #FFD580
editorOverviewRuler.currentContentForeground #3C91E6
editorOverviewRuler.deletedForeground #FF6F6188
editorOverviewRuler.errorForeground #FF6F61
editorOverviewRuler.incomingContentForeground #61D1B2
editorOverviewRuler.infoForeground #3C91E6
editorOverviewRuler.modifiedForeground #FFD58088
editorOverviewRuler.warningForeground #E69533
editorRuler.foreground #30455E
editorSuggestWidget.background #2A2E3B
editorSuggestWidget.border #3C91E6
editorSuggestWidget.foreground #BCC7D1
editorSuggestWidget.highlightForeground #3C91E6
editorSuggestWidget.selectedBackground #3E4A5B
editorWarning.border #3C91E6
editorWarning.foreground #E69533
editorWhitespace.foreground #FFFFFF33
editorWidget.background #2A2E3B
editorWidget.border #3C91E6
editorWidget.resizeBorder #3C91E6
errorForeground #FF6F61
input.background #2A2E3B
input.border #3C91E6
input.foreground #BCC7D1
input.placeholderForeground #A4B9C9
inputOption.activeBorder #3C91E6
inputValidation.errorBackground #401616
inputValidation.errorBorder #600000
inputValidation.errorForeground #FF6F61
inputValidation.infoBackground #004051
inputValidation.infoBorder #167B91
inputValidation.infoForeground #A4B9C9
inputValidation.warningBackground #5C4500
inputValidation.warningBorder #A88457
inputValidation.warningForeground #E69533
menu.background #252935
menu.foreground #BCC7D1
menu.selectionBackground #3C91E6
menu.selectionBorder #FFFFFF
menu.selectionForeground #FFFFFF
menu.separatorBackground #3C91E6
menubar.selectionBackground #3C91E6
menubar.selectionBorder #FFFFFF
menubar.selectionForeground #FFFFFF
merge.border #3C91E6
merge.commonContentBackground #FFD58022
merge.commonHeaderBackground #FFD58044
merge.currentContentBackground #3C91E622
merge.currentHeaderBackground #3C91E644
merge.incomingContentBackground #61D1B222
merge.incomingHeaderBackground #61D1B244
minimap.errorHighlight #FF6F61
minimap.selectionHighlight #3C91E644
minimap.warningHighlight #E69533
minimapGutter.addedBackground #61D1B2
minimapGutter.deletedBackground #FF6F61
minimapGutter.modifiedBackground #FFD580
notificationCenter.border #252935
notificationCenterHeader.background #252935
notificationCenterHeader.foreground #A4B9C9
notifications.background #252935
notifications.border #252935
notifications.foreground #A4B9C9
notificationsErrorIcon.foreground #FF6F61
notificationsInfoIcon.foreground #3C91E6
notificationsWarningIcon.foreground #E69533
notificationToast.border #252935
panel.background #252935
panel.border #3C91E6
panel.dropBackground #3C91E633
panelInput.border #3C91E6
panelTitle.activeBorder #3C91E6
panelTitle.activeForeground #FFFFFF
panelTitle.inactiveForeground #A4B9C9
peekView.border #3C91E6
peekViewEditor.background #2F3A47
peekViewEditor.matchHighlightBackground #3C91E644
peekViewResult.background #252935
peekViewResult.fileForeground #A4B9C9
peekViewResult.lineForeground #A4B9C9
peekViewResult.matchHighlightBackground #3C91E644
peekViewResult.selectionBackground #3C91E688
peekViewResult.selectionForeground #FFFFFF
peekViewTitle.background #1C1F27
peekViewTitleDescription.foreground #A4B9C977
peekViewTitleLabel.foreground #A4B9C9
pickerGroup.border #3C91E6
pickerGroup.foreground #A4B9C9
quickInput.background #252935
quickInput.foreground #A4B9C9
scrollbar.shadow #00000044
scrollbarSlider.activeBackground #A4B9C9AA
scrollbarSlider.background #A4B9C944
scrollbarSlider.hoverBackground #A4B9C977
selection.background #7F87D2AA
settings.checkboxBackground #2A2E3B
settings.checkboxBorder #3C91E6
settings.checkboxForeground #BCC7D1
settings.dropdownBackground #2A2E3B
settings.dropdownBorder #3C91E6
settings.dropdownForeground #BCC7D1
settings.dropdownListBorder #3C91E6
settings.headerForeground #FFFFFF
settings.modifiedItemIndicator #3C91E6
settings.numberInputBackground #2A2E3B
settings.numberInputBorder #3C91E6
settings.numberInputForeground #BCC7D1
settings.textInputBackground #2A2E3B
settings.textInputBorder #3C91E6
settings.textInputForeground #BCC7D1
sideBar.background #1C1F27
sideBar.border #2B313A
sideBar.dropBackground #3C91E622
sideBar.foreground #BCC7D1
sideBarSectionHeader.background #2A2E3B
sideBarSectionHeader.border #1B1E28
sideBarSectionHeader.foreground #BCC7D1
sideBarTitle.foreground #BCC7D1
statusBar.background #252935
statusBar.border #252935
statusBar.debuggingBackground #3E4A5B
statusBar.debuggingBorder #FF6161
statusBar.debuggingForeground #FFB3B3
statusBar.foreground #A4B9C9
statusBar.noFolderBackground #252935
statusBar.noFolderBorder #252935
statusBar.noFolderForeground #A4B9C9
statusBarItem.activeBackground #4E6578
statusBarItem.hoverBackground #34495E
statusBarItem.prominentBackground #2A2E3B
statusBarItem.prominentHoverBackground #3E4A5B
tab.activeBackground #1B1E28
tab.activeBorder #2A2E3B
tab.activeBorderTop #3C91E6
tab.activeForeground #FFFFFF
tab.activeModifiedBorder #61D1B2
tab.border #3C91E6
tab.inactiveBackground #2A2E3B
tab.inactiveForeground #BCC7D1
tab.unfocusedActiveBackground #3C91E666
tab.unfocusedActiveBorder #3C91E6
tab.unfocusedActiveForeground #BCC7D1
tab.unfocusedHoverBackground #3C91E640
tab.unfocusedInactiveForeground #BCC7D1
terminal.ansiBlack #1C1F27
terminal.ansiBlue #3C91E6
terminal.ansiBrightBlack #4B6075
terminal.ansiBrightBlue #3C91E6
terminal.ansiBrightCyan #61D1B2
terminal.ansiBrightGreen #61D1B2
terminal.ansiBrightMagenta #E798B3
terminal.ansiBrightRed #FF9282
terminal.ansiBrightWhite #E1E3E6
terminal.ansiBrightYellow #FFD580
terminal.ansiCyan #61D1B2
terminal.ansiGreen #61D1B2
terminal.ansiMagenta #E798B3
terminal.ansiRed #FF6F61
terminal.ansiWhite #A4B9C9
terminal.ansiYellow #FFD580
terminal.background #1B1E28
terminal.foreground #E1E3E6
textBlockQuote.background #1C1F27
textBlockQuote.border #3C91E6
textCodeBlock.background #1C1F27
textLink.activeForeground #3C91E6
textLink.foreground #3C91E6
textPreformat.foreground #FFD580
textSeparator.foreground #3C91E6
titleBar.activeBackground #252935
titleBar.activeForeground #A4B9C9
titleBar.border #252935
titleBar.inactiveBackground #252935
titleBar.inactiveForeground #A4B9C977
walkThrough.embeddedEditorBackground #1C1F27
welcomePage.buttonBackground #2A2E3B
welcomePage.buttonHoverBackground #34495E
widget.shadow #00000044
window.activeBorder #3C91E6
window.inactiveBorder #252935 keyword, keyword.control, keyword.other.template, keyword.other.substitution, storage.modifier, meta.tag.sgml, punctuation.accessor, constant.other.color, entity.name.section, markup.heading, markup.heading punctuation.definition, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, storage.type.function.pug, text.pug storage.type, text.pug meta.tag.other, source.clojure storage.control, meta.expression.clojure, punctuation.separator.slice.python, punctuation.separator.question-mark.cs, punctuation.definition.parameters.varargs, source.go keyword.operator, punctuation.separator.pointer-access, punctuation.separator.other.ruby, keyword.package, keyword.import, punctuation.definition.keyword, punctuation.separator.hash.cs, entity.other.attribute-name.pseudo-class.css punctuation.definition.entity.css, entity.other.attribute-name.pseudo-element.css punctuation.definition.entity.css, source.kotlin storage.type.import, source.kotlin storage.type.package, constant.string.documentation.powershell, punctuation.section.directive, storage.type.rust, punctuation.definition.attribute, punctuation.definition.preprocessor, punctuation.separator.namespace, punctuation.separator.method, keyword.control punctuation.definition.function, source.ocaml variable.interpolation string, source.reason variable.interpolation, punctuation.definition.directive, storage.type.modifier, keyword.other.class.fileds, source.toml entity.other.attribute-name, source.css entity.name.tag.custom, sharing.modifier, keyword.control.class.ruby, keyword.control.def.ruby #df769b —
variable, variable.object, variable.other, variable.parameter, support, entity.name.module, variable.import.parameter, variable.other.class, meta.toc-list.id.html, source.json meta.structure.dictionary.json support.type.property-name.json, meta.var.clojure, entity.name.variable, source.java meta.class.body.java, entity.name.package.go, source.c, source.cpp, source.go, source.python, meta.function-call.arguments.python, source.ruby, source.coffee.embedded.source, source.coffee, storage.modifier.import, storage.modifier.package, storage.type.annotation, punctuation.definition.annotation, source.groovy.embedded.source, punctuation.definition.variable, source.powershell, string.quoted.interpolated.vala constant.character.escape.vala, source.apacheconf, source.objc, source.crystal, string.quoted.double.kotlin entity.string.template.element.kotlin, entity.name.package.kotlin, meta.template.expression.kotlin, parameter.variable.function, variable.other.constant.elixir, source.elixir.embedded.source, source.sql.embedded, punctuation.definition.placeholder, source.swift, source.julia, source.shell, variable.other.normal punctuation.definition.variable.shell, source.reason variable.language, source.reason variable.language string.other.link, source.elm meta.value, source.elm meta.declaration.module, meta.embedded.block variable punctuation.definition.variable.php, string.quoted.double.class.other, source.toml keyword, support.type.nim, source.tf meta.template.expression, source.scala entity.name.import, markup.code, markup.fenced_code.block #e4b781 —
support.variable.property, constant.other.symbol.hashkey.ruby, constant.other.symbol.hashkey.ruby punctuation.definition.constant.ruby, entity.other.attribute-name.id, entity.other.attribute-name.id punctuation.definition.entity, entity.name.type.annotation.kotlin, support.type.primitive, meta.type.parameters entity.name.type, meta.type.annotation entity.name.type, punctuation.definition.typeparameters, source.python support.type.python, comment.block.documentation.phpdoc.php keyword.other.type.php, storage.type.php, keyword.type, storage.type.cs, storage.type.c, storage.type.objc, punctuation.definition.storage.type.objc, markup punctuation.definition, storage.type.powershell, comment.block.documentation entity.name.type, source.java storage.type, storage.type.primitive, source.groovy storage.type, storage.type.r, source.haskell storage.type, punctuation.separator.clause-head-body, source.go storage.type, storage.type.core.rust, storage.class.std.rust, storage.modifier.lifetime.rust, entity.name.lifetime.rust, support.type.vb, support.type.julia, constant.other.reference, source.graphql support.type, source.reason support.type string, source.elm storage.type, storage.type.user-defined, storage.type.built-in, support.type.builtin, source.swift support.type, support.class.crystal, storage.type.integral, source.cpp storage.type.cpp, source.vala storage.type, source.hlsl storage.type.basic, source.hlsl support.type.other, source.apex storage.type, source.nim storage.type, support.class.builtin, source.tf meta.keyword.string, source.tf meta.keyword.number, source.scala entity.name.class, markup.raw.monospace, markup.mark, entity.name.type #d67e5c —
constant, variable.other.constant, support.constant, punctuation.definition.entity, constant.character.entity, support.variable.magic, markup.quote, entity.name.type.type-parameter.cs, punctuation.bracket.angle, entity.name.function.preprocessor.c, storage.type.scala, entity.helper.apacheconf, variable.language.crystal, punctuation.definition.constant, support.constant punctuation.definition.variable, constant.character.math, support.class.math, source.graphql constant.character, source.reason constant.language.list, source.cpp variable.other.enummember, support.variable.class.hideshow, entity.other.attribute-name.class, meta.attribute.id entity.other.attribute-name, text.html entity.other.attribute-name, meta.tag.attributes entity.other.attribute-name, text.xml entity.other.attribute-name, source.cs entity.other.attribute-name, constant.character.format.placeholder, constant.other.placeholder, source.vue entity.other.attribute-name, entity.other.attribute-name.mjml, source.vue meta.directive punctuation.separator.key-value, meta.definition.attribute-entry punctuation.separator #d5971a —
variable.language, variable.parameter.function.language.special, punctuation.definition.italic, punctuation.definition.bold, entity.name.tag, variable.language punctuation.definition.variable, keyword.control.clojure, support.type.exception.python, keyword.other.this.cs, keyword.other.base.cs, keyword.other.var.cs, storage.modifier.super, source.go keyword, keyword.function.go, meta.separator, keyword.other.fn.rust, storage.modifier.static.rust, source.r meta.function.r keyword.control.r, storage.type.def, meta.class.identifier storage.modifier, source.scala keyword.declaration, storage.type, comment.block.documentation punctuation.definition.block.tag, comment.block.documentation punctuation.definition.inline.tag, entity.tag.apacheconf, keyword.other.julia, source.julia storage.modifier, constant.language.empty-list.haskell, meta.function.powershell storage.type.powershell, keyword.control.fun, punctuation.terminator.function, keyword.other.rust, keyword.other.declaration-specifier.swift, keyword.control.class, keyword.control.def, source.ocaml keyword markup.underline, source.ocaml storage.type markup.underline, binding.fsharp keyword, function.anonymous keyword, function.anonymous keyword.symbol.fsharp, meta.embedded.block variable.language punctuation.definition.variable.php, keyword.declaration.dart, source.wsd keyword.other.class, source.wsd keyword.other.linebegin, keyword.other.skinparam.keyword, keyword.other.nim, markup.deleted.diff, source.tf support.class.variable, meta.function.lua keyword.control.lua, markup.block entity.name.tag, markup.meta.attribute-list, source.zig keyword.default, source.zig keyword.structure #e66533 —
string, punctuation.definition.string, source.css support.constant, entity.name.import.go, markup.raw.texttt, markup.inserted.diff, source.scala punctuation.definition.character, constant.character.literal.scala, source.tf entity.name #49e9a6 —
string.template, punctuation.definition.string.template, string.interpolated.python string.quoted.single.python, string.quoted.double.heredoc, string.quoted.interpolated.vala, string.quoted.interpolated.vala punctuation.definition.string, string.regexp.apacheconf, markup.inline.raw.string, markup.inline.raw punctuation.definition.raw, string.quoted.double.interpolated.crystal, string.quoted.double.interpolated.crystal punctuation.definition.string, text.tex markup.raw #16b673 —
constant.numeric, constant.language, punctuation.separator.decimal.period.php, keyword.operator.null-conditional.cs, punctuation.separator.question-mark.cs, constant.integer.apacheconf, keyword.operator.nullable-type, constant.language punctuation.definition.variable, constant.others.fsharp, keyword.other.unit, string.quoted.double.skinparam.value, source.toml constant, source.zig keyword.constant.bool, source.zig keyword.constant.default #23c6ef —
variable.function, support.type.property-name, entity.name.function, string.other.link, markup.link, support.type.vendored, support.other.variable, meta.function-call.generic.python, meta.method-call.groovy meta.method.groovy, meta.class.body.groovy meta.method.body.java storage.type.groovy, punctuation.definition.decorator, support.function.any-method, text.tex support.function, text.tex punctuation.definition.function, entity.name.section.fsharp entity.name.section.fsharp, support.variable.class.function, keyword.control.cucumber.table, punctuation.decorator, source.tf support.class #16a3b6 —
entity.name, entity.other, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, support.type, support.class, punctuation.definition.parameters, support.function, support.function.construct, markup.changed.git_gutter, markup.underline.link, markup.underline.link.image, markup.underline, meta.symbol.namespace.clojure, entity.mime-type.apacheconf, keyword.operator.function.infix, entity.name.function.infix, entity.name.function.call.kotlin, text.tex support.function.verb, text.tex support.function.texttt, source.reason constant.language.unit, source.ocaml constant.language constant.numeric entity.other.attribute-name.id.css, source.reason entity.other.attribute-name constant.language constant.numeric, constant.language.unit.fsharp, source.wsd support.class.preprocessings, keyword.language.gherkin.feature.scenario, source.nim keyword.other.common.function, entity.name.scope-resolution.function.call #49d6e9 —
source.js constant.other.object.key.js string.unquoted.label.js, source.js punctuation.section.embedded, punctuation.definition.template-expression, support.class, storage.type.string.python, string.interpolated.pug, support.constant.handlebars, source.clojure punctuation.section.set, source.clojure punctuation.section.metadata, entity.global.clojure, source.python meta.function-call.python support.type.python, entity.other.inherited-class.python, punctuation.definition.interpolation, punctuation.section.embedded.begin.ruby, punctuation.section.embedded.end.ruby source.ruby, support.constant.math, entity.namespace.r, meta.method-call.groovy storage.type.groovy, source.scala entity.name.class.declaration, constant.character.escape, support.function.macro.julia, string.replacement.apacheconf, storage.modifier.using.vala, constant.other.haskell, source.objc entity.name.tag, string.quoted.other.literal.upper.crystal punctuation.definition.string, meta.embedded.line.crystal punctuation.section.embedded, meta.embedded.line.crystal punctuation.section.embedded source.crystal, punctuation.section.embedded, punctuation.section.tag, punctuation.section.embedded source.swift, variable.other.bracket punctuation.definition.variable, string.interpolated.dollar punctuation.definition.string, constant.character.escape punctuation.definition.keyword, source.ocaml entity.name.class constant.numeric, source.reason entity.name.class, keyword.format.specifier.fsharp, support.module.elm, meta.embedded.block.php punctuation.definition.variable.php, source.vala storage.type, support.variable.class.group, entity.name.type.class, source.tf meta.keyword.list, source.tf meta.keyword.map, entity.name.class.lua, markup.substitution #49ace9 —
invalid, invalid.illegal #e3541c —
comment, storage.modifier, punctuation.definition.comment, entity.other, variable.language, support.type.vendored, support.constant.vendored, markup.quote, markup.italic, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js, keyword.control.clojure, source.clojure meta.symbol.dynamic, keyword.other.this.cs, keyword.other.base.cs, variable.other.member.c, support.type.core.rust, variable.other.object.property, variable.other.property, source.r meta.function.r keyword.control.r, comment.line.roxygen.r keyword, comment.line.roxygen.r variable.parameter.r, keyword.control.inheritance.coffee, comment.block.documentation.phpdoc.php keyword, keyword.other.array.phpdoc.php, storage.type.modifier, comment.block.javadoc.java keyword, comment.block.javadoc.java variable.parameter.java, keyword.operator.documentation.powershell, storage.type.scala, variable.parameter.function.language.special, comment.block.documentation.scala keyword, comment.block.documentation.scala variable.parameter, support.function.builtin.go, constant.other.symbol.hashkey.ruby, constant.other.symbol.hashkey.ruby punctuation.definition.constant.ruby, constant.other.symbol.ruby, source.vala storage.type.generic, constant.other.table-name, constant.other.placeholder, variable.other.field, entity.alias.import.go, source.swift keyword.other.declaration-specifier, support.variable.swift, keyword.other.capture-specifier, text.tex support.function.emph, constant.other.math, support.function.textit, entity.name.footnote, entity.name.function.directive.graphql, source.graphql support.type.enum, source.ocaml entity.name.filename, source.reason entity.name.filename, abstract.definition.fsharp keyword, abstract.definition.fsharp entity, function.anonymous keyword, entity.name.record.field.accessor.elm, support.type.primitive, support.type.builtin, keyword.type.cs, storage.type.built-in, storage.type.primitive, source.python support.type.python, storage.type.core.rust, source.swift support.type, source.go storage.type, storage.type.php, storage.type.function.kotlin, entity.name.type.kotlin, support.type.julia, variable.other.member, keyword.other.import, keyword.package, keyword.import, source.wsd keyword.control.diagram, keyword.language.gherkin.feature.step, source.hlsl storage.type.basic, source.apex keyword.type, sharing.modifier, source.nim storage.type.concrete, meta.preprocessor.pragma.nim, storage.type.integral, entity.name.scope-resolution.function.call, support.class.builtin, comment.block.documentation storage.type.class, source.tf meta.keyword.string, source.tf meta.keyword.number, source.scala entity.name.class, meta.import keyword.control, keyword.control.export, source.vue meta.directive punctuation.separator.key-value, keyword.local.lua, markup.mark.constrained markup.mark, markup.block.open, entity.name.type.primitive, entity.name.type.numeric, source.zig keyword.type, source.zig keyword.storage, source.zig keyword.structure — italic
keyword, keyword.control, keyword.operator, keyword.other.template, keyword.other.substitution, storage.type.function.arrow, constant.other.color, punctuation.accessor, entity.name.section, markdown.heading, markup.inline.raw punctuation.definition.raw, markup.heading, storage.type.function.pug, storage.type.function.python, storage.type.annotation, punctuation.bracket.angle, keyword.other.new, storage.type.generic.wildcard, source.go keyword.operator, constant.other.symbol.ruby punctuation.definition.constant.ruby, variable.parameter, support.function.builtin.rust, storage.type.function.coffee, entity.name.variable.parameter, punctuation.separator.hash.cs, constant.other.symbol.ruby punctuation.definition.constant.ruby, constant.other.symbol.hashkey.ruby punctuation.definition.constant.ruby, meta.function.parameters variable.other, entity.name.type.annotation.kotlin, storage.type.objc, parameter.variable.function, markup punctuation.definition, punctuation.section.directive, punctuation.definition.preprocessor, source.ruby punctuation.definition.variable, support.function.textbf, source.graphql support.type.builtin, source.ocaml variable.interpolation string, entity.name.function.definition.special.constructor, entity.name.function.definition.special.member.destructor., meta.function.parameters variable punctuation.definition.variable.php, source.wsd keyword.other.activity, keyword.control.class.ruby, keyword.control.def.ruby, keyword.function.go, keyword.other.fn.rust, markup.other.anchor, markup.list.bullet, markup.list punctuation.definition, keyword.control.default, punctuation.section, punctuation.separator, punctuation.terminator, markup.bold.markdown, source.zig storage.type.function, entity.name.type — bold
markup.quote markup.bold, text.html punctuation.section.embedded, variable.other.c, storage.modifier.lifetime.rust, entity.name.lifetime.rust, source.rust meta.attribute.rust, meta.attribute.id entity.other.attribute-name, source.ocaml punctuation.definition.tag emphasis, source.tf entity.name, markup.quote punctuation.definition, markup.fenced_code punctuation.definition, fenced_code.block.language — bold italic
keyword.begin.tag.ejs, source.python meta.function.decorator.python support.type.python, source.cs keyword.other, keyword.other.var.cs, source.go keyword, storage.modifier.static.rust, variable.parameter.r, variable.parameter.handlebars, storage.modifier.import, storage.modifier.package, meta.class.identifier storage.modifier, keyword.operator.other.powershell, source.css variable.parameter, string.interpolated variable.parameter, source.apacheconf keyword, keyword.other.julia, storage.modifier.using.vala, source.objc keyword.other.property.attribute, source.sql keyword.other, keyword.other.using.vala, keyword.operator.function.infix, keyword.control.directive, keyword.other.rust, keyword.other.declaration-specifier.swift, entity.name.function.swift, keyword.control.class, keyword.control.def, punctuation.definition.variable, entity.name.section.latex, source.ocaml keyword markup.underline, source.ocaml constant.language constant.numeric entity.other.attribute-name.id.css, source.reason entity.other.attribute-name constant.language constant.numeric, keyword.format.specifier.fsharp, entity.name.section.fsharp, binding.fsharp keyword, binding.fsharp keyword.symbol, record.fsharp keyword, keyword.symbol.fsharp, entity.name.section.fsharp keyword, namespace.open.fsharp keyword, namespace.open.fsharp entity, storage.type, source.cpp keyword.other, source.c keyword.other, keyword.other.unit, storage.modifier.array.bracket, meta.import.haskell keyword, keyword.declaration.dart, source.wsd keyword.other, keyword.other.skinparam, source.css keyword.control, source.css keyword.operator, keyword.language.gherkin.feature.scenario, keyword.control.cucumber.table, source.toml entity.other.attribute-name, source.toml keyword, keyword.other.nim, source.nim keyword.other.common.function, source.nim keyword.other, source.scala keyword.declaration, source.scala entity.name.class.declaration, keyword.control.lua, source.css punctuation.section, punctuation.section.embedded, source.c punctuation.section, source.cpp punctuation.section, source.java punctuation.section, source.php punctuation.section, source.powershell punctuation.section, source.r punctuation.section, source.ruby punctuation.section, source.swift punctuation.section, source.objc punctuation.section, source.zig keyword.constant.bool, source.zig keyword.default, source.zig keyword.statement, source.zig keyword.constant.default —
markup.strikethrough — strikethrough
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 } !` ;
}