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
yehiiBhiiDarkEstudio
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) editor.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 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
#CAFF9F5E RGB(202, 255, 159) RGBA(202, 255, 159, 0.369) comment.block
#CAFF9F5E RGB(202, 255, 159) RGBA(202, 255, 159, 0.369) comment.block.documentation
#CAFF9F5E RGB(202, 255, 159) RGBA(202, 255, 159, 0.369) comment.line
#CAFF9F5E RGB(202, 255, 159) RGBA(202, 255, 159, 0.369) constant
#CBFF6B RGB(203, 255, 107) RGBA(203, 255, 107, 1) constant.character
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) constant.character.escape
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) constant.numeric
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) constant.numeric.integer
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) constant.numeric.float
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) constant.numeric.hex
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) constant.numeric.octal
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) constant.other
#CBFF6B RGB(203, 255, 107) RGBA(203, 255, 107, 1) constant.other.placeholder
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 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
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 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
#C0FF81 RGB(192, 255, 129) RGBA(192, 255, 129, 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
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) entity.other.attribute-name
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) entity.other.inherited-class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) invalid
#F6FF52 RGB(246, 255, 82) RGBA(246, 255, 82, 1) invalid.deprecated
#F6FF52 RGB(246, 255, 82) RGBA(246, 255, 82, 1) invalid.illegal
#F6FF52 RGB(246, 255, 82) RGBA(246, 255, 82, 1) keyword
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) keyword.control
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) keyword.control.flow
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) keyword.operator
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) keyword.operator.new
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) keyword.operator.assignment
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) keyword.operator.arithmetic
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) keyword.operator.logical
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) keyword.other
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) markup.changed
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) markup.deleted
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) markup.heading
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.inline.raw
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#D2F76C RGB(210, 247, 108) RGBA(210, 247, 108, 1) markup.underline.link
#D2F76C RGB(210, 247, 108) RGBA(210, 247, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) meta.tag
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.definition.bracket
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.definition.comment
#CAFF9F5E RGB(202, 255, 159) RGBA(202, 255, 159, 0.369) punctuation.definition.string.begin
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.definition.string.end
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.separator
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.separator.continuation
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.terminator
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) storage
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) storage.modifier
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) storage.type
#C8FD55CC RGB(200, 253, 85) RGBA(200, 253, 85, 0.8) string
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.interpolated
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.other
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.quoted
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.quoted.double
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.quoted.other
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.quoted.single
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.quoted.triple
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.regexp
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) string.template
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) string.unquoted
#F0EC71 RGB(240, 236, 113) RGBA(240, 236, 113, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#FFFFFFDC RGB(255, 255, 255) RGBA(255, 255, 255, 0.863) support.constant
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1) support.function
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) support.other
#FFFFFFDC RGB(255, 255, 255) RGBA(255, 255, 255, 0.863) support.type
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) support.type.primitive
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) support.type.property-name
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) variable
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) variable.function
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) variable.language
#BDFF53 RGB(189, 255, 83) RGBA(189, 255, 83, 1) variable.name
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) variable.other
#E1FF21 RGB(225, 255, 33) RGBA(225, 255, 33, 1) variable.other.constant
#E1FF21 RGB(225, 255, 33) RGBA(225, 255, 33, 1) variable.other.property
#E1FF21 RGB(225, 255, 33) RGBA(225, 255, 33, 1) variable.other.readwrite
#E1FF21 RGB(225, 255, 33) RGBA(225, 255, 33, 1) variable.parameter
#EDFF23 RGB(237, 255, 35) RGBA(237, 255, 35, 1)