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
Enca dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#4285F4 RGB(66, 133, 244) RGBA(66, 133, 244, 1) editor.background
#131722 RGB(19, 23, 34) RGBA(19, 23, 34, 1) editor.foreground
#EFF5F9 RGB(239, 245, 249) RGBA(239, 245, 249, 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
#5B528D RGB(91, 82, 141) RGBA(91, 82, 141, 1) comment.block
#5B528D RGB(91, 82, 141) RGBA(91, 82, 141, 1) comment.block.documentation
#5B528D RGB(91, 82, 141) RGBA(91, 82, 141, 1) comment.line
#5B528D RGB(91, 82, 141) RGBA(91, 82, 141, 1) constant
#ED008C RGB(237, 0, 140) RGBA(237, 0, 140, 1) constant.character
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) constant.character.escape
#F0E26A RGB(240, 226, 106) RGBA(240, 226, 106, 1) constant.numeric
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) constant.numeric.integer
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) constant.numeric.float
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) constant.numeric.hex
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) constant.numeric.octal
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) constant.other
#ED008C RGB(237, 0, 140) RGBA(237, 0, 140, 1) constant.other.placeholder
#ABF8A1 RGB(171, 248, 161) RGBA(171, 248, 161, 1) entity
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.class
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.function
#FA66F3 RGB(250, 102, 243) RGBA(250, 102, 243, 1) entity.name.method
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.namespace
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.section
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.selector
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.tag
#22F260 RGB(34, 242, 96) RGBA(34, 242, 96, 1) entity.name.type
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.type.enum
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.type.interface
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.name.type.struct
#F1B356 RGB(241, 179, 86) RGBA(241, 179, 86, 1) entity.other
#70FFF3 RGB(112, 255, 243) RGBA(112, 255, 243, 1) entity.other.attribute-name
#FFB900 RGB(255, 185, 0) RGBA(255, 185, 0, 1) entity.other.inherited-class
#FFF570 RGB(255, 245, 112) RGBA(255, 245, 112, 1) invalid
#EE36A1 RGB(238, 54, 161) RGBA(238, 54, 161, 1) invalid.deprecated
#EE36A1 RGB(238, 54, 161) RGBA(238, 54, 161, 1) invalid.illegal
#EE36A1 RGB(238, 54, 161) RGBA(238, 54, 161, 1) keyword
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) keyword.control
#FF9900 RGB(255, 153, 0) RGBA(255, 153, 0, 1) keyword.control.flow
#FF9900 RGB(255, 153, 0) RGBA(255, 153, 0, 1) keyword.operator
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) keyword.operator.new
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) keyword.operator.assignment
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) keyword.operator.arithmetic
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) keyword.operator.logical
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) keyword.other
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) markup
#FF9900 RGB(255, 153, 0) RGBA(255, 153, 0, 1) markup.bold
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 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
#FFF570 RGB(255, 245, 112) RGBA(255, 245, 112, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#BF8DE8 RGB(191, 141, 232) RGBA(191, 141, 232, 1) markup.italic
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F25022 RGB(242, 80, 34) RGBA(242, 80, 34, 1) markup.underline.link
#F25022 RGB(242, 80, 34) RGBA(242, 80, 34, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#FA66F3 RGB(250, 102, 243) RGBA(250, 102, 243, 1) meta.tag
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) punctuation.definition.bracket
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) punctuation.definition.comment
#5B528D RGB(91, 82, 141) RGBA(91, 82, 141, 1) punctuation.definition.string.begin
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) punctuation.definition.string.end
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) punctuation.separator
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) punctuation.separator.continuation
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) punctuation.terminator
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) storage
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) storage.modifier
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) storage.type
#FDC32D RGB(253, 195, 45) RGBA(253, 195, 45, 1) string
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.interpolated
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.other
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.quoted
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.quoted.double
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.quoted.other
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.quoted.single
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.quoted.triple
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.regexp
#5770C2 RGB(87, 112, 194) RGBA(87, 112, 194, 1) string.template
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) string.unquoted
#FA6840 RGB(250, 104, 64) RGBA(250, 104, 64, 1) support
#9B57C2 RGB(155, 87, 194) RGBA(155, 87, 194, 1) support.class
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) support.constant
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1) support.function
#FA66F3 RGB(250, 102, 243) RGBA(250, 102, 243, 1) support.other
#69E083 RGB(105, 224, 131) RGBA(105, 224, 131, 1) support.type
#D015F5 RGB(208, 21, 245) RGBA(208, 21, 245, 1) support.type.primitive
#D015F5 RGB(208, 21, 245) RGBA(208, 21, 245, 1) support.type.property-name
#FCF159 RGB(252, 241, 89) RGBA(252, 241, 89, 1) variable
#ABF8A1 RGB(171, 248, 161) RGBA(171, 248, 161, 1) variable.function
#FA66F3 RGB(250, 102, 243) RGBA(250, 102, 243, 1) variable.language
#50E22B RGB(80, 226, 43) RGBA(80, 226, 43, 1) variable.name
#ABF8A1 RGB(171, 248, 161) RGBA(171, 248, 161, 1) variable.other
#44BBFF RGB(68, 187, 255) RGBA(68, 187, 255, 1) variable.other.constant
#44BBFF RGB(68, 187, 255) RGBA(68, 187, 255, 1) variable.other.property
#44BBFF RGB(68, 187, 255) RGBA(68, 187, 255, 1) variable.other.readwrite
#44BBFF RGB(68, 187, 255) RGBA(68, 187, 255, 1) variable.parameter
#EE6C26 RGB(238, 108, 38) RGBA(238, 108, 38, 1)