Skip to main content
Home Theme VS Code Forge Light and Dark themes using Forge component library colors.
Forge | 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.activeBackground #415662 activityBar.background #293840 activityBar.border #ccd2d5 activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #4eaddd 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 #4eaddd — variable.other.generic-type.haskell #415662 — storage.type.haskell #eb484b — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#ffffff
badge.background #e6e9eb
badge.foreground #7a8991
breadcrumb.activeSelectionForeground #415662
breadcrumb.background #ffffff
breadcrumb.focusForeground #415662
breadcrumb.foreground #7a8991
button.background #4eaddd
button.foreground #ffffff
button.hoverBackground #0076a4
button.secondaryBackground #7a8991
button.secondaryForeground #ffffff
button.secondaryHoverBackground #415662
checkbox.background #ffffff
checkbox.border #00000000
checkbox.foreground #415662
debugExceptionWidget.background #ffffff
debugExceptionWidget.border #ccd2d5
debugToolBar.background #ffffff
debugToolBar.border #ccd2d5
diffEditor.border #ccd2d5
diffEditor.insertedTextBackground #cefee1
diffEditor.insertedTextBorder #a7f5c8
diffEditor.removedTextBackground #ffe6e3
diffEditor.removedTextBorder #ffd4d0
dropdown.background #ffffff
dropdown.border #00000000
dropdown.foreground #415662
editor.background #ffffff
editor.findMatchBackground #a7f5c8
editor.findMatchBorder #94e6b8
editor.findMatchHighlightBackground #ffedbf
editor.findMatchHighlightBorder #ffe4af
editor.findRangeHighlightBackground #b4b4b44d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #e6f6ff
editor.foreground #415662
editor.hoverHighlightBackground #e6f6ff
editor.inactiveSelectionBackground #e6e9eb
editor.lineHighlightBackground #e6e9eb
editor.lineHighlightBorder #ccd2d5
editor.rangeHighlightBackground #fdff0033
editor.rangeHighlightBorder #e6e9eb
editor.selectionBackground #e6f6ff
editor.selectionHighlightBackground #e6f6ff
editor.selectionHighlightBorder #ccedff
editor.wordHighlightBackground #e6e9eb
editor.wordHighlightBorder #ccd2d5
editor.wordHighlightStrongBackground #0e639c40
editor.wordHighlightStrongBorder #ccedff
editorBracketMatch.background #e6e9eb
editorBracketMatch.border #ccd2d5
editorCodeLens.foreground #ccd2d5
editorCursor.background #ffffff
editorCursor.foreground #415662
editorError.background #ffd4d0
editorError.border #ffbcb6
editorError.foreground #eb484b
editorGroup.border #ccd2d5
editorGroup.emptyBackground #ffffff
editorGroupHeader.border #ccd2d5
editorGroupHeader.tabsBackground #e6e9eb
editorGroupHeader.tabsBorder #ccd2d5
editorGutter.addedBackground #4cc88c
editorGutter.background #e6e9eb
editorGutter.commentRangeForeground #7a8991
editorGutter.deletedBackground #ff837d
editorGutter.foldingControlForeground #7a8991
editorGutter.modifiedBackground #7bcaf4
editorHoverWidget.background #e6e9eb
editorHoverWidget.border #ccd2d5
editorHoverWidget.foreground #415662
editorIndentGuide.activeBackground #b2bbc0
editorIndentGuide.background #ccd2d5
editorInfo.background #e6f6ff
editorInfo.border #ccedff
editorInfo.foreground #4eaddd
editorLineNumber.activeForeground #0b216f
editorLineNumber.foreground #7a8991
editorLink.activeForeground #0076a4
editorMarkerNavigation.background #ffffff
editorMarkerNavigationError.background #eb484b
editorMarkerNavigationInfo.background #4eaddd
editorMarkerNavigationWarning.background #f3b942
editorOverviewRuler.background #e6e9eb
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #ccd2d5
editorSuggestWidget.background #ffffff
editorSuggestWidget.border #ccd2d5
editorSuggestWidget.foreground #415662
editorSuggestWidget.highlightForeground #0076a4
editorSuggestWidget.selectedBackground #e6f6ff
editorWarning.background #ffedbf
editorWarning.border #ffe4af
editorWarning.foreground #f3b942
editorWhitespace.foreground #ccd2d5
editorWidget.background #ffffff
editorWidget.foreground #415662
editorWidget.resizeBorder #ccd2d5
focusBorder #4eaddd
foreground #415662
gitDecoration.addedResourceForeground #00a367
gitDecoration.conflictingResourceForeground #574de6
gitDecoration.deletedResourceForeground #eb484b
gitDecoration.ignoredResourceForeground #7a8991
gitDecoration.modifiedResourceForeground #543700
gitDecoration.stageDeletedResourceForeground #a5252b
gitDecoration.stageModifiedResourceForeground #3e2800
gitDecoration.submoduleResourceForeground #0076a4
gitDecoration.untrackedResourceForeground #006f42
icon.foreground #415662
input.background #ffffff
input.border #00000000
input.foreground #415662
input.placeholderForeground #b2bbc0
inputOption.activeBackground #4eaddd50
inputOption.activeBorder #4eaddd25
inputOption.activeForeground #0076a4
list.activeSelectionBackground #4eaddd
list.activeSelectionForeground #ffffff
list.dropBackground #d6ebff
list.focusBackground #d6ebff
list.focusForeground #415662
list.highlightForeground #0066bf
list.hoverBackground #ccedff
list.hoverForeground #415662
list.inactiveSelectionBackground #ccd2d5
list.inactiveSelectionForeground #7a8991
listFilterWidget.background #ffedbf
listFilterWidget.noMatchesOutline #eb484b
listFilterWidget.outline #00000000
menu.background #ffffff
menu.border #ccd2d5
menu.foreground #415662
menu.selectionBackground #4eaddd
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #ccd2d5
menubar.selectionBackground #0000001a
menubar.selectionBorder #ccd2d5
menubar.selectionForeground #415662
merge.commonContentBackground #e6e9eb
merge.commonHeaderBackground #ccd2d5
merge.currentContentBackground #cefee1
merge.currentHeaderBackground #a7f5c8
merge.incomingContentBackground #e6f6ff
merge.incomingHeaderBackground #ccedff
minimap.background #ffffff
minimap.errorHighlight #eb484b
minimap.findMatchHighlight #a7f5c8
minimap.selectionHighlight #e6f6ff
minimap.warningHighlight #f3b942
minimapGutter.addedBackground #4cc88c
minimapGutter.deletedBackground #ff837d
minimapGutter.modifiedBackground #7bcaf4
notificationCenter.border #ccd2d5
notificationCenterHeader.background #e6e9eb
notificationCenterHeader.foreground #7a8991
notifications.background #ffffff
notifications.border #ccd2d5
notifications.foreground #415662
notificationsErrorIcon.foreground #eb484b
notificationsInfoIcon.foreground #4eaddd
notificationsWarningIcon.foreground #f3b942
notificationToast.border #ccd2d5
panel.background #ffffff
panel.border #ccd2d5
panelSection.border #ccd2d5
panelTitle.activeBorder #4eaddd
panelTitle.activeForeground #415662
panelTitle.inactiveForeground #7a8991
peekView.border #4eaddd
peekViewEditor.background #e6f6ff
peekViewEditor.matchHighlightBackground #ffedbf
peekViewEditor.matchHighlightBorder #ffe4af
peekViewEditorGutter.background #ccedff
peekViewResult.background #ffffff
peekViewResult.fileForeground #415662
peekViewResult.lineForeground #415662
peekViewResult.matchHighlightBackground #ffedbf
peekViewResult.selectionBackground #e6f6ff
peekViewResult.selectionForeground #0076a4
peekViewTitle.background #ffffff
peekViewTitleDescription.foreground #7a8991
peekViewTitleLabel.foreground #415662
pickerGroup.border #ccd2d5
pickerGroup.foreground #4eaddd
progressBar.background #4eaddd
scrollbar.shadow #00000025
scrollbarSlider.activeBackground #41566250
scrollbarSlider.background #41566212
scrollbarSlider.hoverBackground #41566225
selection.background #e6f6ff
settings.focusedRowBackground #ffffff07
settings.headerForeground #415662
sideBar.background #e6e9eb
sideBar.border #ccd2d5
sideBar.dropBackground #d6ebff
sideBar.foreground #415662
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #61616130
sideBarSectionHeader.foreground #415662
sideBarTitle.foreground #415662
statusBar.background #4eaddd
statusBar.border #ccd2d5
statusBar.debuggingBackground #ffedbf
statusBar.debuggingBorder #ffe4af
statusBar.debuggingForeground #543700
statusBar.foreground #ffffff
statusBar.noFolderBackground #fbe1ff
statusBar.noFolderBorder #f0c4ff
statusBar.noFolderForeground #310040
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #0076a4
statusBarItem.remoteForeground #ffffff
tab.activeBackground #ffffff
tab.activeBorder #ffffff
tab.activeBorderTop #4eaddd
tab.activeForeground #415662
tab.border #ccd2d5
tab.hoverBackground #ffffff
tab.hoverBorder #ccd2d5
tab.hoverForeground #415662
tab.inactiveBackground #e6e9eb
tab.inactiveForeground #7a8991
terminal.ansiBlack #000000
terminal.ansiBlue #4eaddd
terminal.ansiBrightBlack #666666
terminal.ansiBrightBlue #0076a4
terminal.ansiBrightCyan #007f83
terminal.ansiBrightGreen #006f42
terminal.ansiBrightMagenta #6b0089
terminal.ansiBrightRed #a5252b
terminal.ansiBrightWhite #b2bbc0
terminal.ansiBrightYellow #a97b0c
terminal.ansiCyan #00bbc2
terminal.ansiGreen #00a367
terminal.ansiMagenta #9b00c2
terminal.ansiRed #eb484b
terminal.ansiWhite #7a8991
terminal.ansiYellow #f3b942
terminal.border #ccd2d5
terminal.foreground #415662
terminal.selectionBackground #e6f6ff25
terminalCursor.background #e6f6ff
terminalCursor.foreground #4eaddd
textLink.foreground #4eaddd
titleBar.activeBackground #ffffff
titleBar.activeForeground #7a8991
titleBar.border #00000000
titleBar.inactiveBackground #dddddd99
titleBar.inactiveForeground #33333399
tree.indentGuidesStroke #a9a9a9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000023 #4eaddd
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #415662 —
variable.parameter.function.language.special.self.python #080e11 —
storage.modifier.lifetime.rust #415662 —
support.function.std.rust #eb484b —
entity.name.lifetime.rust #080e11 —
variable.language.rust #4eaddd —
support.constant.edge #415662 —
constant.other.character-class.regexp #4eaddd —
keyword.operator.quantifier.regexp #eb484b —
punctuation.definition.string.begin,punctuation.definition.string.end #415662 —
variable.parameter.function #415662 —
comment markup.link #7a8991 —
markup.changed.diff #080e11 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #eb484b —
markup.inserted.diff #415662 —
markup.deleted.diff #4eaddd —
meta.function.c,meta.function.cpp #4eaddd —
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 #415662 —
punctuation.separator.key-value #415662 —
keyword.operator.expression.import #eb484b —
support.constant.math #080e11 —
support.constant.property.math #eb484b —
variable.other.constant #080e11 —
storage.type.annotation.java, storage.type.object.array.java #080e11 —
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 #415662 —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #080e11 —
keyword.operator.instanceof.java #415662 —
meta.definition.variable.name.java #4eaddd —
keyword.operator.logical #4eaddd —
keyword.operator.bitwise #4eaddd —
keyword.operator.channel #4eaddd —
support.constant.property-value.scss,support.constant.property-value.css #eb484b —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #4eaddd —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #eb484b —
punctuation.separator.list.comma.css #415662 —
support.constant.color.w3c-standard-color-name.css #eb484b —
support.type.vendored.property-name.css #4eaddd —
support.module.node,support.type.object.module,support.module.node #080e11 —
entity.name.type.module #080e11 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #4eaddd —
support.constant.json #eb484b —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #415662 —
support.type.object.console #4eaddd —
support.variable.property.process #eb484b —
entity.name.function,support.function.console #eb484b —
keyword.operator.misc.rust #415662 —
keyword.operator.sigil.rust #415662 —
keyword.operator.delete #415662 —
support.type.object.dom #4eaddd —
support.variable.dom,support.variable.property.dom #4eaddd —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #4eaddd —
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 #415662 —
punctuation.separator.delimiter #415662 —
punctuation.separator.c,punctuation.separator.cpp #415662 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #4eaddd —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #415662 —
variable.parameter.function.language.python #eb484b —
support.type.python #4eaddd —
keyword.operator.logical.python #415662 —
variable.parameter.function.python #eb484b —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #415662 —
meta.function-call.generic.python #eb484b —
constant.character.format.placeholder.other.python #eb484b —
keyword.operator.assignment.compound #415662 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #4eaddd —
entity.name.namespace #080e11 —
variable.language #080e11 —
token.variable.parameter.java #415662 —
import.storage.java #080e11 —
token.package.keyword #415662 —
entity.name.function, meta.require, support.function.any-method, variable.function #eb484b —
entity.name.type.namespace #080e11 —
support.class, entity.name.type.class #080e11 —
entity.name.class.identifier.namespace.type #080e11 —
entity.name.class, variable.other.class.js, variable.other.class.ts #080e11 —
variable.other.class.php #4eaddd —
control.elements, keyword.operator.less #eb484b —
keyword.other.special-method #eb484b —
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 #415662 —
token.storage.type.java #080e11 —
support.type.property-name #415662 —
support.constant.property-value #415662 —
support.constant.font-name #eb484b —
entity.other.inherited-class #080e11 —
constant.other.symbol #4eaddd —
punctuation.definition.constant #eb484b —
entity.other.attribute-name #eb484b —
entity.other.attribute-name.id #eb484b normal
entity.other.attribute-name.class.css #eb484b normal
markup.heading punctuation.definition.heading, entity.name.section #eb484b —
keyword.other.unit #4eaddd —
markup.bold,todo.bold #eb484b —
punctuation.definition.bold #080e11 —
markup.italic, punctuation.definition.italic,todo.emphasis #415662 —
entity.name.section.markdown #4eaddd —
punctuation.definition.heading.markdown #4eaddd —
punctuation.definition.list.begin.markdown #4eaddd —
markup.heading.setext #415662 —
punctuation.definition.bold.markdown #eb484b —
markup.inline.raw.markdown #415662 —
markup.inline.raw.string.markdown #415662 —
punctuation.definition.list.markdown #4eaddd —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #4eaddd —
beginning.punctuation.definition.list.markdown #4eaddd —
punctuation.definition.metadata.markdown #4eaddd —
markup.underline.link.markdown,markup.underline.link.image.markdown #415662 —
string.other.link.title.markdown,string.other.link.description.markdown #eb484b —
constant.character.escape #4eaddd —
punctuation.section.embedded, variable.interpolation #4eaddd —
punctuation.section.embedded.begin,punctuation.section.embedded.end #415662 —
invalid.illegal.bad-ampersand.html #415662 —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #4eaddd —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #4eaddd —
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 #415662 —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #4eaddd —
support.type.property-name.json #4eaddd —
support.type.property-name.json punctuation #4eaddd —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #415662 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #415662 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #080e11 —
keyword.operator.error-control.php #415662 —
keyword.operator.type.php #415662 —
punctuation.section.array.begin.php #415662 —
punctuation.section.array.end.php #415662 —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #080e11 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #eb484b —
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 #415662 —
support.constant.core.rust #eb484b —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #eb484b —
entity.name.goto-label.php,support.other.php #eb484b —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #4eaddd —
keyword.operator.regexp.php #415662 —
keyword.operator.comparison.php #4eaddd —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #415662 —
meta.function.decorator.python #eb484b —
support.token.decorator.python,meta.function.decorator.identifier.python #4eaddd —
function.parameter #415662 —
function.parameter.ruby, function.parameter.cs #415662 —
constant.language.symbol.ruby #4eaddd —
inline-color-decoration rgb-value #eb484b —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #080e11 —
block.scope.end,block.scope.begin #415662 —
entity.name.variable.local.cs #4eaddd —
token.error-token #f44747 —
token.debug-token #415662 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #415662 —
meta.template.expression #415662 —
keyword.operator.module #415662 —
support.type.type.flowtype #eb484b —
support.type.primitive #080e11 —
meta.property.object #4eaddd —
variable.parameter.function.js #4eaddd —
keyword.other.template.begin #415662 —
keyword.other.template.end #415662 —
keyword.other.substitution.begin #415662 —
keyword.other.substitution.end #415662 —
keyword.operator.assignment #4eaddd —
keyword.operator.assignment.go #080e11 —
keyword.operator.arithmetic.go, keyword.operator.address.go #415662 —
entity.name.package.go #080e11 —
support.type.prelude.elm #4eaddd —
support.constant.elm #eb484b —
punctuation.quasi.element #415662 —
constant.character.entity #4eaddd —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #4eaddd —
entity.global.clojure #080e11 —
meta.symbol.clojure #4eaddd —
constant.keyword.clojure #4eaddd —
meta.arguments.coffee, variable.parameter.function.coffee #4eaddd —
meta.scope.prerequisites.makefile #4eaddd —
storage.modifier.import.groovy #080e11 —
meta.method.groovy #eb484b —
meta.definition.variable.name.groovy #4eaddd —
meta.definition.class.inherited.classes.groovy #415662 —
support.variable.semantic.hlsl #080e11 —
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 #415662 —
text.variable, text.bracketed #4eaddd —
support.type.swift, support.type.vb.asp #080e11 —
entity.name.function.xi #080e11 —
entity.name.class.xi #4eaddd —
constant.character.character-class.regexp.xi #4eaddd —
constant.regexp.xi #415662 —
keyword.control.xi #4eaddd —
beginning.punctuation.definition.quote.markdown.xi #415662 —
beginning.punctuation.definition.list.markdown.xi #7a8991 —
constant.character.xi #eb484b —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #7a8991 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #080e11 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #4eaddd —
meta.brace.square #415662 —
comment, punctuation.definition.comment #7a8991 italic
markup.quote.markdown #7a8991 —
punctuation.definition.block.sequence.item.yaml #415662 —
constant.language.symbol.elixir #4eaddd —
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
~/my-project
$
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 }!` ;
}