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
Dusky Glow Dimmed
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#2F81F7 RGB(47, 129, 247) RGBA(47, 129, 247, 1) editor.background
#0D1117 RGB(13, 17, 23) RGBA(13, 17, 23, 1) editor.foreground
#C9D1D9 RGB(201, 209, 217) RGBA(201, 209, 217, 1) sideBarTitle.foreground
#8B949E RGB(139, 148, 158) RGBA(139, 148, 158, 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
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) comment.block
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) comment.block.documentation
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) comment.line
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) constant
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) constant.character
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.character.escape
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) constant.numeric
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.integer
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.float
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.hex
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.numeric.octal
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) constant.other
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) constant.other.placeholder
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.class
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.function
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) entity.name.method
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.namespace
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.section
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.selector
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.tag
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) entity.name.type
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.type.enum
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.type.interface
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.type.struct
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.other
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.other.attribute-name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.other.inherited-class
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 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
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.control
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) keyword.control.flow
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) keyword.operator
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.operator.new
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.operator.assignment
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.operator.arithmetic
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.operator.logical
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) keyword.other
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) markup
#C9D1D9 RGB(201, 209, 217) RGBA(201, 209, 217, 1) markup.bold
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) markup.changed
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) markup.deleted
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) markup.heading
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) markup.inline.raw
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) markup.inserted
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) markup.italic
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) markup.raw
#C9D1D9 RGB(201, 209, 217) RGBA(201, 209, 217, 1) markup.underline
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) markup.underline.link
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) meta
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) meta.function-call
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) meta.tag
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.definition.bracket
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.definition.comment
#6272A4 RGB(98, 114, 164) RGBA(98, 114, 164, 1) punctuation.definition.string.begin
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.definition.string.end
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.separator
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.separator.continuation
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.terminator
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage.modifier
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage.type
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) string
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.interpolated
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.other
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.quoted
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.quoted.double
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.quoted.other
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.quoted.single
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.quoted.triple
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.regexp
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) string.template
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) string.unquoted
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) support
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) support.class
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.constant
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) support.function
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) support.other
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.primitive
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.property-name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable.function
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) variable.language
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) variable.name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable.other
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.other.constant
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.other.property
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.other.readwrite
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.parameter
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1)