Skip to main content
Home Theme VS Code FT Palette Theme based on the Financial Times Newspaper. Decisions were made to create a great experience whilst writing and reading code.
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 #052f33 activityBar.background #25828a activityBar.border #0d7680 activityBar.foreground #fff1e5 activityBar.inactiveForeground #cce6ff activityBarBadge.background #4db8df 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 #1a1817 — variable.other.generic-type.haskell #006f9b — storage.type.haskell #593380 — support.variable.magic.python
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
activityBarBadge.foreground
#ffffff
badge.background #c4c4c4
badge.foreground #333333
breadcrumb.activeSelectionForeground #4e4e4e
breadcrumb.background #fee7d5
breadcrumb.focusForeground #4e4e4e
breadcrumb.foreground #000000cc
button.background #2764a1
button.foreground #ffffff
button.hoverBackground #0d354f
button.secondaryBackground #87a3bf
button.secondaryForeground #ffffff
button.secondaryHoverBackground #4c5561
checkbox.background #ffffff
checkbox.border #00000000
checkbox.foreground #616161
debugExceptionWidget.background #f3f3f3
debugExceptionWidget.border #d5d5d5
debugToolBar.background #f3f3f3
debugToolBar.border #d5d5d5
diffEditor.border #d7d7d7
diffEditor.insertedTextBackground #9bb95533
diffEditor.removedTextBackground #ff000033
dropdown.background #ffffff
dropdown.border #00000000
dropdown.foreground #616161
editor.background #fee7d5
editor.findMatchBackground #ffdcc1
editor.findMatchBorder #ffb27a
editor.findMatchHighlightBackground #ea5c0055
editor.findMatchHighlightBorder #ffffff00
editor.findRangeHighlightBackground #b4b4b44d
editor.findRangeHighlightBorder #ffffff00
editor.foldBackground #add6ff4d
editor.foreground #082a4d
editor.hoverHighlightBackground #add6ff26
editor.inactiveSelectionBackground #e5ebf1
editor.lineHighlightBackground #ffffff0A
editor.lineHighlightBorder #eeeeee
editor.rangeHighlightBackground #fdff0033
editor.rangeHighlightBorder #ffffff00
editor.selectionBackground #cdb8c7
editor.selectionHighlightBackground #cce1e3
editor.selectionHighlightBorder #495F77
editor.wordHighlightBackground #57575740
editor.wordHighlightStrongBackground #0e639c40
editorBracketMatch.background #0064001a
editorBracketMatch.border #b9b9b9
editorCodeLens.foreground #999999
editorCursor.background #ffffff
editorCursor.foreground #593380
editorError.background #B73A3400
editorError.border #ffffff00
editorError.foreground #db4845
editorGroup.border #e7e7e7
editorGroup.emptyBackground #fee7d5
editorGroupHeader.tabsBackground #fddac1
editorGroupHeader.tabsBorder #fff1e5
editorGutter.addedBackground #b6d761
editorGutter.background #fee7d5
editorGutter.commentRangeForeground #000000
editorGutter.deletedBackground #ca4b51
editorGutter.foldingControlForeground #000000
editorGutter.modifiedBackground #593380
editorHoverWidget.background #f3f3f3
editorHoverWidget.border #c8c8c8
editorHoverWidget.foreground #616161
editorIndentGuide.activeBackground1 #939393
editorIndentGuide.background1 #d3d3d3
editorInfo.background #4490BF00
editorInfo.border #4490BF00
editorInfo.foreground #2764a1
editorLineNumber.activeForeground #2764a1
editorLineNumber.foreground #237893
editorLink.activeForeground #0000ff
editorMarkerNavigation.background #fad9ce
editorMarkerNavigationError.background #e51400
editorMarkerNavigationInfo.background #75beff
editorMarkerNavigationWarning.background #e9a700
editorOverviewRuler.background #25252500
editorOverviewRuler.border #7f7f7f4d
editorRuler.foreground #d3d3d3
editorSuggestWidget.background #fad9ce
editorSuggestWidget.border #c8c8c8
editorSuggestWidget.foreground #000000
editorSuggestWidget.highlightForeground #593380
editorSuggestWidget.selectedBackground #f0be9f
editorWarning.background #A9904000
editorWarning.border #ffffff00
editorWarning.foreground #e9a700
editorWhitespace.foreground #33333333
editorWidget.background #f3f3f3
editorWidget.foreground #616161
editorWidget.resizeBorder #c7c7c7
focusBorder #0f5499
foreground #262a33
gitDecoration.addedResourceForeground #587c0c
gitDecoration.conflictingResourceForeground #6c6cc4
gitDecoration.deletedResourceForeground #ad0707
gitDecoration.ignoredResourceForeground #8e8e90
gitDecoration.modifiedResourceForeground #895503
gitDecoration.stageDeletedResourceForeground #ad0707
gitDecoration.stageModifiedResourceForeground #895503
gitDecoration.submoduleResourceForeground #1258a7
gitDecoration.untrackedResourceForeground #007100
icon.foreground #262a33
input.background #ffffff
input.border #00000000
input.foreground #616161
input.placeholderForeground #767676
inputOption.activeBackground #0090f133
inputOption.activeBorder #007acc00
inputOption.activeForeground #000000
list.activeSelectionBackground #08474d
list.activeSelectionForeground #ffffff
list.dropBackground #eec7ab
list.focusBackground #6f93b7
list.focusForeground #000000
list.highlightForeground #2764a1
list.hoverBackground #e8e8e8
list.hoverForeground #616161
list.inactiveSelectionBackground #eec7ab
list.inactiveSelectionForeground #000000
listFilterWidget.background #ffeee0
listFilterWidget.noMatchesOutline #be1100
listFilterWidget.outline #00000000
menu.background #ffffff
menu.border #00000085
menu.foreground #616161
menu.selectionBackground #8b6c9e
menu.selectionBorder #00000000
menu.selectionForeground #ffffff
menu.separatorBackground #593380
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 #fee7d5
minimap.errorHighlight #db4845
minimap.findMatchHighlight #ffdcc1
minimap.selectionHighlight #cdb8c7
minimap.warningHighlight #e9a700
minimapGutter.addedBackground #b6d761
minimapGutter.deletedBackground #ca4b51
minimapGutter.modifiedBackground #593380
notificationCenter.border #d5d5d5
notificationCenterHeader.background #e7e7e7
notificationCenterHeader.foreground #616161
notifications.background #f3f3f3
notifications.border #e7e7e7
notifications.foreground #616161
notificationsErrorIcon.foreground #e51400
notificationsInfoIcon.foreground #75beff
notificationsWarningIcon.foreground #e9a700
notificationToast.border #d5d5d5
panel.background #fee1cb
panel.border #fffafa59
panelSection.border #80808059
panelTitle.activeBorder #424242
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 #cccedb
pickerGroup.foreground #0066bf
progressBar.background #990f3d
scrollbar.shadow #e0adb3
scrollbarSlider.activeBackground #00000099
scrollbarSlider.background #995a5a66
scrollbarSlider.hoverBackground #646464b3
selection.background #ebc4c3
settings.focusedRowBackground #ffffff07
settings.headerForeground #262a33
sideBar.background #fee1cb
sideBar.dropBackground #eec7ab
sideBar.foreground #333333
sideBarSectionHeader.background #00000006
sideBarSectionHeader.border #61616130
sideBarSectionHeader.foreground #262a33
sideBarTitle.foreground #000000
statusBar.background #fee7d5
statusBar.debuggingBackground #cc6633
statusBar.debuggingForeground #ffffff
statusBar.foreground #355778
statusBar.noFolderBackground #68217a
statusBar.noFolderForeground #ffffff
statusBarItem.activeBackground #FFFFFF25
statusBarItem.hoverBackground #ffffff1f
statusBarItem.remoteBackground #16825d
statusBarItem.remoteForeground #ffffff
tab.activeBackground #fee7d5
tab.activeBorder #ffffff00
tab.activeBorderTop #00000000
tab.activeForeground #000000
tab.border #fff1e5
tab.inactiveBackground #e3bb9f
tab.inactiveForeground #000000
terminal.ansiBlack #073642
terminal.ansiBlue #268bd2
terminal.ansiBrightBlack #002b36
terminal.ansiBrightBlue #839496
terminal.ansiBrightCyan #93a1a1
terminal.ansiBrightGreen #586e75
terminal.ansiBrightMagenta #6c71c4
terminal.ansiBrightRed #cb4b16
terminal.ansiBrightWhite #fdf6e3
terminal.ansiBrightYellow #657b83
terminal.ansiCyan #2aa198
terminal.ansiGreen #859900
terminal.ansiMagenta #d33682
terminal.ansiRed #dc322f
terminal.ansiWhite #eee8d5
terminal.ansiYellow #b58900
terminal.border #80808059
terminal.foreground #333333
terminal.selectionBackground #0d768036
terminalCursor.background #0d7680
terminalCursor.foreground #ffffff
textLink.foreground #3f73a8
titleBar.activeBackground #277e86
titleBar.activeForeground #ffffff
titleBar.border #09535a
titleBar.inactiveBackground #073b40
titleBar.inactiveForeground #33333399
tree.indentGuidesStroke #a9a9a9
walkThrough.embeddedEditorBackground #00000050
widget.shadow #00000029 #1a1817
punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python #082a4d —
variable.parameter.function.language.special.self.python #0f5499 —
storage.modifier.lifetime.rust #082a4d —
support.function.std.rust #990f3d —
entity.name.lifetime.rust #0f5499 —
variable.language.rust #1a1817 —
support.constant.edge #006f9b —
constant.other.character-class.regexp #1a1817 —
keyword.operator.quantifier.regexp #593380 —
punctuation.definition.string.begin,punctuation.definition.string.end #1aa25c —
variable.parameter.function #082a4d —
comment markup.link #807973 —
markup.changed.diff #0f5499 —
meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff #990f3d —
markup.inserted.diff #1aa25c —
markup.deleted.diff #1a1817 —
meta.function.c,meta.function.cpp #1a1817 —
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 #082a4d —
punctuation.separator.key-value #082a4d —
keyword.operator.expression.import #990f3d —
support.constant.math #0f5499 —
support.constant.property.math #593380 —
variable.other.constant #0f5499 —
storage.type.annotation.java, storage.type.object.array.java #0f5499 —
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 #082a4d —
storage.modifier.import.java,storage.type.java,storage.type.generic.java #0f5499 —
keyword.operator.instanceof.java #006f9b —
meta.definition.variable.name.java #1a1817 —
keyword.operator.logical #56b6c2 —
keyword.operator.bitwise #56b6c2 —
keyword.operator.channel #56b6c2 —
support.constant.property-value.scss,support.constant.property-value.css #593380 —
keyword.operator.css,keyword.operator.scss,keyword.operator.less #56b6c2 —
support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss #593380 —
punctuation.separator.list.comma.css #082a4d —
support.constant.color.w3c-standard-color-name.css #593380 —
support.type.vendored.property-name.css #56b6c2 —
support.module.node,support.type.object.module,support.module.node #0f5499 —
entity.name.type.module #0f5499 —
variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node #1a1817 —
support.constant.json #593380 —
keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof #006f9b —
support.type.object.console #1a1817 —
support.variable.property.process #593380 —
entity.name.function,support.function.console #990f3d —
keyword.operator.misc.rust #082a4d —
keyword.operator.sigil.rust #006f9b —
keyword.operator.delete #006f9b —
support.type.object.dom #56b6c2 —
support.variable.dom,support.variable.property.dom #1a1817 —
keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational #56b6c2 —
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 #006f9b —
punctuation.separator.delimiter #082a4d —
punctuation.separator.c,punctuation.separator.cpp #006f9b —
support.type.posix-reserved.c,support.type.posix-reserved.cpp #56b6c2 —
keyword.operator.sizeof.c,keyword.operator.sizeof.cpp #006f9b —
variable.parameter.function.language.python #593380 —
support.type.python #56b6c2 —
keyword.operator.logical.python #006f9b —
variable.parameter.function.python #593380 —
punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python #082a4d —
meta.function-call.generic.python #990f3d —
constant.character.format.placeholder.other.python #593380 —
keyword.operator.assignment.compound #006f9b —
keyword.operator.assignment.compound.js,keyword.operator.assignment.compound.ts #56b6c2 —
entity.name.namespace #0f5499 —
variable.language #0f5499 —
token.variable.parameter.java #082a4d —
import.storage.java #0f5499 —
token.package.keyword #006f9b —
entity.name.function, meta.require, support.function.any-method, variable.function #990f3d —
entity.name.type.namespace #0f5499 —
support.class, entity.name.type.class #0f5499 —
entity.name.class.identifier.namespace.type #0f5499 —
entity.name.class, variable.other.class.js, variable.other.class.ts #0f5499 —
variable.other.class.php #1a1817 —
control.elements, keyword.operator.less #593380 —
keyword.other.special-method #990f3d —
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 #006f9b —
token.storage.type.java #0f5499 —
support.type.property-name #082a4d —
support.constant.property-value #082a4d —
support.constant.font-name #593380 —
entity.other.inherited-class #0f5499 —
constant.other.symbol #56b6c2 —
punctuation.definition.constant #593380 —
entity.other.attribute-name #593380 —
entity.other.attribute-name.id #990f3d
entity.other.attribute-name.class.css #593380
markup.heading punctuation.definition.heading, entity.name.section #990f3d —
keyword.other.unit #1a1817 —
markup.bold,todo.bold #593380 —
punctuation.definition.bold #0f5499 —
markup.italic, punctuation.definition.italic,todo.emphasis #006f9b —
entity.name.section.markdown #1a1817 —
punctuation.definition.heading.markdown #1a1817 —
punctuation.definition.list.begin.markdown #1a1817 —
markup.heading.setext #082a4d —
punctuation.definition.bold.markdown #593380 —
markup.inline.raw.markdown #1aa25c —
markup.inline.raw.string.markdown #1aa25c —
punctuation.definition.list.markdown #1a1817 —
punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown #1a1817 —
beginning.punctuation.definition.list.markdown #1a1817 —
punctuation.definition.metadata.markdown #1a1817 —
markup.underline.link.markdown,markup.underline.link.image.markdown #006f9b —
string.other.link.title.markdown,string.other.link.description.markdown #990f3d —
constant.character.escape #56b6c2 —
punctuation.section.embedded, variable.interpolation #1a1817 —
punctuation.section.embedded.begin,punctuation.section.embedded.end #006f9b —
invalid.illegal.bad-ampersand.html #082a4d —
invalid.deprecated #ffffff —
invalid.unimplemented #ffffff —
source.json meta.structure.dictionary.json > string.quoted.json #1a1817 —
source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string #1a1817 —
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 #1aa25c —
source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json #56b6c2 —
support.type.property-name.json #1a1817 —
support.type.property-name.json punctuation #1a1817 —
text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade #006f9b —
text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade #006f9b —
support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php #0f5499 —
keyword.operator.error-control.php #006f9b —
keyword.operator.type.php #006f9b —
punctuation.section.array.begin.php #082a4d —
punctuation.section.array.end.php #082a4d —
invalid.illegal.non-null-typehinted.php #f44747 —
storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php #0f5499 —
meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php #990f3d —
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 #082a4d —
support.constant.core.rust #593380 —
support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php #593380 —
entity.name.goto-label.php,support.other.php #990f3d —
keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php #56b6c2 —
keyword.operator.regexp.php #006f9b —
keyword.operator.comparison.php #56b6c2 —
keyword.operator.heredoc.php,keyword.operator.nowdoc.php #006f9b —
meta.function.decorator.python #990f3d —
support.token.decorator.python,meta.function.decorator.identifier.python #56b6c2 —
function.parameter #082a4d —
function.parameter.ruby, function.parameter.cs #082a4d —
constant.language.symbol.ruby #56b6c2 —
inline-color-decoration rgb-value #593380 —
support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx #0f5499 —
block.scope.end,block.scope.begin #082a4d —
entity.name.variable.local.cs #1a1817 —
token.error-token #f44747 —
token.debug-token #006f9b —
punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded #006f9b —
meta.template.expression #082a4d —
keyword.operator.module #006f9b —
support.type.type.flowtype #990f3d —
support.type.primitive #0f5499 —
meta.property.object #1a1817 —
variable.parameter.function.js #1a1817 —
keyword.other.template.begin #1aa25c —
keyword.other.template.end #1aa25c —
keyword.other.substitution.begin #1aa25c —
keyword.other.substitution.end #1aa25c —
keyword.operator.assignment #56b6c2 —
keyword.operator.assignment.go #0f5499 —
keyword.operator.arithmetic.go, keyword.operator.address.go #006f9b —
entity.name.package.go #0f5499 —
support.type.prelude.elm #56b6c2 —
support.constant.elm #593380 —
punctuation.quasi.element #006f9b —
constant.character.entity #1a1817 —
entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class #56b6c2 —
entity.global.clojure #0f5499 —
meta.symbol.clojure #1a1817 —
constant.keyword.clojure #56b6c2 —
meta.arguments.coffee, variable.parameter.function.coffee #1a1817 —
meta.scope.prerequisites.makefile #1a1817 —
storage.modifier.import.groovy #0f5499 —
meta.method.groovy #990f3d —
meta.definition.variable.name.groovy #1a1817 —
meta.definition.class.inherited.classes.groovy #1aa25c —
support.variable.semantic.hlsl #0f5499 —
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 #006f9b —
text.variable, text.bracketed #1a1817 —
support.type.swift, support.type.vb.asp #0f5499 —
entity.name.function.xi #0f5499 —
entity.name.class.xi #56b6c2 —
constant.character.character-class.regexp.xi #1a1817 —
constant.regexp.xi #006f9b —
keyword.control.xi #56b6c2 —
beginning.punctuation.definition.quote.markdown.xi #1aa25c —
beginning.punctuation.definition.list.markdown.xi #807973 —
constant.character.xi #990f3d —
constant.other.color.rgb-value.xi #ffffff —
punctuation.definition.tag.xi #807973 —
entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition #0f5499 —
entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown #1a1817 —
meta.brace.square #082a4d —
comment, punctuation.definition.comment #807973 italic
markup.quote.markdown #807973 —
punctuation.definition.block.sequence.item.yaml #082a4d —
constant.language.symbol.elixir #56b6c2 —
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 } !` ;
}
FT Palette | Coding Theme