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
MandarinDuck
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.border
#3700FD RGB(55, 0, 253) RGBA(55, 0, 253, 1) activityBarBadge.background
#238F62 RGB(35, 143, 98) RGBA(35, 143, 98, 1) badge.background
#81CA91 RGB(129, 202, 145) RGBA(129, 202, 145, 1) editor.background
#062902 RGB(6, 41, 2) RGBA(6, 41, 2, 1) editor.foreground
#EEB447 RGB(238, 180, 71) RGBA(238, 180, 71, 1) sideBar.background
#062902 RGB(6, 41, 2) RGBA(6, 41, 2, 1) sideBar.foreground
#C6C79F RGB(198, 199, 159) RGBA(198, 199, 159, 1) sideBarSectionHeader.background
#D17600 RGB(209, 118, 0) RGBA(209, 118, 0, 1) sideBarSectionHeader.foreground
#102F97 RGB(16, 47, 151) RGBA(16, 47, 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
#404BEE RGB(64, 75, 238) RGBA(64, 75, 238, 1) comment.block
#404BEE RGB(64, 75, 238) RGBA(64, 75, 238, 1) comment.block.documentation
#404BEE RGB(64, 75, 238) RGBA(64, 75, 238, 1) comment.line
#404BEE RGB(64, 75, 238) RGBA(64, 75, 238, 1) constant
#EEC876 RGB(238, 200, 118) RGBA(238, 200, 118, 1) constant.character
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) constant.character.escape
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) constant.numeric
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) constant.numeric.integer
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) constant.numeric.float
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) constant.numeric.hex
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) constant.numeric.octal
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) constant.other
#EEC876 RGB(238, 200, 118) RGBA(238, 200, 118, 1) constant.other.placeholder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.class
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.function
#DA8C34 RGB(218, 140, 52) RGBA(218, 140, 52, 1) entity.name.method
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.namespace
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.section
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.selector
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.tag
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) entity.name.type
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.type.enum
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.type.interface
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.name.type.struct
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#FFC188 RGB(255, 193, 136) RGBA(255, 193, 136, 1) invalid
#FF002B RGB(255, 0, 43) RGBA(255, 0, 43, 1) invalid.deprecated
#FF002B RGB(255, 0, 43) RGBA(255, 0, 43, 1) invalid.illegal
#FF002B RGB(255, 0, 43) RGBA(255, 0, 43, 1) keyword
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) keyword.control
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword.control.flow
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword.operator
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) keyword.operator.new
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) keyword.operator.assignment
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) keyword.operator.arithmetic
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) keyword.operator.logical
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) keyword.other
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 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
#FFC188 RGB(255, 193, 136) RGBA(255, 193, 136, 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
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) markup.underline.link
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) meta
#9345C0 RGB(147, 69, 192) RGBA(147, 69, 192, 1) meta.function-call
#DA8C34 RGB(218, 140, 52) RGBA(218, 140, 52, 1) meta.tag
#62A766 RGB(98, 167, 102) RGBA(98, 167, 102, 1) punctuation.definition.bracket
#6E4C8D RGB(110, 76, 141) RGBA(110, 76, 141, 1) punctuation.definition.comment
#404BEE RGB(64, 75, 238) RGBA(64, 75, 238, 1) punctuation.definition.string.begin
#6E4C8D RGB(110, 76, 141) RGBA(110, 76, 141, 1) punctuation.definition.string.end
#6E4C8D RGB(110, 76, 141) RGBA(110, 76, 141, 1) punctuation.separator
#6E4C8D RGB(110, 76, 141) RGBA(110, 76, 141, 1) punctuation.separator.continuation
#6E4C8D RGB(110, 76, 141) RGBA(110, 76, 141, 1) punctuation.terminator
#6E4C8D RGB(110, 76, 141) RGBA(110, 76, 141, 1) storage
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) storage.modifier
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) storage.type
#FF7676 RGB(255, 118, 118) RGBA(255, 118, 118, 1) string
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.interpolated
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.other
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.quoted
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.quoted.double
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.quoted.other
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.quoted.single
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.quoted.triple
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.regexp
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) string.template
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) string.unquoted
#FF5757 RGB(255, 87, 87) RGBA(255, 87, 87, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1) support.function
#DA8C34 RGB(218, 140, 52) RGBA(218, 140, 52, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type
#DFEAEE RGB(223, 234, 238) RGBA(223, 234, 238, 1) support.type.primitive
#DFEAEE RGB(223, 234, 238) RGBA(223, 234, 238, 1) support.type.property-name
#DFEAEE RGB(223, 234, 238) RGBA(223, 234, 238, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#06CF6A RGB(6, 207, 106) RGBA(6, 207, 106, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#FF683A RGB(255, 104, 58) RGBA(255, 104, 58, 1)