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
Fancy Color Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#C328EC RGB(195, 40, 236) RGBA(195, 40, 236, 1) editor.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) sideBarTitle.foreground
#0F0F0F RGB(15, 15, 15) RGBA(15, 15, 15, 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
#AE5BDE RGB(174, 91, 222) RGBA(174, 91, 222, 1) comment.block
#AE5BDE RGB(174, 91, 222) RGBA(174, 91, 222, 1) comment.block.documentation
#AE5BDE RGB(174, 91, 222) RGBA(174, 91, 222, 1) comment.line
#AE5BDE RGB(174, 91, 222) RGBA(174, 91, 222, 1) constant
#FFD604 RGB(255, 214, 4) RGBA(255, 214, 4, 1) constant.character
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) constant.character.escape
#00B7FC RGB(0, 183, 252) RGBA(0, 183, 252, 1) constant.numeric
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) constant.numeric.integer
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) constant.numeric.float
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) constant.numeric.hex
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) constant.numeric.octal
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) constant.other
#FFD604 RGB(255, 214, 4) RGBA(255, 214, 4, 1) constant.other.placeholder
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) entity
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.class
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.function
#008EFF RGB(0, 142, 255) RGBA(0, 142, 255, 1) entity.name.method
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.namespace
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.section
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.selector
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.tag
#FF8200 RGB(255, 130, 0) RGBA(255, 130, 0, 1) entity.name.type
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.type.enum
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.type.interface
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.name.type.struct
#A7F565 RGB(167, 245, 101) RGBA(167, 245, 101, 1) entity.other
#EB009D RGB(235, 0, 157) RGBA(235, 0, 157, 1) entity.other.attribute-name
#A325DE RGB(163, 37, 222) RGBA(163, 37, 222, 1) entity.other.inherited-class
#F2E717 RGB(242, 231, 23) RGBA(242, 231, 23, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) keyword.control
#FF293F RGB(255, 41, 63) RGBA(255, 41, 63, 1) keyword.control.flow
#FF293F RGB(255, 41, 63) RGBA(255, 41, 63, 1) keyword.operator
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) keyword.operator.new
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) keyword.operator.assignment
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) keyword.operator.arithmetic
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) keyword.operator.logical
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) keyword.other
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#9B9BFD RGB(155, 155, 253) RGBA(155, 155, 253, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#F2E717 RGB(242, 231, 23) RGBA(242, 231, 23, 1) markup.inline.raw
#BF59D7 RGB(191, 89, 215) RGBA(191, 89, 215, 1) markup.inserted
#FF9600 RGB(255, 150, 0) RGBA(255, 150, 0, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#3F84FF RGB(63, 132, 255) RGBA(63, 132, 255, 1) meta.function-call
#008EFF RGB(0, 142, 255) RGBA(0, 142, 255, 1) meta.tag
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) punctuation.definition.bracket
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) punctuation.definition.comment
#AE5BDE RGB(174, 91, 222) RGBA(174, 91, 222, 1) punctuation.definition.string.begin
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) punctuation.definition.string.end
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) punctuation.separator
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) punctuation.separator.continuation
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) punctuation.terminator
#FF114E RGB(255, 17, 78) RGBA(255, 17, 78, 1) storage
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) storage.modifier
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) storage.type
#9B5DE5 RGB(155, 93, 229) RGBA(155, 93, 229, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#FF293F RGB(255, 41, 63) RGBA(255, 41, 63, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C8F045 RGB(200, 240, 69) RGBA(200, 240, 69, 1) support.class
#F865AF RGB(248, 101, 175) RGBA(248, 101, 175, 1) support.constant
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1) support.function
#008EFF RGB(0, 142, 255) RGBA(0, 142, 255, 1) support.other
#F865AF RGB(248, 101, 175) RGBA(248, 101, 175, 1) support.type
#3F94FF RGB(63, 148, 255) RGBA(63, 148, 255, 1) support.type.primitive
#3F94FF RGB(63, 148, 255) RGBA(63, 148, 255, 1) support.type.property-name
#B32EED RGB(179, 46, 237) RGBA(179, 46, 237, 1) variable
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) variable.function
#008EFF RGB(0, 142, 255) RGBA(0, 142, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#22CC33 RGB(34, 204, 51) RGBA(34, 204, 51, 1)