Skip to main content
Void Nebula | Coding Theme
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
activityBar.background #18181c activityBar.foreground #ffffff activityBar.inactiveForeground #8c8c8c activityBarBadge.background #6496f0 activityBarBadge.foreground #000000 badge.background #32323c 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 #f06464 — variable.other.generic-type.haskell #b478f0 — storage.type.haskell #f08c5a — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
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}!`;
}
Void Nebula — Void Nebula
3
Open Editors fetchUser.ts index.ts README.md fetchUser.ts
index.ts
README.md
src main*
0 1
Copilot
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
Dark+
badge.foreground
#ffffff
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #1e1e23
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #ffffff
button.background #6496f0
button.foreground #000000
button.hoverBackground #6496f0
button.secondaryBackground #32323c
button.secondaryForeground #ffffff
button.secondaryHoverBackground #32323c
checkbox.background #32323c
checkbox.border #00000000
checkbox.foreground #ffffff
debugExceptionWidget.background #18181c
debugExceptionWidget.border #32323c
debugToolBar.background #18181c
debugToolBar.border #32323c
diffEditor.border #32323c
diffEditor.insertedTextBackground #a0f08240
diffEditor.removedTextBackground #f0646440
dropdown.background #32323c
dropdown.border #00000000
dropdown.foreground #ffffff
editor.background #1e1e23
editor.findMatchBackground #32323c
editor.findMatchBorder #6496f0
editor.findMatchHighlightBackground #f08c5a80
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #32323c80
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #32323c80
editor.foreground #ffffff
editor.hoverHighlightBackground #32323c80
editor.inactiveSelectionBackground #32323c80
editor.lineHighlightBackground #32323c
editor.lineHighlightBorder #32323c
editor.rangeHighlightBackground #32323c80
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #32323c
editor.selectionHighlightBackground #32323c80
editor.selectionHighlightBorder #6496f0
editor.wordHighlightBackground #32323c80
editor.wordHighlightStrongBackground #32323c80
editorBracketMatch.background #32323c
editorBracketMatch.border #8c8c8c
editorCodeLens.foreground #8c8c8c
editorCursor.background #000000
editorCursor.foreground #ffffff
editorError.background #ffffff00
editorError.border #ffffff00
editorError.foreground #f06464
editorGroup.border #32323c
editorGroup.emptyBackground #1e1e23
editorGroupHeader.tabsBackground #1e1e23
editorGutter.addedBackground #a0f082
editorGutter.background #1e1e23
editorGutter.commentRangeForeground #8c8c8c
editorGutter.deletedBackground #f06464
editorGutter.foldingControlForeground #8c8c8c
editorGutter.modifiedBackground #6496f0
editorHoverWidget.background #18181c
editorHoverWidget.border #32323c
editorHoverWidget.foreground #ffffff
editorIndentGuide.activeBackground1 #8c8c8c
editorIndentGuide.background1 #32323c
editorInfo.background #ffffff00
editorInfo.border #ffffff00
editorInfo.foreground #6496f0
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #8c8c8c
editorLink.activeForeground #6496f0
editorMarkerNavigation.background #18181c
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #6496f0
editorMarkerNavigationWarning.background #f0c878
editorOverviewRuler.background #ffffff00
editorOverviewRuler.border #ffffff00
editorRuler.foreground #8c8c8c00
editorSuggestWidget.background #18181c
editorSuggestWidget.border #32323c
editorSuggestWidget.foreground #ffffff
editorSuggestWidget.highlightForeground #6496f0
editorSuggestWidget.selectedBackground #32323c
editorWarning.background #ffffff00
editorWarning.border #ffffff00
editorWarning.foreground #f0c878
editorWhitespace.foreground #8c8c8c
editorWidget.background #18181c
editorWidget.foreground #ffffff
editorWidget.resizeBorder #32323c
focusBorder #6496f0
foreground #ffffff
gitDecoration.addedResourceForeground #a0f082
gitDecoration.conflictingResourceForeground #b478f0
gitDecoration.deletedResourceForeground #f06464
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #f0c878
gitDecoration.stageDeletedResourceForeground #f06464
gitDecoration.stageModifiedResourceForeground #f0c878
gitDecoration.submoduleResourceForeground #6496f0
gitDecoration.untrackedResourceForeground #a0f082
icon.foreground #ffffff
input.background #32323c
input.border #00000000
input.foreground #ffffff
input.placeholderForeground #8c8c8c
inputOption.activeBackground #6496f0
inputOption.activeBorder #007acc00
inputOption.activeForeground #000000
list.activeSelectionBackground #32323c
list.activeSelectionForeground #ffffff
list.dropBackground #32323c
list.focusBackground #32323c
list.focusForeground #ffffff
list.highlightForeground #6496f0
list.hoverBackground #32323c
list.hoverForeground #ffffff
list.inactiveSelectionBackground #32323c
list.inactiveSelectionForeground #ffffff
listFilterWidget.background #32323c
listFilterWidget.noMatchesOutline #f06464
listFilterWidget.outline #00000000
menu.background #18181c
menu.border #32323c
menu.foreground #ffffff
menu.selectionBackground #32323c
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #32323c
menubar.selectionBackground #32323c
menubar.selectionForeground #ffffff
merge.commonContentBackground #32323c80
merge.commonHeaderBackground #32323c80
merge.currentContentBackground #a0f08280
merge.currentHeaderBackground #a0f08280
merge.incomingContentBackground #6496f080
merge.incomingHeaderBackground #6496f080
minimap.background #1e1e23
minimap.errorHighlight #f06464
minimap.findMatchHighlight #32323c80
minimap.selectionHighlight #32323c80
minimap.warningHighlight #f0c878
minimapGutter.addedBackground #a0f082
minimapGutter.deletedBackground #f06464
minimapGutter.modifiedBackground #6496f0
notificationCenter.border #32323c
notificationCenterHeader.background #18181c
notificationCenterHeader.foreground #ffffff
notifications.background #18181c
notifications.border #32323c
notifications.foreground #ffffff
notificationsErrorIcon.foreground #f06464
notificationsInfoIcon.foreground #6496f0
notificationsWarningIcon.foreground #f0c878
notificationToast.border #32323c
panel.background #1e1e23
panel.border #32323c
panelSection.border #32323c
panelTitle.activeBorder #ffffff
panelTitle.activeForeground #ffffff
panelTitle.inactiveForeground #8c8c8c
peekView.border #6496f0
peekViewEditor.background #18181c
peekViewEditor.matchHighlightBackground #32323c
peekViewEditor.matchHighlightBorder #f0c878
peekViewEditorGutter.background #18181c
peekViewResult.background #1e1e23
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #8c8c8c
peekViewResult.matchHighlightBackground #32323c
peekViewResult.selectionBackground #32323c
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #32323c
peekViewTitleDescription.foreground #ffffff
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #32323c
pickerGroup.foreground #6496f0
progressBar.background #6496f0
scrollbar.shadow #000000
scrollbarSlider.activeBackground #32323c
scrollbarSlider.background #32323c00
scrollbarSlider.hoverBackground #32323c
selection.background #6496f07f
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffffff
sideBar.background #1e1e23
sideBar.dropBackground #32323c
sideBar.foreground #ffffff
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #ffffff
sideBarTitle.foreground #ffffff
statusBar.background #18181c
statusBar.debuggingBackground #18181c
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #18181c
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #32323c
statusBarItem.remoteBackground #18181c
statusBarItem.remoteForeground #ffffff
tab.activeBackground #32323c
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #32323c
tab.inactiveBackground #1e1e23
tab.inactiveForeground #ffffff80
terminal.ansiBlack #000000
terminal.ansiBlue #6496f0
terminal.ansiBrightBlack #8c8c8c
terminal.ansiBrightBlue #6496f0
terminal.ansiBrightCyan #50c8c8
terminal.ansiBrightGreen #a0f082
terminal.ansiBrightMagenta #b478f0
terminal.ansiBrightRed #f06464
terminal.ansiBrightWhite #ffffff
terminal.ansiBrightYellow #f0c878
terminal.ansiCyan #50c8c8
terminal.ansiGreen #a0f082
terminal.ansiMagenta #b478f0
terminal.ansiRed #f06464
terminal.ansiWhite #ffffff
terminal.ansiYellow #f0c878
terminal.border #32323c
terminal.foreground #ffffff
terminal.selectionBackground #8c8c8c40
terminalCursor.background #18181c
terminalCursor.foreground #ffffff
textLink.foreground #6496f0
titleBar.activeBackground #18181c
titleBar.activeForeground #ffffff
titleBar.border #00000000
titleBar.inactiveBackground #1e1e23
titleBar.inactiveForeground #8c8c8c
tree.indentGuidesStroke #32323c
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #f06464
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff —
variable.parameter.function.language.special.self.python #f0c878 —
storage.modifier.lifetime.rust #ffffff —
support.function.std.rust #6496f0 —
entity.name.lifetime.rust #f0c878 —
variable.language.rust #f06464 —
support.constant.edge #b478f0 —
constant.other.character-class.regexp #f06464 —
keyword.operator.quantifier.regexp #f08c5a —
punctuation.definition.string.begin,punctuation.definition.string.end #a0f082 —
variable.parameter.function #ffffff —
comment markup.link #8c8c8c —
markup.changed.diff #f0c878 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #6496f0 —
markup.inserted.diff #a0f082 —
markup.deleted.diff #f06464 —
meta.function.c,meta.function.cpp #f06464 —
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 #6496f0 —
support.constant.math #f0c878 —
support.constant.property.math #f08c5a —
variable.other.constant #f0c878 —
storage.type.annotation.java, storage.type.object.array.java #f0c878 —
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 #f0c878 —
keyword.operator.instanceof.java #b478f0 —
meta.definition.variable.name.java #f06464 —
keyword.operator.logical #50c8c8 —
keyword.operator.bitwise #50c8c8 —
keyword.operator.channel #50c8c8 —
support.constant.property-value.scss,support.constant.property-value.css #f08c5a —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #50c8c8 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #f08c5a —
punctuation.separator.list.comma.css #ffffff —
support.constant.color.w3c-standard-color-name.css #f08c5a —
support.type.vendored.property-name.css #50c8c8 —
support.module.node,support.type.object.module,support.module.node #f0c878 —
entity.name.type.module #f0c878 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #f06464 —
support.constant.json #f08c5a —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #b478f0 —
support.type.object.console #f06464 —
support.variable.property.process #f08c5a —
entity.name.function,support.function.console #6496f0 —
keyword.operator.misc.rust #ffffff —
keyword.operator.sigil.rust #b478f0 —
keyword.operator.delete #b478f0 —
support.type.object.dom #50c8c8 —
support.variable.dom,support.variable.property.dom #f06464 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #50c8c8 —
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 #b478f0 —
punctuation.separator.delimiter #ffffff —
punctuation.separator.c,punctuation.separator.cpp #b478f0 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #50c8c8 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #b478f0 —
variable.parameter.function.language.python #f08c5a —
support.type.python #50c8c8 —
keyword.operator.logical.python #b478f0 —
variable.parameter.function.python #f08c5a —
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 #6496f0 —
constant.character.format.placeholder.other.python #f08c5a —
keyword.operator.assignment.compound #b478f0 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #50c8c8 —
entity.name.namespace #f0c878 —
variable.language #f0c878 —
token.variable.parameter.java #ffffff —
import.storage.java #f0c878 —
token.package.keyword #b478f0 —
entity.name.function, meta.require, support.function.any-method, variable.function #6496f0 —
entity.name.type.namespace #f0c878 —
support.class, entity.name.type.class #f0c878 —
entity.name.class.identifier.namespace.type #f0c878 —
entity.name.class, variable.other.class.js, variable.other.class.ts #f0c878 —
variable.other.class.php #f06464 —
control.elements, keyword.operator.less #f08c5a —
keyword.other.special-method #6496f0 —
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 #b478f0 —
token.storage.type.java #f0c878 —
support.type.property-name #ffffff —
support.constant.property-value #ffffff —
support.constant.font-name #f08c5a —
entity.other.inherited-class #f0c878 —
constant.other.symbol #50c8c8 —
punctuation.definition.constant #f08c5a —
entity.other.attribute-name #f08c5a —
entity.other.attribute-name.id #6496f0 —
entity.other.attribute-name.class.css #f08c5a —
markup.heading punctuation.definition.heading, entity.name.section #6496f0 —
keyword.other.unit #f06464 —
markup.bold,todo.bold #f08c5a —
punctuation.definition.bold #f0c878 —
markup.italic, punctuation.definition.italic,todo.emphasis #b478f0 —
entity.name.section.markdown #f06464 —
punctuation.definition.heading.markdown #f06464 —
punctuation.definition.list.begin.markdown #f06464 —
markup.heading.setext #ffffff —
punctuation.definition.bold.markdown #f08c5a —
markup.inline.raw.markdown #a0f082 —
markup.inline.raw.string.markdown #a0f082 —
punctuation.definition.list.markdown #f06464 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #f06464 —
beginning.punctuation.definition.list.markdown #f06464 —
punctuation.definition.metadata.markdown #f06464 —
markup.underline.link.markdown,markup.underline.link.image.markdown #b478f0 —
string.other.link.title.markdown,string.other.link.description.markdown #6496f0 —
constant.character.escape #50c8c8 —
punctuation.section.embedded, variable.interpolation #f06464 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #b478f0 —
invalid.illegal.bad-ampersand.html #ffffff —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #f06464 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #f06464 —
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 #a0f082 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #50c8c8 —
support.type.property-name.json #f06464 —
support.type.property-name.json punctuation #f06464 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #b478f0 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #b478f0 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f0c878 —
keyword.operator.error-control.php #b478f0 —
keyword.operator.type.php #b478f0 —
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 #f0c878 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #6496f0 —
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 #f08c5a —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #f08c5a —
entity.name.goto-label.php,support.other.php #6496f0 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #50c8c8 —
keyword.operator.regexp.php #b478f0 —
keyword.operator.comparison.php #50c8c8 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #b478f0 —
meta.function.decorator.python #6496f0 —
support.token.decorator.python,meta.function.decorator.identifier.python #50c8c8 —
function.parameter #ffffff —
function.parameter.ruby, function.parameter.cs #ffffff —
constant.language.symbol.ruby #50c8c8 —
inline-color-decoration rgb-value #f08c5a —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #f0c878 —
block.scope.end,block.scope.begin #ffffff —
entity.name.variable.local.cs #f06464 —
token.error-token #f44747 —
token.debug-token #b478f0 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #b478f0 —
meta.template.expression #ffffff —
keyword.operator.module #b478f0 —
support.type.type.flowtype #6496f0 —
support.type.primitive #f0c878 —
meta.property.object #f06464 —
variable.parameter.function.js #f06464 —
keyword.other.template.begin #a0f082 —
keyword.other.template.end #a0f082 —
keyword.other.substitution.begin #a0f082 —
keyword.other.substitution.end #a0f082 —
keyword.operator.assignment #50c8c8 —
keyword.operator.assignment.go #f0c878 —
keyword.operator.arithmetic.go, keyword.operator.address.go #b478f0 —
entity.name.package.go #f0c878 —
support.type.prelude.elm #50c8c8 —
support.constant.elm #f08c5a —
punctuation.quasi.element #b478f0 —
constant.character.entity #f06464 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #50c8c8 —
entity.global.clojure #f0c878 —
meta.symbol.clojure #f06464 —
constant.keyword.clojure #50c8c8 —
meta.arguments.coffee, variable.parameter.function.coffee #f06464 —
meta.scope.prerequisites.makefile #f06464 —
storage.modifier.import.groovy #f0c878 —
meta.method.groovy #6496f0 —
meta.definition.variable.name.groovy #f06464 —
meta.definition.class.inherited.classes.groovy #a0f082 —
support.variable.semantic.hlsl #f0c878 —
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 #b478f0 —
text.variable, text.bracketed #f06464 —
support.type.swift, support.type.vb.asp #f0c878 —
entity.name.function.xi #f0c878 —
entity.name.class.xi #50c8c8 —
constant.character.character-class.regexp.xi #f06464 —
constant.regexp.xi #b478f0 —
keyword.control.xi #50c8c8 —
beginning.punctuation.definition.quote.markdown.xi #a0f082 —
beginning.punctuation.definition.list.markdown.xi #8c8c8c —
constant.character.xi #6496f0 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #8c8c8c —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f0c878 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #f06464 —
meta.brace.square #ffffff —
comment, punctuation.definition.comment #8c8c8c italic
markup.quote.markdown #8c8c8c —
punctuation.definition.block.sequence.item.yaml #ffffff —
constant.language.symbol.elixir #50c8c8 —
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
components
fetchUser.ts Button.tsx Modal.tsx hooks utils index.ts public package.json tsconfig.json README.md Outline 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
31
32
33
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}!`;
}
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 $