Skip to main content
green-low-contrast | 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 #242d30 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #2b731e activityBarBadge.foreground #ffffff badge.background #4d4d4d 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 #88bf9e — variable.other.generic-type.haskell #578a35 — storage.type.haskell #afc299 — 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}!`;
}
green-low-contrast — green-low-contrast
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 #e0e0e0
breadcrumb.background #242d30
breadcrumb.focusForeground #e0e0e0
breadcrumb.foreground #cccccccc
button.background #5395a3
button.foreground #ffffff
button.hoverBackground #5bb4c7
button.secondaryBackground #304d54
button.secondaryForeground #ffffff
button.secondaryHoverBackground #3d656f
checkbox.background #242d30
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #161d1f
debugExceptionWidget.border #98c3799f
debugToolBar.background #161d1f
debugToolBar.border #98c3799f
diffEditor.border #98c379d5
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #a1595933
dropdown.background #242d30
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #233034
editor.findMatchBackground #161f21
editor.findMatchBorder #28393f
editor.findMatchHighlightBackground #00000074
editor.findMatchHighlightBorder #00000048
editor.findRangeHighlightBackground #1c282c
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #27363b
editor.foreground #83a38f
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #324449
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #28282800
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff04
editor.selectionBackground #2e484f
editor.selectionHighlightBackground #add6ff26
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #004972b8
editorBracketMatch.background #233034
editorBracketMatch.border #88888830
editorCodeLens.foreground #999999
editorCursor.background #000000
editorCursor.foreground #aeafad
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #f48771
editorGroup.border #344b51
editorGroup.emptyBackground #233034
editorGroupHeader.border #1c2326
editorGroupHeader.tabsBackground #404e511e
editorGutter.addedBackground #6b965b
editorGutter.background #3f4b4e66
editorGutter.commentRangeForeground #c5c5c5
editorGutter.deletedBackground #ec7076
editorGutter.foldingControlForeground #c5c5c5
editorGutter.modifiedBackground #0c749d
editorHoverWidget.background #242d30
editorHoverWidget.border #98c3799f
editorHoverWidget.foreground #cccccc
editorIndentGuide.activeBackground #404e51
editorIndentGuide.background #404e51
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #ffffff
editorLineNumber.foreground #81969a
editorLink.activeForeground #4e94ce
editorMarkerNavigation.background #242d30
editorMarkerNavigationError.background #f48771
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #cca700
editorOverviewRuler.background #2525254a
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #404e51
editorSuggestWidget.background #242d30
editorSuggestWidget.border #98c3797a
editorSuggestWidget.foreground #d4d4d4
editorSuggestWidget.highlightForeground #98c379
editorSuggestWidget.selectedBackground #404e51
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #cca700
editorWhitespace.foreground #e3e4e229
editorWidget.background #242d30
editorWidget.foreground #cccccc
editorWidget.resizeBorder #5F5F5F
focusBorder #3e5860
foreground #cccccc
gitDecoration.addedResourceForeground #81b88b
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #c74e39
gitDecoration.ignoredResourceForeground #8c8c8c
gitDecoration.modifiedResourceForeground #e2c08d
gitDecoration.stageDeletedResourceForeground #c74e39
gitDecoration.stageModifiedResourceForeground #e2c08d
gitDecoration.submoduleResourceForeground #8db9e2
gitDecoration.untrackedResourceForeground #73c991
icon.foreground #cccccc
input.background #242d30
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #a6a6a6
inputOption.activeBackground #007fd466
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #404e514e
list.activeSelectionForeground #ffffff
list.dropBackground #27302f
list.focusBackground #404e51
list.focusForeground #cccccc
list.highlightForeground #98c379
list.hoverBackground #404e51
list.hoverForeground #cccccc
list.inactiveSelectionBackground #404e5130
list.inactiveSelectionForeground #cccccc
listFilterWidget.background #653723
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #242d30
menu.border #00000085
menu.foreground #cccccc
menu.selectionBackground #404e51
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #bbbbbb
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #282828
merge.commonHeaderBackground #383838
merge.currentContentBackground #27403B
merge.currentHeaderBackground #367366
merge.incomingContentBackground #28384B
merge.incomingHeaderBackground #395F8F
minimap.background #233034
minimap.errorHighlight #f48771
minimap.findMatchHighlight #161f21
minimap.selectionHighlight #2e484f
minimap.warningHighlight #cca700
minimapGutter.addedBackground #6b965b
minimapGutter.deletedBackground #ec7076
minimapGutter.modifiedBackground #0c749d
notificationCenter.border #474747
notificationCenterHeader.background #242d30
notificationCenterHeader.foreground #cccccc
notifications.background #404e51
notifications.border #303031
notifications.foreground #cccccc
notificationsErrorIcon.foreground #f48771
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #cca700
notificationToast.border #98c379d5
panel.background #1c2326
panel.border #808080bd
panelSection.border #80808059
panelTitle.activeBorder #e7e7e7
panelTitle.activeForeground #e7e7e7
panelTitle.inactiveForeground #e7e7e799
peekView.border #404e51
peekViewEditor.background #001f33
peekViewEditor.matchHighlightBackground #ff8f0099
peekViewEditor.matchHighlightBorder #ee931e
peekViewEditorGutter.background #001f33
peekViewResult.background #242d30
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #bbbbbb
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #242d30
peekViewTitleDescription.foreground #ccccccb3
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #98c37976
pickerGroup.foreground #98c379
progressBar.background #98c379
scrollbar.shadow #00000050
scrollbarSlider.activeBackground #bfbfbf66
scrollbarSlider.background #404e51
scrollbarSlider.hoverBackground #445458
selection.background #294d2d
settings.focusedRowBackground #ffffff07
settings.headerForeground #cccccc
sideBar.background #1c2326
sideBar.border #404e51
sideBar.dropBackground #27302f
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #242d30
statusBar.border #404e51
statusBar.debuggingBackground #cc6633
statusBar.debuggingForeground #ffffff
statusBar.foreground #81969a
statusBar.noFolderBackground #68217a
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #2b731e
statusBarItem.remoteForeground #ffffff
tab.activeBackground #404e51
tab.activeBorder #00000000
tab.activeBorderTop #00000000
tab.activeForeground #ffffff
tab.border #252526
tab.hoverBackground #404e5183
tab.hoverForeground #ffffff
tab.inactiveBackground #404e5120
tab.inactiveForeground #ffffff80
terminal.ansiBlack #000000
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #3b8eea
terminal.ansiBrightCyan #29b8db
terminal.ansiBrightGreen #23d18b
terminal.ansiBrightMagenta #d670d6
terminal.ansiBrightRed #f14c4c
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #f5f543
terminal.ansiCyan #11a8cd
terminal.ansiGreen #0dbc79
terminal.ansiMagenta #bc3fbc
terminal.ansiRed #cd3131
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #e5e510
terminal.border #80808059
terminal.foreground #cccccc
terminal.selectionBackground #404e5158
terminalCursor.background #0087FF
terminalCursor.foreground #ffffff
textLink.foreground #3794ff
titleBar.activeBackground #242d30
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #242d30d7
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #585858
walkThrough.embeddedEditorBackground #00000050
widget.shadow #0000005c #88bf9e
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #83a38f —
variable.parameter.function.language.special.self.python #c4bf69 —
storage.modifier.lifetime.rust #83a38f —
support.function.std.rust #77dede —
entity.name.lifetime.rust #c4bf69 —
variable.language.rust #88bf9e —
support.constant.edge #578a35 —
constant.other.character-class.regexp #88bf9e —
keyword.operator.quantifier.regexp #afc299 —
punctuation.definition.string.begin,punctuation.definition.string.end #a7cb7c —
variable.parameter.function #83a38f —
comment markup.link #7f848e —
markup.changed.diff #c4bf69 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #77dede —
markup.inserted.diff #a7cb7c —
markup.deleted.diff #88bf9e —
meta.function.c,meta.function.cpp #88bf9e —
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 #83a38f —
punctuation.separator.key-value #83a38f —
keyword.operator.expression.import #77dede —
support.constant.math #c4bf69 —
support.constant.property.math #afc299 —
variable.other.constant #c4bf69 —
storage.type.annotation.java, storage.type.object.array.java #c4bf69 —
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 #83a38f —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #c4bf69 —
keyword.operator.instanceof.java #578a35 —
meta.definition.variable.name.java #88bf9e —
keyword.operator.logical #88bf9e —
keyword.operator.bitwise #88bf9e —
keyword.operator.channel #88bf9e —
support.constant.property-value.scss,support.constant.property-value.css #afc299 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #88bf9e —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #afc299 —
punctuation.separator.list.comma.css #83a38f —
support.constant.color.w3c-standard-color-name.css #afc299 —
support.type.vendored.property-name.css #88bf9e —
support.module.node,support.type.object.module,support.module.node #c4bf69 —
entity.name.type.module #c4bf69 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #88bf9e —
support.constant.json #afc299 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #578a35 —
support.type.object.console #88bf9e —
support.variable.property.process #afc299 —
entity.name.function,support.function.console #77dede —
keyword.operator.misc.rust #83a38f —
keyword.operator.sigil.rust #578a35 —
keyword.operator.delete #578a35 —
support.type.object.dom #88bf9e —
support.variable.dom,support.variable.property.dom #88bf9e —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #88bf9e —
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 #578a35 —
punctuation.separator.delimiter #83a38f —
punctuation.separator.c,punctuation.separator.cpp #578a35 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #88bf9e —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #578a35 —
variable.parameter.function.language.python #afc299 —
support.type.python #88bf9e —
keyword.operator.logical.python #578a35 —
variable.parameter.function.python #afc299 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #83a38f —
meta.function-call.generic.python #77dede —
constant.character.format.placeholder.other.python #afc299 —
keyword.operator.assignment.compound #578a35 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #88bf9e —
entity.name.namespace #c4bf69 —
variable.language #c4bf69 —
token.variable.parameter.java #83a38f —
import.storage.java #c4bf69 —
token.package.keyword #578a35 —
entity.name.function, meta.require, support.function.any-method, variable.function #77dede —
entity.name.type.namespace #c4bf69 —
support.class, entity.name.type.class #c4bf69 —
entity.name.class.identifier.namespace.type #c4bf69 —
entity.name.class, variable.other.class.js, variable.other.class.ts #c4bf69 —
variable.other.class.php #88bf9e —
control.elements, keyword.operator.less #afc299 —
keyword.other.special-method #77dede —
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 #578a35 —
token.storage.type.java #c4bf69 —
support.type.property-name #83a38f —
support.constant.property-value #83a38f —
support.constant.font-name #afc299 —
entity.other.inherited-class #c4bf69 —
constant.other.symbol #88bf9e —
punctuation.definition.constant #afc299 —
entity.other.attribute-name #afc299 —
entity.other.attribute-name.id #77dede normal
entity.other.attribute-name.class.css #afc299 normal
markup.heading punctuation.definition.heading, entity.name.section #77dede —
keyword.other.unit #88bf9e —
markup.bold,todo.bold #afc299 —
punctuation.definition.bold #c4bf69 —
markup.italic, punctuation.definition.italic,todo.emphasis #578a35 —
entity.name.section.markdown #88bf9e —
punctuation.definition.heading.markdown #88bf9e —
punctuation.definition.list.begin.markdown #88bf9e —
markup.heading.setext #83a38f —
punctuation.definition.bold.markdown #afc299 —
markup.inline.raw.markdown #a7cb7c —
markup.inline.raw.string.markdown #a7cb7c —
punctuation.definition.list.markdown #88bf9e —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #88bf9e —
beginning.punctuation.definition.list.markdown #88bf9e —
punctuation.definition.metadata.markdown #88bf9e —
markup.underline.link.markdown,markup.underline.link.image.markdown #578a35 —
string.other.link.title.markdown,string.other.link.description.markdown #77dede —
constant.character.escape #88bf9e —
punctuation.section.embedded, variable.interpolation #88bf9e —
punctuation.section.embedded.begin,punctuation.section.embedded.end #578a35 —
invalid.illegal.bad-ampersand.html #83a38f —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #88bf9e —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #88bf9e —
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 #a7cb7c —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #88bf9e —
support.type.property-name.json #88bf9e —
support.type.property-name.json punctuation #88bf9e —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #578a35 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #578a35 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #c4bf69 —
keyword.operator.error-control.php #578a35 —
keyword.operator.type.php #578a35 —
punctuation.section.array.begin.php #83a38f —
punctuation.section.array.end.php #83a38f —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #c4bf69 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #77dede —
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 #83a38f —
support.constant.core.rust #afc299 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #afc299 —
entity.name.goto-label.php,support.other.php #77dede —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #88bf9e —
keyword.operator.regexp.php #578a35 —
keyword.operator.comparison.php #88bf9e —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #578a35 —
meta.function.decorator.python #77dede —
support.token.decorator.python,meta.function.decorator.identifier.python #88bf9e —
function.parameter #83a38f —
function.parameter.ruby, function.parameter.cs #83a38f —
constant.language.symbol.ruby #88bf9e —
inline-color-decoration rgb-value #afc299 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #c4bf69 —
block.scope.end,block.scope.begin #83a38f —
entity.name.variable.local.cs #88bf9e —
token.error-token #f44747 —
token.debug-token #578a35 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #578a35 —
meta.template.expression #83a38f —
keyword.operator.module #578a35 —
support.type.type.flowtype #77dede —
support.type.primitive #c4bf69 —
meta.property.object #88bf9e —
variable.parameter.function.js #88bf9e —
keyword.other.template.begin #a7cb7c —
keyword.other.template.end #a7cb7c —
keyword.other.substitution.begin #a7cb7c —
keyword.other.substitution.end #a7cb7c —
keyword.operator.assignment #88bf9e —
keyword.operator.assignment.go #c4bf69 —
keyword.operator.arithmetic.go, keyword.operator.address.go #578a35 —
entity.name.package.go #c4bf69 —
support.type.prelude.elm #88bf9e —
support.constant.elm #afc299 —
punctuation.quasi.element #578a35 —
constant.character.entity #88bf9e —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #88bf9e —
entity.global.clojure #c4bf69 —
meta.symbol.clojure #88bf9e —
constant.keyword.clojure #88bf9e —
meta.arguments.coffee, variable.parameter.function.coffee #88bf9e —
meta.scope.prerequisites.makefile #88bf9e —
storage.modifier.import.groovy #c4bf69 —
meta.method.groovy #77dede —
meta.definition.variable.name.groovy #88bf9e —
meta.definition.class.inherited.classes.groovy #a7cb7c —
support.variable.semantic.hlsl #c4bf69 —
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 #578a35 —
text.variable, text.bracketed #88bf9e —
support.type.swift, support.type.vb.asp #c4bf69 —
entity.name.function.xi #c4bf69 —
entity.name.class.xi #88bf9e —
constant.character.character-class.regexp.xi #88bf9e —
constant.regexp.xi #578a35 —
keyword.control.xi #88bf9e —
beginning.punctuation.definition.quote.markdown.xi #a7cb7c —
beginning.punctuation.definition.list.markdown.xi #7f848e —
constant.character.xi #77dede —
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 #c4bf69 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #88bf9e —
meta.brace.square #83a38f —
comment, punctuation.definition.comment #7f848e italic
markup.quote.markdown #7f848e —
punctuation.definition.block.sequence.item.yaml #83a38f —
constant.language.symbol.elixir #88bf9e —
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
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 $