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
Magie Orageuse
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#272233 RGB(39, 34, 51) RGBA(39, 34, 51, 1) activityBarBadge.background
#05798D RGB(5, 121, 141) RGBA(5, 121, 141, 1) editor.background
#24202E RGB(36, 32, 46) RGBA(36, 32, 46, 1) editor.foreground
#CCD0DD RGB(204, 208, 221) RGBA(204, 208, 221, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) tab.activeBackground
#333357 RGB(51, 51, 87) RGBA(51, 51, 87, 1) tab.activeForeground
#BCB6D8 RGB(188, 182, 216) RGBA(188, 182, 216, 1) tab.inactiveBackground
#33303D RGB(51, 48, 61) RGBA(51, 48, 61, 1) tab.inactiveForeground
#909FA8 RGB(144, 159, 168) RGBA(144, 159, 168, 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
#55525C RGB(85, 82, 92) RGBA(85, 82, 92, 1) comment.block
#55525C RGB(85, 82, 92) RGBA(85, 82, 92, 1) comment.block.documentation
#55525C RGB(85, 82, 92) RGBA(85, 82, 92, 1) comment.line
#55525C RGB(85, 82, 92) RGBA(85, 82, 92, 1) constant
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.character
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.character.escape
#8B8F81 RGB(139, 143, 129) RGBA(139, 143, 129, 1) constant.numeric
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.numeric.integer
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.numeric.float
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.numeric.hex
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.numeric.octal
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.other
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.other.placeholder
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.regexp
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) constant.rgb-value
#CF9D9D RGB(207, 157, 157) RGBA(207, 157, 157, 1) entity
#DD4545 RGB(221, 69, 69) RGBA(221, 69, 69, 1) entity.name
#DD4545 RGB(221, 69, 69) RGBA(221, 69, 69, 1) entity.name.function
#A2AED1 RGB(162, 174, 209) RGBA(162, 174, 209, 1) entity.name.type
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) entity.name.type.enum
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) entity.name.type.interface
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) entity.name.type.struct
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) entity.other
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) entity.other.inherited-class
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#7CB3AB RGB(124, 179, 171) RGBA(124, 179, 171, 1) keyword.control
#7CB3AB RGB(124, 179, 171) RGBA(124, 179, 171, 1) keyword.control.flow
#7CB3AB RGB(124, 179, 171) RGBA(124, 179, 171, 1) keyword.operator
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.new
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.assignment
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.arithmetic
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.logical
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.other
#7CB3AB RGB(124, 179, 171) RGBA(124, 179, 171, 1) meta
#A2AED1 RGB(162, 174, 209) RGBA(162, 174, 209, 1) meta.function-call
#A2AED1 RGB(162, 174, 209) RGBA(162, 174, 209, 1) punctuation.definition.bracket
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.definition.comment
#55525C RGB(85, 82, 92) RGBA(85, 82, 92, 1) punctuation.definition.string.begin
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.definition.string.end
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.separator
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.separator.continuation
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.terminator
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) storage
#7CB3AB RGB(124, 179, 171) RGBA(124, 179, 171, 1) storage.modifier
#73C3DB RGB(115, 195, 219) RGBA(115, 195, 219, 1) storage.type
#73C3DB RGB(115, 195, 219) RGBA(115, 195, 219, 1) string
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.interpolated
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.other
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.quoted
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.quoted.double
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.quoted.other
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.quoted.single
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.quoted.triple
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.regexp
#3C6294 RGB(60, 98, 148) RGBA(60, 98, 148, 1) string.template
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) string.unquoted
#BCC99A RGB(188, 201, 154) RGBA(188, 201, 154, 1) support
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) support.class
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) support.constant
#4A89AD RGB(74, 137, 173) RGBA(74, 137, 173, 1) support.function
#A2AED1 RGB(162, 174, 209) RGBA(162, 174, 209, 1) support.type
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) support.type.primitive
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) support.type.property-name
#96B5CA RGB(150, 181, 202) RGBA(150, 181, 202, 1) support.variable
#F7F1FD RGB(247, 241, 253) RGBA(247, 241, 253, 1) variable
#F7F1FD RGB(247, 241, 253) RGBA(247, 241, 253, 1) variable.function
#A2AED1 RGB(162, 174, 209) RGBA(162, 174, 209, 1) variable.language
#4A89AD RGB(74, 137, 173) RGBA(74, 137, 173, 1) variable.name
#F7F1FD RGB(247, 241, 253) RGBA(247, 241, 253, 1) variable.other
#BEA7D3 RGB(190, 167, 211) RGBA(190, 167, 211, 1) variable.other.constant
#BEA7D3 RGB(190, 167, 211) RGBA(190, 167, 211, 1) variable.other.property
#BEA7D3 RGB(190, 167, 211) RGBA(190, 167, 211, 1) variable.other.readwrite
#BEA7D3 RGB(190, 167, 211) RGBA(190, 167, 211, 1) variable.parameter
#F7F1FD RGB(247, 241, 253) RGBA(247, 241, 253, 1)