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
Monokai High Contrast
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorIndentGuide.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarTitle.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) comment.block
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) comment.block.documentation
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) comment.line
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) constant
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) constant.character
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.character.escape
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.integer
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.float
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.hex
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.octal
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.other
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.other.placeholder
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.class
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.function
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.type
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.type.enum
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.type.interface
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.type.struct
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.attribute-name
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.inherited-class
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) keyword
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.control
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.control.flow
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.new
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.assignment
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.arithmetic
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.logical
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) meta
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) meta.return-type
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta.tag
#5CDBEF RGB(92, 219, 239) RGBA(92, 219, 239, 1) meta.type
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) punctuation.separator
#F3C6BE RGB(243, 198, 190) RGBA(243, 198, 190, 1) punctuation.separator.continuation
#F3C6BE RGB(243, 198, 190) RGBA(243, 198, 190, 1) punctuation.terminator
#F3C6BE RGB(243, 198, 190) RGBA(243, 198, 190, 1) storage
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) storage.modifier
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.interpolated
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.other
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.quoted
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.quoted.double
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.quoted.other
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.quoted.single
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.quoted.triple
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) string.unquoted
#F9EC6D RGB(249, 236, 109) RGBA(249, 236, 109, 1) support
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.function
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.variable
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.function
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.language
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.other
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.other.constant
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.other.property
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.other.readwrite
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable.parameter
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1)