Skip to main content
Home Theme VS Code green spring froggy theme A cute green nature/pond/frog themed light 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.activeBackground #ffffff00 activityBar.background #4e662a activityBar.border #ffffff00 activityBar.foreground #bfe67a activityBar.inactiveForeground #ffffff66 activityBarBadge.background #635ee6 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 #008ee6 — variable.other.generic-type.haskell #981dbc — storage.type.haskell #c75400 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
green spring froggy theme — green spring froggy theme
activityBarBadge.foreground #ffffff
badge.background #c4c4c4
badge.foreground #333333
breadcrumb.activeSelectionForeground #635ee6
breadcrumb.background #e8ffbf
breadcrumb.focusForeground #635ee6
breadcrumb.foreground #0b1f00
button.background #8188ff
button.foreground #ffffff
button.hoverBackground #635ee6
button.secondaryBackground #5f6a79
button.secondaryForeground #ffffff
button.secondaryHoverBackground #4c5561
checkbox.background #fffab6
checkbox.border #ffffff00
checkbox.foreground #0b1f00
debugExceptionWidget.background #fffab6
debugExceptionWidget.border #ffffff00
debugToolBar.background #fffab6
debugToolBar.border #ffffff00
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #afea2440
diffEditor.removedTextBackground #ff00e326
dropdown.background #fffab6
dropdown.border #ffffff00
dropdown.foreground #0b1f00
editor.background #e8ffbf
editor.findMatchBackground #a8ac94
editor.findMatchBorder #979b83
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #b4b4b44d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #add6ff4d
editor.foreground #000000
editor.hoverHighlightBackground #add6ff26
editor.inactiveSelectionBackground #e4e4e49f
editor.lineHighlightBackground #fffab678
editor.lineHighlightBorder #ffffff00
editor.rangeHighlightBackground #fdff0033
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #d1ffab
editor.selectionHighlightBackground #add6ff80
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #57575740
editor.wordHighlightStrongBackground #0e639c40
editorBracketMatch.background #0064001a
editorBracketMatch.border #b9b9b9
editorCodeLens.foreground #999999
editorCursor.background #ffffff
editorCursor.foreground #4e662a
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #e51400
editorGroup.border #e7e7e7
editorGroup.emptyBackground #e8ffbf
editorGroupHeader.border #ffffff00
editorGroupHeader.tabsBackground #bfe67a
editorGroupHeader.tabsBorder #ffffff00
editorGutter.addedBackground #81b88b
editorGutter.background #ffcece00
editorGutter.commentRangeForeground #424242
editorGutter.deletedBackground #ca4b51
editorGutter.foldingControlForeground #424242
editorGutter.modifiedBackground #d5c74f
editorHoverWidget.background #f3f3f3
editorHoverWidget.border #c8c8c8
editorHoverWidget.foreground #616161
editorIndentGuide.activeBackground #77cbffbd
editorIndentGuide.background #635ee6bd
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #75beff
editorLineNumber.activeForeground #A0A0A0
editorLineNumber.foreground #635ee6
editorLink.activeForeground #0000ff
editorMarkerNavigation.background #ffffff
editorMarkerNavigationError.background #e51400
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #e9a700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #ffffff00
editorSuggestWidget.background #fffab6
editorSuggestWidget.border #c8c8c8
editorSuggestWidget.foreground #0b1f00
editorSuggestWidget.highlightForeground #6863e8
editorSuggestWidget.selectedBackground #d6ebff
editorSuggestWidget.selectedForeground #0b1f00
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #e9a700
editorWhitespace.foreground #3064ff
editorWidget.background #f3f3f3
editorWidget.foreground #616161
editorWidget.resizeBorder #ffffff00
focusBorder #4e662a
foreground #616161
gitDecoration.addedResourceForeground #5c8800
gitDecoration.conflictingResourceForeground #4343e6
gitDecoration.deletedResourceForeground #ad0707
gitDecoration.ignoredResourceForeground #646464
gitDecoration.modifiedResourceForeground #a56500
gitDecoration.stageDeletedResourceForeground #ad0707
gitDecoration.stageModifiedResourceForeground #a56500
gitDecoration.submoduleResourceForeground #1258a7
gitDecoration.untrackedResourceForeground #007100
icon.foreground #616161
input.background #fffab6
input.border #ffffff00
input.foreground #0b1f00
input.placeholderForeground #767676
inputOption.activeBackground #7bd1c57c
inputOption.activeBorder #007acc00
inputOption.activeForeground #000000
list.activeSelectionBackground #4e662a
list.activeSelectionForeground #e8ffbf
list.dropBackground #e8ffbf85
list.focusBackground #fffab6
list.focusForeground #616161
list.highlightForeground #635ee6
list.hoverBackground #e8ffbf
list.hoverForeground #0b1f00
list.inactiveSelectionBackground #e8ffbf85
list.inactiveSelectionForeground #0b1f00
listFilterWidget.background #efade8
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #a357ff
menu.background #fffab6
menu.border #4e662a
menu.foreground #4e662a
menu.selectionBackground #4e662a
menu.selectionBorder #ffffff00
menu.selectionForeground #ffffff
menu.separatorBackground #888888
menubar.selectionBackground #0000001a
menubar.selectionForeground #333333
merge.commonContentBackground #E5E5E5
merge.commonHeaderBackground #BFBFBF
merge.currentContentBackground #DBF4EF
merge.currentHeaderBackground #A4E3D6
merge.incomingContentBackground #DBECFF
merge.incomingHeaderBackground #A6CFFF
minimap.background #e8ffbf
minimap.errorHighlight #e51400
minimap.findMatchHighlight #a8ac94
minimap.selectionHighlight #d1ffab
minimap.warningHighlight #e9a700
minimapGutter.addedBackground #81b88b
minimapGutter.deletedBackground #ca4b51
minimapGutter.modifiedBackground #d5c74f
notificationCenter.border #ffffff00
notificationCenterHeader.background #e7e7e7
notificationCenterHeader.foreground #616161
notifications.background #fffab6
notifications.border #ffffff00
notifications.foreground #0b1f00
notificationsErrorIcon.foreground #e51400
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #e9a700
notificationToast.border #ffffff00
panel.background #fffab6
panel.border #ffffff00
panelSection.border #bfe67a
panelTitle.activeBorder #4e662a
panelTitle.activeForeground #424242
panelTitle.inactiveForeground #424242bf
peekView.border #007acc
peekViewEditor.background #f2f8fc
peekViewEditor.matchHighlightBackground #f5d802de
peekViewEditor.matchHighlightBorder #dbc417
peekViewEditorGutter.background #f2f8fc
peekViewResult.background #f3f3f3
peekViewResult.fileForeground #1e1e1e
peekViewResult.lineForeground #646465
peekViewResult.matchHighlightBackground #ea5c004d
peekViewResult.selectionBackground #3399ff33
peekViewResult.selectionForeground #6c6c6c
peekViewTitle.background #ffffff
peekViewTitleDescription.foreground #616161e6
peekViewTitleLabel.foreground #333333
pickerGroup.border #ffffff00
pickerGroup.foreground #635ee6
progressBar.background #635ee6
scrollbar.shadow #dddddd
scrollbarSlider.activeBackground #54545499
scrollbarSlider.background #4e662a3c
scrollbarSlider.hoverBackground #64646460
selection.background #90f7e87a
settings.focusedRowBackground #ffffff07
settings.headerForeground #616161
sideBar.background #bfe67a
sideBar.border #ffffff00
sideBar.dropBackground #e8ffbf85
sideBar.foreground #0b1f00
sideBarSectionHeader.background #ffffff24
sideBarSectionHeader.border #ffffff00
sideBarSectionHeader.foreground #0b1f00
sideBarTitle.foreground #0b1f00
statusBar.background #4e662a
statusBar.border #ffffff00
statusBar.debuggingBackground #cc6633
statusBar.debuggingBorder #ffffff00
statusBar.debuggingForeground #ffffff
statusBar.foreground #bfe67a
statusBar.noFolderBackground #68217a
statusBar.noFolderBorder #ffffff00
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff00
statusBarItem.remoteBackground #77cbff
statusBarItem.remoteForeground #0b1f00
tab.activeBackground #e8ffbf
tab.activeBorder #ffffff00
tab.activeBorderTop #ffffff00
tab.activeForeground #0b1f00
tab.border #4e662a3a
tab.hoverBackground #e8ffbf
tab.hoverBorder #ffffff00
tab.inactiveBackground #bfe67a
tab.inactiveForeground #424242bf
terminal.ansiBlack #000000
terminal.ansiBlue #0451a5
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #0451a5
terminal.ansiBrightCyan #0598bc
terminal.ansiBrightGreen #14ce14
terminal.ansiBrightMagenta #bc05bc
terminal.ansiBrightRed #cd3131
terminal.ansiBrightWhite #a5a5a5
terminal.ansiBrightYellow #b5ba00
terminal.ansiCyan #0598bc
terminal.ansiGreen #00bc00
terminal.ansiMagenta #bc05bc
terminal.ansiRed #cd3131
terminal.ansiWhite #555555
terminal.ansiYellow #949800
terminal.border #bfe67a
terminal.foreground #4e662a
terminal.selectionBackground #d1ffab42
terminalCursor.background #bfe67a
terminalCursor.foreground #4e662a
textLink.foreground #006ab1
titleBar.activeBackground #77cbff
titleBar.activeForeground #000000
titleBar.border #ffffff00
titleBar.inactiveBackground #a2ffee99
titleBar.inactiveForeground #00000099
tree.indentGuidesStroke #a9a9a9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000029 #008ee6
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #000000 —
variable.parameter.function.language.special.self.python #999600 —
storage.modifier.lifetime.rust #000000 —
support.function.std.rust #9f0000 —
entity.name.lifetime.rust #999600 —
variable.language.rust #008ee6 —
support.constant.edge #981dbc —
constant.other.character-class.regexp #008ee6 —
keyword.operator.quantifier.regexp #c75400 —
punctuation.definition.string.begin,punctuation.definition.string.end #45a500 —
variable.parameter.function #000000 —
comment markup.link #9ab683 —
markup.changed.diff #999600 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #9f0000 —
markup.inserted.diff #45a500 —
markup.deleted.diff #008ee6 —
meta.function.c,meta.function.cpp #008ee6 —
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 #000000 —
punctuation.separator.key-value #000000 —
keyword.operator.expression.import #9f0000 —
support.constant.math #999600 —
support.constant.property.math #c75400 —
variable.other.constant #999600 —
storage.type.annotation.java, storage.type.object.array.java #999600 —
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 #000000 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #999600 —
keyword.operator.instanceof.java #981dbc —
meta.definition.variable.name.java #008ee6 —
keyword.operator.logical #635ee6 —
keyword.operator.bitwise #635ee6 —
keyword.operator.channel #635ee6 —
support.constant.property-value.scss,support.constant.property-value.css #c75400 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #635ee6 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #c75400 —
punctuation.separator.list.comma.css #000000 —
support.constant.color.w3c-standard-color-name.css #c75400 —
support.type.vendored.property-name.css #635ee6 —
support.module.node,support.type.object.module,support.module.node #999600 —
entity.name.type.module #999600 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #008ee6 —
support.constant.json #c75400 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #981dbc —
support.type.object.console #008ee6 —
support.variable.property.process #c75400 —
entity.name.function,support.function.console #9f0000 —
keyword.operator.misc.rust #000000 —
keyword.operator.sigil.rust #981dbc —
keyword.operator.delete #981dbc —
support.type.object.dom #635ee6 —
support.variable.dom,support.variable.property.dom #008ee6 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #635ee6 —
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 #981dbc —
punctuation.separator.delimiter #000000 —
punctuation.separator.c,punctuation.separator.cpp #981dbc —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #635ee6 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #981dbc —
variable.parameter.function.language.python #c75400 —
support.type.python #635ee6 —
keyword.operator.logical.python #981dbc —
variable.parameter.function.python #c75400 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #000000 —
meta.function-call.generic.python #9f0000 —
constant.character.format.placeholder.other.python #c75400 —
keyword.operator.assignment.compound #981dbc —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #635ee6 —
entity.name.namespace #999600 —
variable.language #999600 —
token.variable.parameter.java #000000 —
import.storage.java #999600 —
token.package.keyword #981dbc —
entity.name.function, meta.require, support.function.any-method, variable.function #9f0000 —
entity.name.type.namespace #999600 —
support.class, entity.name.type.class #999600 —
entity.name.class.identifier.namespace.type #999600 —
entity.name.class, variable.other.class.js, variable.other.class.ts #999600 —
variable.other.class.php #008ee6 —
control.elements, keyword.operator.less #c75400 —
keyword.other.special-method #9f0000 —
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 #981dbc —
token.storage.type.java #999600 —
support.type.property-name #000000 —
support.constant.property-value #000000 —
support.constant.font-name #c75400 —
entity.other.inherited-class #999600 —
constant.other.symbol #635ee6 —
punctuation.definition.constant #c75400 —
entity.other.attribute-name #c75400 —
entity.other.attribute-name.id #9f0000 normal
entity.other.attribute-name.class.css #c75400 normal
markup.heading punctuation.definition.heading, entity.name.section #9f0000 —
keyword.other.unit #008ee6 —
markup.bold,todo.bold #c75400 —
punctuation.definition.bold #999600 —
markup.italic, punctuation.definition.italic,todo.emphasis #981dbc —
entity.name.section.markdown #008ee6 —
punctuation.definition.heading.markdown #008ee6 —
punctuation.definition.list.begin.markdown #008ee6 —
markup.heading.setext #000000 —
punctuation.definition.bold.markdown #c75400 —
markup.inline.raw.markdown #45a500 —
markup.inline.raw.string.markdown #45a500 —
punctuation.definition.list.markdown #008ee6 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #008ee6 —
beginning.punctuation.definition.list.markdown #008ee6 —
punctuation.definition.metadata.markdown #008ee6 —
markup.underline.link.markdown,markup.underline.link.image.markdown #981dbc —
string.other.link.title.markdown,string.other.link.description.markdown #9f0000 —
constant.character.escape #635ee6 —
punctuation.section.embedded, variable.interpolation #008ee6 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #981dbc —
invalid.illegal.bad-ampersand.html #000000 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #008ee6 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #008ee6 —
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 #45a500 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #635ee6 —
support.type.property-name.json #008ee6 —
support.type.property-name.json punctuation #008ee6 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #981dbc —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #981dbc —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #999600 —
keyword.operator.error-control.php #981dbc —
keyword.operator.type.php #981dbc —
punctuation.section.array.begin.php #000000 —
punctuation.section.array.end.php #000000 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #999600 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #9f0000 —
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 #000000 —
support.constant.core.rust #c75400 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #c75400 —
entity.name.goto-label.php,support.other.php #9f0000 —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #635ee6 —
keyword.operator.regexp.php #981dbc —
keyword.operator.comparison.php #635ee6 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #981dbc —
meta.function.decorator.python #9f0000 —
support.token.decorator.python,meta.function.decorator.identifier.python #635ee6 —
function.parameter #000000 —
function.parameter.ruby, function.parameter.cs #000000 —
constant.language.symbol.ruby #635ee6 —
inline-color-decoration rgb-value #c75400 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #999600 —
block.scope.end,block.scope.begin #000000 —
entity.name.variable.local.cs #008ee6 —
token.error-token #f44747 —
token.debug-token #981dbc —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #981dbc —
meta.template.expression #000000 —
keyword.operator.module #981dbc —
support.type.type.flowtype #9f0000 —
support.type.primitive #999600 —
meta.property.object #008ee6 —
variable.parameter.function.js #008ee6 —
keyword.other.template.begin #45a500 —
keyword.other.template.end #45a500 —
keyword.other.substitution.begin #45a500 —
keyword.other.substitution.end #45a500 —
keyword.operator.assignment #635ee6 —
keyword.operator.assignment.go #999600 —
keyword.operator.arithmetic.go, keyword.operator.address.go #981dbc —
entity.name.package.go #999600 —
support.type.prelude.elm #635ee6 —
support.constant.elm #c75400 —
punctuation.quasi.element #981dbc —
constant.character.entity #008ee6 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #635ee6 —
entity.global.clojure #999600 —
meta.symbol.clojure #008ee6 —
constant.keyword.clojure #635ee6 —
meta.arguments.coffee, variable.parameter.function.coffee #008ee6 —
meta.scope.prerequisites.makefile #008ee6 —
storage.modifier.import.groovy #999600 —
meta.method.groovy #9f0000 —
meta.definition.variable.name.groovy #008ee6 —
meta.definition.class.inherited.classes.groovy #45a500 —
support.variable.semantic.hlsl #999600 —
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 #981dbc —
text.variable, text.bracketed #008ee6 —
support.type.swift, support.type.vb.asp #999600 —
entity.name.function.xi #999600 —
entity.name.class.xi #635ee6 —
constant.character.character-class.regexp.xi #008ee6 —
constant.regexp.xi #981dbc —
keyword.control.xi #635ee6 —
beginning.punctuation.definition.quote.markdown.xi #45a500 —
beginning.punctuation.definition.list.markdown.xi #9ab683 —
constant.character.xi #9f0000 —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #9ab683 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #999600 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #008ee6 —
meta.brace.square #000000 —
comment, punctuation.definition.comment #9ab683 italic
markup.quote.markdown #9ab683 —
punctuation.definition.block.sequence.item.yaml #000000 —
constant.language.symbol.elixir #635ee6 —
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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
main*
Button.tsx
fetchUser
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 } !` ;
}
green spring froggy theme | Coding Theme