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
Chrome DevTools Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#C9DFEE RGB(201, 223, 238) RGBA(201, 223, 238, 1) editor.background
#242424 RGB(36, 36, 36) RGBA(36, 36, 36, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#7E7D7D RGB(126, 125, 125) RGBA(126, 125, 125, 1) comment.block
#7E7D7D RGB(126, 125, 125) RGBA(126, 125, 125, 1) comment.block.documentation
#7E7D7D RGB(126, 125, 125) RGBA(126, 125, 125, 1) comment.line
#7E7D7D RGB(126, 125, 125) RGBA(126, 125, 125, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) constant.character.escape
#9B89FF RGB(155, 137, 255) RGBA(155, 137, 255, 1) constant.numeric
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) constant.numeric.integer
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) constant.numeric.float
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) constant.numeric.hex
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) constant.numeric.octal
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#71D7F0 RGB(113, 215, 240) RGBA(113, 215, 240, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#71D7F0 RGB(113, 215, 240) RGBA(113, 215, 240, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#ECA058 RGB(236, 160, 88) RGBA(236, 160, 88, 1) entity.other.attribute-name
#79D1DA RGB(121, 209, 218) RGBA(121, 209, 218, 1) entity.other.inherited-class
#F1A080 RGB(241, 160, 128) RGBA(241, 160, 128, 1) invalid
#793169 RGB(121, 49, 105) RGBA(121, 49, 105, 1) invalid.deprecated
#793169 RGB(121, 49, 105) RGBA(121, 49, 105, 1) invalid.illegal
#793169 RGB(121, 49, 105) RGBA(121, 49, 105, 1) keyword
#D6C807 RGB(214, 200, 7) RGBA(214, 200, 7, 1) keyword.control
#F3C268 RGB(243, 194, 104) RGBA(243, 194, 104, 1) keyword.control.flow
#F3C268 RGB(243, 194, 104) RGBA(243, 194, 104, 1) keyword.operator
#D6C807 RGB(214, 200, 7) RGBA(214, 200, 7, 1) keyword.operator.new
#D6C807 RGB(214, 200, 7) RGBA(214, 200, 7, 1) keyword.operator.assignment
#D6C807 RGB(214, 200, 7) RGBA(214, 200, 7, 1) keyword.operator.arithmetic
#D6C807 RGB(214, 200, 7) RGBA(214, 200, 7, 1) keyword.operator.logical
#D6C807 RGB(214, 200, 7) RGBA(214, 200, 7, 1) keyword.other
#ABF5AB RGB(171, 245, 171) RGBA(171, 245, 171, 1) markup
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#F1A080 RGB(241, 160, 128) RGBA(241, 160, 128, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#242525 RGB(36, 37, 37) RGBA(36, 37, 37, 1) meta.function-call
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) meta.tag
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) punctuation.definition.bracket
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#7E7D7D RGB(126, 125, 125) RGBA(126, 125, 125, 1) punctuation.definition.string.begin
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.string.end
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator.continuation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#C294EC RGB(194, 148, 236) RGBA(194, 148, 236, 1) storage.modifier
#C294EC RGB(194, 148, 236) RGBA(194, 148, 236, 1) storage.type
#C294EC RGB(194, 148, 236) RGBA(194, 148, 236, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#8DD471 RGB(141, 212, 113) RGBA(141, 212, 113, 1) support.class
#E7E7E7 RGB(231, 231, 231) RGBA(231, 231, 231, 1) support.constant
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) support.function
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) support.other
#E7E7E7 RGB(231, 231, 231) RGBA(231, 231, 231, 1) support.type
#64BEE4 RGB(100, 190, 228) RGBA(100, 190, 228, 1) support.type.primitive
#64BEE4 RGB(100, 190, 228) RGBA(100, 190, 228, 1) support.type.property-name
#97EAF8 RGB(151, 234, 248) RGBA(151, 234, 248, 1) variable
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.function
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) variable.language
#BC87F8 RGB(188, 135, 248) RGBA(188, 135, 248, 1) variable.name
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.other
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) variable.other.constant
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) variable.other.property
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) variable.other.readwrite
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) variable.parameter
#71D7F0 RGB(113, 215, 240) RGBA(113, 215, 240, 1)