VS Code preview Full workbench mockup using this variant's colors and tokenColors.
fetchUser.tssrc/components index.ts README.md
src
components fetchUser.ts Button.tsx Modal.tsx legacy.tsx fetch Config.tsindex.ts renamed.ts staged.ts removed.ts
vendor package.json broken.ts slow.ts tsconfig.json README.md package-lock.json 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export interface User {
id : string ;
name : string ;
role : " admin " | " member " ;
tags : string [] ;
}
/**
* Fetch user data by ID
* @ param id
* @ returns User object or null if ID is invalid
*/
export async function fetchUser ( id : string ) : Promise < User | null > {
if ( ! id ) {
return null ;
}
const response = await fetch ( ` /api/users/ ${ id }` , {
method : " GET " ,
headers : { Accept : " application/json " },
} ) ;
if ( ! response . ok ) {
throw new Error ( ` HTTP ${ response . status }` ) ;
}
return ( await response . json ()) as User ;
}
function greet ( user : User ) : string {
// Simple greeting function that uses the user's name
return ` Hello, ${ user . name } ! ` ;
}
Problems1
Output
Debug Console
Terminal
Ports
✓ fetchUser passed 12 blk
✗ Cannot find name 'user'. error ▲ warning 412 ready localhost
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
BlueFallTheme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#01606D RGB(1, 96, 109) RGBA(1, 96, 109, 1) activityBarBadge.background
#FFC786 RGB(255, 199, 134) RGBA(255, 199, 134, 1) activityBarBadge.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) badge.background
#D6B262 RGB(214, 178, 98) RGBA(214, 178, 98, 1) badge.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) button.background
#01606D RGB(1, 96, 109) RGBA(1, 96, 109, 1) editor.background
#BBDCDD RGB(187, 220, 221) RGBA(187, 220, 221, 1) editor.foreground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editorGroup.border
#B9AB9B RGB(185, 171, 155) RGBA(185, 171, 155, 1) editorGroupHeader.tabsBackground
#DAD5AC RGB(218, 213, 172) RGBA(218, 213, 172, 1) editorGroupHeader.tabsBorder
#B9AB9B RGB(185, 171, 155) RGBA(185, 171, 155, 1) list.activeSelectionIconForeground
#FA9688 RGB(250, 150, 136) RGBA(250, 150, 136, 1) notificationCenter.border
#C9AF91 RGB(201, 175, 145) RGBA(201, 175, 145, 1) notificationCenterHeader.background
#DAD5AC RGB(218, 213, 172) RGBA(218, 213, 172, 1) notificationCenterHeader.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) notificationsInfoIcon.foreground
#11B7D4 RGB(17, 183, 212) RGBA(17, 183, 212, 1) scrollbarSlider.activeBackground
#DB8008 RGB(219, 128, 8) RGBA(219, 128, 8, 1) scrollbarSlider.background
#DFBB8C RGB(223, 187, 140) RGBA(223, 187, 140, 1) scrollbarSlider.hoverBackground
#DFA04D RGB(223, 160, 77) RGBA(223, 160, 77, 1) sideBar.background
#ACD8DAC4 RGB(172, 216, 218) RGBA(172, 216, 218, 0.769) sideBar.border
#C9AF91 RGB(201, 175, 145) RGBA(201, 175, 145, 1) sideBar.foreground
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) sideBarSectionHeader.background
#DAD5AC RGB(218, 213, 172) RGBA(218, 213, 172, 1) sideBarSectionHeader.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBarTitle.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.background
#01606D RGB(1, 96, 109) RGBA(1, 96, 109, 1) tab.activeBackground
#DABB60 RGB(218, 187, 96) RGBA(218, 187, 96, 1) tab.activeForeground
#001E31 RGB(0, 30, 49) RGBA(0, 30, 49, 1) tab.border
#B9AB9B RGB(185, 171, 155) RGBA(185, 171, 155, 1) tab.inactiveBackground
#DAD5AC RGB(218, 213, 172) RGBA(218, 213, 172, 1) tab.inactiveForeground
#424242 RGB(66, 66, 66) RGBA(66, 66, 66, 1) titleBar.activeBackground
#C5B074 RGB(197, 176, 116) RGBA(197, 176, 116, 1) titleBar.activeForeground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) titleBar.border
#C9AF91 RGB(201, 175, 145) RGBA(201, 175, 145, 1) titleBar.inactiveBackground
#C5B074 RGB(197, 176, 116) RGBA(197, 176, 116, 1) window.activeBorder
#E4C097 RGB(228, 192, 151) RGBA(228, 192, 151, 1)
tokenColors Foregrounds this theme assigns to the token scope catalog. A rule with only a font style is skipped, and a longer matching scope wins. Italic and bold rules are not listed — the preview above shows them in the code.
scope HEX RGB RGBA comment
#811185 RGB(129, 17, 133) RGBA(129, 17, 133, 1) comment.block
#811185 RGB(129, 17, 133) RGBA(129, 17, 133, 1) comment.block.documentation
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) comment.line
#811185 RGB(129, 17, 133) RGBA(129, 17, 133, 1) constant
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.character
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.character.escape
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant.numeric
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.numeric.integer
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.numeric.float
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.numeric.hex
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.numeric.octal
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.other
#2C790D RGB(44, 121, 13) RGBA(44, 121, 13, 1) constant.other.placeholder
#2C790D RGB(44, 121, 13) RGBA(44, 121, 13, 1) constant.regexp
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) constant.rgb-value
#D48206 RGB(212, 130, 6) RGBA(212, 130, 6, 1) entity
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name.class
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name.function
#BD5227 RGB(189, 82, 39) RGBA(189, 82, 39, 1) entity.name.method
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name.namespace
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name.section
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name.selector
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.name.tag
#520BFA RGB(82, 11, 250) RGBA(82, 11, 250, 1) entity.name.type
#D1185F RGB(209, 24, 95) RGBA(209, 24, 95, 1) entity.name.type.enum
#D1185F RGB(209, 24, 95) RGBA(209, 24, 95, 1) entity.name.type.interface
#D1185F RGB(209, 24, 95) RGBA(209, 24, 95, 1) entity.name.type.struct
#D1185F RGB(209, 24, 95) RGBA(209, 24, 95, 1) entity.other
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) entity.other.attribute-name
#8B248F RGB(139, 36, 143) RGBA(139, 36, 143, 1) entity.other.inherited-class
#D1185F RGB(209, 24, 95) RGBA(209, 24, 95, 1) invalid
#660000 RGB(102, 0, 0) RGBA(102, 0, 0, 1) invalid.illegal
#660000 RGB(102, 0, 0) RGBA(102, 0, 0, 1) keyword
#00499C RGB(0, 73, 156) RGBA(0, 73, 156, 1) keyword.control
#00499C RGB(0, 73, 156) RGBA(0, 73, 156, 1) keyword.control.flow
#00499C RGB(0, 73, 156) RGBA(0, 73, 156, 1) keyword.operator
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.new
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.assignment
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.arithmetic
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.logical
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.other
#00499C RGB(0, 73, 156) RGBA(0, 73, 156, 1) markup
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) markup.bold
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) markup.changed
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.deleted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.heading
#AA3731 RGB(170, 55, 49) RGBA(170, 55, 49, 1) markup.inline.raw
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.italic
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) markup.list
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.list.numbered
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.list.unnumbered
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.quote
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) markup.raw
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) meta
#434343 RGB(67, 67, 67) RGBA(67, 67, 67, 1) meta.selector
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) meta.tag
#006EFF RGB(0, 110, 255) RGBA(0, 110, 255, 1) punctuation.definition.bracket
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) punctuation.definition.comment
#811185 RGB(129, 17, 133) RGBA(129, 17, 133, 1) punctuation.definition.string.begin
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) punctuation.definition.string.end
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) punctuation.separator
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) punctuation.separator.continuation
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) punctuation.terminator
#7935A0 RGB(121, 53, 160) RGBA(121, 53, 160, 1) storage
#00499C RGB(0, 73, 156) RGBA(0, 73, 156, 1) storage.modifier
#00499C RGB(0, 73, 156) RGBA(0, 73, 156, 1) storage.type
#68268F RGB(104, 38, 143) RGBA(104, 38, 143, 1) string
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.interpolated
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.other
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.double
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.other
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.single
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.triple
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.regexp
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) string.template
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.unquoted
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) support
#2C790D RGB(44, 121, 13) RGBA(44, 121, 13, 1) support.class
#D1185F RGB(209, 24, 95) RGBA(209, 24, 95, 1) support.constant
#CE650A RGB(206, 101, 10) RGBA(206, 101, 10, 1) support.function
#BD5227 RGB(189, 82, 39) RGBA(189, 82, 39, 1) support.type
#68268F RGB(104, 38, 143) RGBA(104, 38, 143, 1) support.type.primitive
#68268F RGB(104, 38, 143) RGBA(104, 38, 143, 1) support.type.property-name
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) support.variable
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.function
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.language
#CE650A RGB(206, 101, 10) RGBA(206, 101, 10, 1) variable.name
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.other
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.other.constant
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.other.property
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.other.readwrite
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1) variable.parameter
#640FEC RGB(100, 15, 236) RGBA(100, 15, 236, 1)