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.background #0e161a activityBar.foreground #ffffff activityBar.inactiveForeground #ffffff66 activityBarBadge.background #4eaddd 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 #4eaddd — variable.other.generic-type.haskell #b2bbc0 — storage.type.haskell #eb484b — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
badge.foreground
#ffffff
breadcrumb.activeSelectionForeground #ffffff
breadcrumb.background #080e11
breadcrumb.focusForeground #ffffff
breadcrumb.foreground #ffffff50
button.background #4eaddd
button.foreground #ffffff
button.hoverBackground #0076a4
button.secondaryBackground #293840
button.secondaryForeground #ffffff
button.secondaryHoverBackground #415662
checkbox.background #080e11
checkbox.border #00000000
checkbox.foreground #cccccc
debugExceptionWidget.background #0e161a
debugExceptionWidget.border #293840
debugToolBar.background #0e161a
debugToolBar.border #293840
diffEditor.border #293840
diffEditor.insertedTextBackground #00a36725
diffEditor.insertedTextBorder #00a36725
diffEditor.removedTextBackground #eb484b25
diffEditor.removedTextBorder #eb484b25
dropdown.background #080e11
dropdown.border #00000000
dropdown.foreground #cccccc
editor.background #080e11
editor.findMatchBackground #4eaddd25
editor.findMatchBorder #4eaddd50
editor.findMatchHighlightBackground #eb484b25
editor.findMatchHighlightBorder #eb484b50
editor.findRangeHighlightBackground #4eaddd25
editor.findRangeHighlightBorder #4eaddd50
editor.foldBackground #264f784d
editor.foreground #ffffff
editor.hoverHighlightBackground #264f7840
editor.inactiveSelectionBackground #293840
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #ffffff10
editor.rangeHighlightBackground #ffffff0b
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #00273d
editor.selectionHighlightBackground #41566225
editor.selectionHighlightBorder #41566250
editor.wordHighlightBackground #575757b8
editor.wordHighlightStrongBackground #4eaddd25
editorBracketMatch.background #0064001a
editorBracketMatch.border #ffffff25
editorCodeLens.foreground #7a8991
editorCursor.background #080e11
editorCursor.foreground #b2bbc0
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #ff837d
editorGroup.border #293840
editorGroup.emptyBackground #080e11
editorGroupHeader.border #293840
editorGroupHeader.tabsBackground #0e161a
editorGutter.addedBackground #4cc88c
editorGutter.background #0e161a
editorGutter.commentRangeForeground #415662
editorGutter.deletedBackground #eb484b
editorGutter.foldingControlForeground #415662
editorGutter.modifiedBackground #4eaddd
editorHoverWidget.background #080e11
editorHoverWidget.border #293840
editorHoverWidget.foreground #b2bbc0
editorIndentGuide.activeBackground #ffffff25
editorIndentGuide.background #ffffff25
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #7bcaf4
editorLineNumber.activeForeground #b2bbc0
editorLineNumber.foreground #7a8991
editorLink.activeForeground #4eaddd
editorMarkerNavigation.background #293840
editorMarkerNavigationError.background #ff837d
editorMarkerNavigationInfo.background #7bcaf4
editorMarkerNavigationWarning.background #ffce71
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #ffffff25
editorSuggestWidget.background #080e11
editorSuggestWidget.border #293840
editorSuggestWidget.foreground #ffffff
editorSuggestWidget.highlightForeground #4eaddd
editorSuggestWidget.selectedBackground #003653
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #ffce71
editorWhitespace.foreground #41566262
editorWidget.background #0e161a
editorWidget.foreground #ffffff
editorWidget.resizeBorder #293840
focusBorder #4eaddd
foreground #ffffff
gitDecoration.addedResourceForeground #00a367
gitDecoration.conflictingResourceForeground #574de6
gitDecoration.deletedResourceForeground #eb484b
gitDecoration.ignoredResourceForeground #7a8991
gitDecoration.modifiedResourceForeground #f3b942
gitDecoration.stageDeletedResourceForeground #f55600
gitDecoration.stageModifiedResourceForeground #ffe4af
gitDecoration.submoduleResourceForeground #b1e3ff
gitDecoration.untrackedResourceForeground #94e6b8
icon.foreground #ffffff
input.background #080e11
input.border #00000000
input.foreground #cccccc
input.placeholderForeground #b2bbc0
inputOption.activeBackground #4eaddd
inputOption.activeBorder #007acc00
inputOption.activeForeground #ffffff
list.activeSelectionBackground #003653
list.activeSelectionForeground #ffffff
list.dropBackground #ffffff10
list.focusBackground #003653
list.focusForeground #ffffff
list.highlightForeground #4eaddd
list.hoverBackground #ffffff25
list.hoverForeground #ffffff
list.inactiveSelectionBackground #ffffff10
list.inactiveSelectionForeground #ffffff75
listFilterWidget.background #543700
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #080e11
menu.border #293840
menu.foreground #ffffff88
menu.selectionBackground #003653
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #ffffff25
menubar.selectionBackground #ffffff1a
menubar.selectionForeground #cccccc
merge.commonContentBackground #0e161a
merge.commonHeaderBackground #293840
merge.currentContentBackground #002b2d
merge.currentHeaderBackground #003b3e
merge.incomingContentBackground #00273d
merge.incomingHeaderBackground #003653
minimap.background #080e11
minimap.errorHighlight #ff837d
minimap.findMatchHighlight #4eaddd25
minimap.selectionHighlight #00273d
minimap.warningHighlight #ffce71
minimapGutter.addedBackground #4cc88c
minimapGutter.deletedBackground #eb484b
minimapGutter.modifiedBackground #4eaddd
notificationCenter.border #293840
notificationCenterHeader.background #293840
notificationCenterHeader.foreground #cccccc
notifications.background #0e161a
notifications.border #293840
notifications.foreground #ffffff
notificationsErrorIcon.foreground #eb484b
notificationsInfoIcon.foreground #4eaddd
notificationsWarningIcon.foreground #f3b942
notificationToast.border #293840
panel.background #080e11
panel.border #80808059
panelSection.border #80808059
panelTitle.activeBorder #e7e7e7
panelTitle.activeForeground #e7e7e7
panelTitle.inactiveForeground #e7e7e799
peekView.border #4eaddd
peekViewEditor.background #00273d
peekViewEditor.matchHighlightBackground #f3b94250
peekViewEditor.matchHighlightBorder #f3b94250
peekViewEditorGutter.background #003653
peekViewResult.background #080e11
peekViewResult.fileForeground #ffffff
peekViewResult.lineForeground #ffffff25
peekViewResult.matchHighlightBackground #f3b94225
peekViewResult.selectionBackground #4eaddd25
peekViewResult.selectionForeground #ffffff
peekViewTitle.background #293840
peekViewTitleDescription.foreground #b2bbc0
peekViewTitleLabel.foreground #ffffff
pickerGroup.border #ffffff10
pickerGroup.foreground #4eaddd
progressBar.background #4eaddd
scrollbar.shadow #000000
scrollbarSlider.activeBackground #ffffff25
scrollbarSlider.background #ffffff10
scrollbarSlider.hoverBackground #ffffff25
selection.background #4eaddd
settings.focusedRowBackground #ffffff07
settings.headerForeground #ffffff
sideBar.background #080e11
sideBar.dropBackground #ffffff10
sideBar.foreground #cccccc
sideBarSectionHeader.background #00000000
sideBarSectionHeader.border #cccccc33
sideBarSectionHeader.foreground #cccccc
sideBarTitle.foreground #bbbbbb
statusBar.background #293840
statusBar.border #293840
statusBar.debuggingBackground #543700
statusBar.debuggingBorder #a97b0c
statusBar.debuggingForeground #ffffff
statusBar.foreground #ffffff
statusBar.noFolderBackground #310040
statusBar.noFolderBorder #6b0089
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #080e11
statusBarItem.remoteForeground #ffffff
tab.activeBackground #080e11
tab.activeBorder #ffffff00
tab.activeBorderTop #4eaddd
tab.activeForeground #ffffff
tab.border #293840
tab.hoverBackground #080e11
tab.hoverForeground #ffffff
tab.inactiveBackground #0e161a
tab.inactiveForeground #ffffff75
terminal.ansiBlack #415662
terminal.ansiBlue #2472c8
terminal.ansiBrightBlack #7a8991
terminal.ansiBrightBlue #4eaddd
terminal.ansiBrightCyan #8ceff4
terminal.ansiBrightGreen #94e6b8
terminal.ansiBrightMagenta #e7a4ff
terminal.ansiBrightRed #ff837d
terminal.ansiBrightWhite #e5e5e5
terminal.ansiBrightYellow #ffce71
terminal.ansiCyan #3bd9e0
terminal.ansiGreen #4cc88c
terminal.ansiMagenta #c661e9
terminal.ansiRed #eb484b
terminal.ansiWhite #e5e5e5
terminal.ansiYellow #f3b942
terminal.border #80808059
terminal.foreground #cccccc
terminal.selectionBackground #ffffff40
terminalCursor.background #4eaddd
terminalCursor.foreground #ffffff
textLink.foreground #4eaddd
titleBar.activeBackground #0e161a
titleBar.activeForeground #cccccc
titleBar.border #00000000
titleBar.inactiveBackground #3c3c3c99
titleBar.inactiveForeground #cccccc99
tree.indentGuidesStroke #ffffff10
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000088 #4eaddd
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #ffffff —
variable.parameter.function.language.special.self.python #f2f1ec —
storage.modifier.lifetime.rust #ffffff —
support.function.std.rust #eb484b —
entity.name.lifetime.rust #f2f1ec —
variable.language.rust #4eaddd —
support.constant.edge #b2bbc0 —
constant.other.character-class.regexp #4eaddd —
keyword.operator.quantifier.regexp #eb484b —
punctuation.definition.string.begin,punctuation.definition.string.end #f3b942 —
variable.parameter.function #ffffff —
comment markup.link #f2f1ec50 —
markup.changed.diff #f2f1ec —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #eb484b —
markup.inserted.diff #f3b942 —
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 #ffffff —
punctuation.separator.key-value #ffffff —
keyword.operator.expression.import #eb484b —
support.constant.math #f2f1ec —
support.constant.property.math #eb484b —
variable.other.constant #f2f1ec —
storage.type.annotation.java, storage.type.object.array.java #f2f1ec —
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 #f2f1ec —
keyword.operator.instanceof.java #b2bbc0 —
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 #ffffff —
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 #f2f1ec —
entity.name.type.module #f2f1ec —
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 #b2bbc0 —
support.type.object.console #4eaddd —
support.variable.property.process #eb484b —
entity.name.function,support.function.console #eb484b —
keyword.operator.misc.rust #ffffff —
keyword.operator.sigil.rust #b2bbc0 —
keyword.operator.delete #b2bbc0 —
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 #b2bbc0 —
punctuation.separator.delimiter #ffffff —
punctuation.separator.c,punctuation.separator.cpp #b2bbc0 —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #4eaddd —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #b2bbc0 —
variable.parameter.function.language.python #eb484b —
support.type.python #4eaddd —
keyword.operator.logical.python #b2bbc0 —
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 #ffffff —
meta.function-call.generic.python #eb484b —
constant.character.format.placeholder.other.python #eb484b —
keyword.operator.assignment.compound #b2bbc0 —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #4eaddd —
entity.name.namespace #f2f1ec —
variable.language #f2f1ec —
token.variable.parameter.java #ffffff —
import.storage.java #f2f1ec —
token.package.keyword #b2bbc0 —
entity.name.function, meta.require, support.function.any-method, variable.function #eb484b —
entity.name.type.namespace #f2f1ec —
support.class, entity.name.type.class #f2f1ec —
entity.name.class.identifier.namespace.type #f2f1ec —
entity.name.class, variable.other.class.js, variable.other.class.ts #f2f1ec —
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 #b2bbc0 —
token.storage.type.java #f2f1ec —
support.type.property-name #ffffff —
support.constant.property-value #ffffff —
support.constant.font-name #eb484b —
entity.other.inherited-class #f2f1ec —
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 #f2f1ec —
markup.italic, punctuation.definition.italic,todo.emphasis #b2bbc0 —
entity.name.section.markdown #4eaddd —
punctuation.definition.heading.markdown #4eaddd —
punctuation.definition.list.begin.markdown #4eaddd —
markup.heading.setext #ffffff —
punctuation.definition.bold.markdown #eb484b —
markup.inline.raw.markdown #f3b942 —
markup.inline.raw.string.markdown #f3b942 —
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 #b2bbc0 —
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 #b2bbc0 —
invalid.illegal.bad-ampersand.html #ffffff —
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 #f3b942 —
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 #b2bbc0 —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #b2bbc0 —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #f2f1ec —
keyword.operator.error-control.php #b2bbc0 —
keyword.operator.type.php #b2bbc0 —
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 #f2f1ec —
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 #ffffff —
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 #b2bbc0 —
keyword.operator.comparison.php #4eaddd —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #b2bbc0 —
meta.function.decorator.python #eb484b —
support.token.decorator.python,meta.function.decorator.identifier.python #4eaddd —
function.parameter #ffffff —
function.parameter.ruby, function.parameter.cs #ffffff —
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 #f2f1ec —
block.scope.end,block.scope.begin #ffffff —
entity.name.variable.local.cs #4eaddd —
token.error-token #f44747 —
token.debug-token #b2bbc0 —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #b2bbc0 —
meta.template.expression #ffffff —
keyword.operator.module #b2bbc0 —
support.type.type.flowtype #eb484b —
support.type.primitive #f2f1ec —
meta.property.object #4eaddd —
variable.parameter.function.js #4eaddd —
keyword.other.template.begin #f3b942 —
keyword.other.template.end #f3b942 —
keyword.other.substitution.begin #f3b942 —
keyword.other.substitution.end #f3b942 —
keyword.operator.assignment #4eaddd —
keyword.operator.assignment.go #f2f1ec —
keyword.operator.arithmetic.go, keyword.operator.address.go #b2bbc0 —
entity.name.package.go #f2f1ec —
support.type.prelude.elm #4eaddd —
support.constant.elm #eb484b —
punctuation.quasi.element #b2bbc0 —
constant.character.entity #4eaddd —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #4eaddd —
entity.global.clojure #f2f1ec —
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 #f2f1ec —
meta.method.groovy #eb484b —
meta.definition.variable.name.groovy #4eaddd —
meta.definition.class.inherited.classes.groovy #f3b942 —
support.variable.semantic.hlsl #f2f1ec —
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 #b2bbc0 —
text.variable, text.bracketed #4eaddd —
support.type.swift, support.type.vb.asp #f2f1ec —
entity.name.function.xi #f2f1ec —
entity.name.class.xi #4eaddd —
constant.character.character-class.regexp.xi #4eaddd —
constant.regexp.xi #b2bbc0 —
keyword.control.xi #4eaddd —
beginning.punctuation.definition.quote.markdown.xi #f3b942 —
beginning.punctuation.definition.list.markdown.xi #f2f1ec50 —
constant.character.xi #eb484b —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #f2f1ec50 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #f2f1ec —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #4eaddd —
meta.brace.square #ffffff —
comment, punctuation.definition.comment #f2f1ec50 italic
markup.quote.markdown #f2f1ec50 —
punctuation.definition.block.sequence.item.yaml #ffffff —
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
fetchUser 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
main*
Button.tsx
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 } !` ;
}