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
Pastel Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#14141D RGB(20, 20, 29) RGBA(20, 20, 29, 1) activityBar.foreground
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) activityBarBadge.background
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) activityBarBadge.foreground
#1A1A24 RGB(26, 26, 36) RGBA(26, 26, 36, 1) editor.background
#1A1A24 RGB(26, 26, 36) RGBA(26, 26, 36, 1) editor.foreground
#D9E0EE RGB(217, 224, 238) RGBA(217, 224, 238, 1) editorCursor.foreground
#C789F0 RGB(199, 137, 240) RGBA(199, 137, 240, 1) icon.foreground
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) panel.border
#585B70 RGB(88, 91, 112) RGBA(88, 91, 112, 1) panelTitle.activeBorder
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) panelTitle.activeForeground
#CDD6F4 RGB(205, 214, 244) RGBA(205, 214, 244, 1) panelTitle.inactiveForeground
#A6ADC8 RGB(166, 173, 200) RGBA(166, 173, 200, 1) sideBar.background
#1A1A24 RGB(26, 26, 36) RGBA(26, 26, 36, 1) sideBarSectionHeader.foreground
#D9E0EE RGB(217, 224, 238) RGBA(217, 224, 238, 1) sideBarTitle.foreground
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) statusBar.background
#1A1A24 RGB(26, 26, 36) RGBA(26, 26, 36, 1) statusBar.debuggingBackground
#F8BD96 RGB(248, 189, 150) RGBA(248, 189, 150, 1) statusBar.foreground
#D9E0EE RGB(217, 224, 238) RGBA(217, 224, 238, 1) statusBar.noFolderBackground
#1A1A24 RGB(26, 26, 36) RGBA(26, 26, 36, 1) tab.activeBorder
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) tab.activeForeground
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) terminal.ansiBlue
#89B4FA RGB(137, 180, 250) RGBA(137, 180, 250, 1) terminal.ansiBrightBlue
#89B1F0 RGB(137, 177, 240) RGBA(137, 177, 240, 1) terminal.ansiBrightCyan
#6BD7CA RGB(107, 215, 202) RGBA(107, 215, 202, 1) terminal.ansiBrightGreen
#A4E7A6 RGB(164, 231, 166) RGBA(164, 231, 166, 1) terminal.ansiBrightMagenta
#F2AEDE RGB(242, 174, 222) RGBA(242, 174, 222, 1) terminal.ansiBrightRed
#F37799 RGB(243, 119, 153) RGBA(243, 119, 153, 1) terminal.ansiBrightYellow
#E8E2A5 RGB(232, 226, 165) RGBA(232, 226, 165, 1) terminal.ansiCyan
#94E2D5 RGB(148, 226, 213) RGBA(148, 226, 213, 1) terminal.ansiGreen
#A6E3A1 RGB(166, 227, 161) RGBA(166, 227, 161, 1) terminal.ansiMagenta
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) terminal.ansiRed
#F38BA8 RGB(243, 139, 168) RGBA(243, 139, 168, 1) terminal.ansiYellow
#E8E2A5 RGB(232, 226, 165) RGBA(232, 226, 165, 1) terminal.foreground
#D9E0EE RGB(217, 224, 238) RGBA(217, 224, 238, 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
#7B8496 RGB(123, 132, 150) RGBA(123, 132, 150, 1) comment.block
#7B8496 RGB(123, 132, 150) RGBA(123, 132, 150, 1) comment.block.documentation
#7B8496 RGB(123, 132, 150) RGBA(123, 132, 150, 1) comment.line
#7B8496 RGB(123, 132, 150) RGBA(123, 132, 150, 1) constant
#F8BD96 RGB(248, 189, 150) RGBA(248, 189, 150, 1) constant.character
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) constant.numeric.integer
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) constant.numeric.float
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) constant.numeric.hex
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) constant.numeric.octal
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) constant.other
#F8BD96 RGB(248, 189, 150) RGBA(248, 189, 150, 1) constant.other.placeholder
#CDF1C2 RGB(205, 241, 194) RGBA(205, 241, 194, 1) entity
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name.class
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) entity.name.function
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name.method
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name.namespace
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name.section
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name.selector
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) entity.name.tag
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) entity.name.type
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) entity.name.type.enum
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) entity.name.type.interface
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) entity.name.type.struct
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) entity.other
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) entity.other.attribute-name
#F8BD96 RGB(248, 189, 150) RGBA(248, 189, 150, 1) entity.other.inherited-class
#AAFDB8 RGB(170, 253, 184) RGBA(170, 253, 184, 1) invalid
#F28FAD RGB(242, 143, 173) RGBA(242, 143, 173, 1) invalid.deprecated
#F28FAD RGB(242, 143, 173) RGBA(242, 143, 173, 1) invalid.illegal
#F28FAD RGB(242, 143, 173) RGBA(242, 143, 173, 1) keyword
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) keyword.control
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) keyword.control.flow
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) keyword.operator
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) keyword.operator.new
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) keyword.operator.assignment
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) keyword.operator.arithmetic
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) keyword.operator.logical
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) keyword.other
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) markup
#D9E0EE RGB(217, 224, 238) RGBA(217, 224, 238, 1) markup.bold
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) markup.changed
#E8E2A5 RGB(232, 226, 165) RGBA(232, 226, 165, 1) markup.deleted
#F28FAD RGB(242, 143, 173) RGBA(242, 143, 173, 1) markup.heading
#AAFDB8 RGB(170, 253, 184) RGBA(170, 253, 184, 1) markup.inline.raw
#F8BD96 RGB(248, 189, 150) RGBA(248, 189, 150, 1) markup.inserted
#B5E8E0 RGB(181, 232, 224) RGBA(181, 232, 224, 1) markup.italic
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) markup.raw
#D9E0EE RGB(217, 224, 238) RGBA(217, 224, 238, 1) markup.underline
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) markup.underline.link
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) meta
#7B8496 RGB(123, 132, 150) RGBA(123, 132, 150, 1) meta.function-call
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) meta.tag
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.bracket
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.comment
#7B8496 RGB(123, 132, 150) RGBA(123, 132, 150, 1) punctuation.definition.string.begin
#AAFDB8 RGB(170, 253, 184) RGBA(170, 253, 184, 1) punctuation.definition.string.end
#AAFDB8 RGB(170, 253, 184) RGBA(170, 253, 184, 1) punctuation.separator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator.continuation
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.terminator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) storage.modifier
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) storage.type
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.interpolated
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.other
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.quoted
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.quoted.double
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.quoted.other
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.quoted.single
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.quoted.triple
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) string.unquoted
#F5C2E7 RGB(245, 194, 231) RGBA(245, 194, 231, 1) support
#B5E8E0 RGB(181, 232, 224) RGBA(181, 232, 224, 1) support.class
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) support.constant
#96F8B7 RGB(150, 248, 183) RGBA(150, 248, 183, 1) support.function
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) support.other
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) support.type
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) support.type.primitive
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) support.type.property-name
#96CDFB RGB(150, 205, 251) RGBA(150, 205, 251, 1) variable
#CDF1C2 RGB(205, 241, 194) RGBA(205, 241, 194, 1) variable.function
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) variable.language
#CBA6F7 RGB(203, 166, 247) RGBA(203, 166, 247, 1) variable.name
#CDF1C2 RGB(205, 241, 194) RGBA(205, 241, 194, 1) variable.other
#B5E8E0 RGB(181, 232, 224) RGBA(181, 232, 224, 1) variable.other.constant
#B5E8E0 RGB(181, 232, 224) RGBA(181, 232, 224, 1) variable.other.property
#B5E8E0 RGB(181, 232, 224) RGBA(181, 232, 224, 1) variable.other.readwrite
#CDF1C2 RGB(205, 241, 194) RGBA(205, 241, 194, 1) variable.parameter
#CDF1C2 RGB(205, 241, 194) RGBA(205, 241, 194, 1)