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
Rainbow Spectrum
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#0B1220 RGB(11, 18, 32) RGBA(11, 18, 32, 1) breadcrumb.background
#191A2D RGB(25, 26, 45) RGBA(25, 26, 45, 1) breadcrumb.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) button.background
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) button.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) chat.avatarBackground
#272131 RGB(39, 33, 49) RGBA(39, 33, 49, 1) chat.avatarForeground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) chat.slashCommandBackground
#272131 RGB(39, 33, 49) RGBA(39, 33, 49, 1) chat.slashCommandForeground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) chatCodeBlock.background
#0B1220 RGB(11, 18, 32) RGBA(11, 18, 32, 1) editor.background
#0B1220 RGB(11, 18, 32) RGBA(11, 18, 32, 1) editor.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editorGroupHeader.tabsBackground
#121D34 RGB(18, 29, 52) RGBA(18, 29, 52, 1) editorHoverWidget.background
#191A2D RGB(25, 26, 45) RGBA(25, 26, 45, 1) editorSuggestWidget.background
#191A2D RGB(25, 26, 45) RGBA(25, 26, 45, 1) input.background
#272131 RGB(39, 33, 49) RGBA(39, 33, 49, 1) input.border
#121D34 RGB(18, 29, 52) RGBA(18, 29, 52, 1) input.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) inputOption.activeBorder
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) inputValidation.errorBackground
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) inputValidation.errorBorder
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) list.hoverBackground
#191A2D RGB(25, 26, 45) RGBA(25, 26, 45, 1) panel.background
#0B1220 RGB(11, 18, 32) RGBA(11, 18, 32, 1) panel.border
#121D34 RGB(18, 29, 52) RGBA(18, 29, 52, 1) quickInput.background
#191A2D RGB(25, 26, 45) RGBA(25, 26, 45, 1) sideBar.background
#0B1220 RGB(11, 18, 32) RGBA(11, 18, 32, 1) sideBar.border
#121D34 RGB(18, 29, 52) RGBA(18, 29, 52, 1) statusBar.background
#121D34 RGB(18, 29, 52) RGBA(18, 29, 52, 1) tab.activeBackground
#080D17 RGB(8, 13, 23) RGBA(8, 13, 23, 1) tab.inactiveBackground
#121D34 RGB(18, 29, 52) RGBA(18, 29, 52, 1) titleBar.activeBackground
#0C121F RGB(12, 18, 31) RGBA(12, 18, 31, 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
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) comment.block
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) comment.block.documentation
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) comment.line
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) constant
#6C5CE7 RGB(108, 92, 231) RGBA(108, 92, 231, 1) constant.character
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) constant.character.escape
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) constant.numeric
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.integer
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.float
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.hex
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.numeric.octal
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) constant.other
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) constant.other.placeholder
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) entity
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.class
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.function
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.method
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.section
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.tag
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) entity.name.type
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.type.enum
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.type.interface
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.name.type.struct
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.other
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) entity.other.attribute-name
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) entity.other.inherited-class
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) keyword
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.control
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.control.flow
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.operator
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.operator.new
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.operator.assignment
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.operator.arithmetic
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.operator.logical
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) keyword.other
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) markup
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) markup.bold
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) markup.heading
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) markup.inline.raw
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) markup.italic
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) markup.raw
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) meta
#A8A8A3 RGB(168, 168, 163) RGBA(168, 168, 163, 1) meta.function-call
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) meta.tag
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) meta.type.annotation
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) meta.type
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) punctuation.definition.bracket
#A8A8A3 RGB(168, 168, 163) RGBA(168, 168, 163, 1) punctuation.definition.comment
#7AA2F7 RGB(122, 162, 247) RGBA(122, 162, 247, 1) punctuation.definition.string.begin
#A8A8A3 RGB(168, 168, 163) RGBA(168, 168, 163, 1) punctuation.definition.string.end
#A8A8A3 RGB(168, 168, 163) RGBA(168, 168, 163, 1) punctuation.separator
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) punctuation.separator.continuation
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) punctuation.terminator
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) storage
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) storage.modifier
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) storage.type
#FF6B6B RGB(255, 107, 107) RGBA(255, 107, 107, 1) string
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.interpolated
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.other
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.quoted
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.quoted.double
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.quoted.other
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.quoted.single
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.quoted.triple
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.regexp
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.template
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) string.unquoted
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) support
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) support.class
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) support.constant
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) support.function
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) support.type
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) support.type.primitive
#4ECDC4 RGB(78, 205, 196) RGBA(78, 205, 196, 1) support.type.property-name
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) support.variable
#7BED9F RGB(123, 237, 159) RGBA(123, 237, 159, 1) variable
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.function
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.language
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.name
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.constant
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.property
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.readwrite
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.parameter
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1)