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 Light Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) editor.lineHighlightBackground
#E6E3C3 RGB(230, 227, 195) RGBA(230, 227, 195, 1) editor.selectionBackground
#CCC9AD RGB(204, 201, 173) RGBA(204, 201, 173, 1) editorCursor.foreground
#666663 RGB(102, 102, 99) RGBA(102, 102, 99, 1) editorIndentGuide.background
#D3D4D5 RGB(211, 212, 213) RGBA(211, 212, 213, 1) editorLineNumber.foreground
#A2A19C RGB(162, 161, 156) RGBA(162, 161, 156, 1) editorWhitespace.foreground
#BBBBB7 RGB(187, 187, 183) RGBA(187, 187, 183, 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
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) comment.block
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) comment.block.documentation
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) comment.line
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) constant
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.character
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.character.escape
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.numeric
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.numeric.integer
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.numeric.float
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.numeric.hex
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.numeric.octal
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.other
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) constant.other.placeholder
#684D99 RGB(104, 77, 153) RGBA(104, 77, 153, 1) entity
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.name
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) entity.name.class
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.name.function
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.name.tag
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) entity.name.type
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.name.type.enum
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.name.type.interface
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.name.type.struct
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.other
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.other.attribute-name
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) entity.other.inherited-class
#679C00 RGB(103, 156, 0) RGBA(103, 156, 0, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.control
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.control.flow
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.operator
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.operator.new
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.operator.assignment
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.operator.arithmetic
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.operator.logical
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) keyword.other
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) markup
#DDBB88 RGB(221, 187, 136) RGBA(221, 187, 136, 1) markup.bold
#22AA44 RGB(34, 170, 68) RGBA(34, 170, 68, 1) markup.changed
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) markup.deleted
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.heading
#CF7000 RGB(207, 112, 0) RGBA(207, 112, 0, 1) markup.inline.raw
#9966B8 RGB(153, 102, 184) RGBA(153, 102, 184, 1) markup.inserted
#219186 RGB(33, 145, 134) RGBA(33, 145, 134, 1) markup.italic
#22AA44 RGB(34, 170, 68) RGBA(34, 170, 68, 1) markup.quote
#22AA44 RGB(34, 170, 68) RGBA(34, 170, 68, 1) meta
#E0EDDD RGB(224, 237, 221) RGBA(224, 237, 221, 1) storage
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) storage.modifier
#F9005A RGB(249, 0, 90) RGBA(249, 0, 90, 1) storage.type
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) string
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.interpolated
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.other
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.quoted
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.quoted.double
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.quoted.other
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.quoted.single
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.quoted.triple
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.regexp
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.template
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) string.unquoted
#998F2F RGB(153, 143, 47) RGBA(153, 143, 47, 1) support
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) support.class
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) support.constant
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) support.function
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) support.other
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) support.type
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) support.type.primitive
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) support.type.property-name
#0089B3 RGB(0, 137, 179) RGBA(0, 137, 179, 1) variable
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.function
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.language
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.name
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.other
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.other.constant
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.other.property
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.other.readwrite
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) variable.parameter
#CF7000 RGB(207, 112, 0) RGBA(207, 112, 0, 1)