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
Four U
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#3D4658D8 RGB(61, 70, 88) RGBA(61, 70, 88, 0.847) activityBar.background
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) activityBarBadge.background
#FE713F RGB(254, 113, 63) RGBA(254, 113, 63, 1) badge.background
#FE713F RGB(254, 113, 63) RGBA(254, 113, 63, 1) badge.foreground
#D8DEE9 RGB(216, 222, 233) RGBA(216, 222, 233, 1) button.background
#FE713F RGB(254, 113, 63) RGBA(254, 113, 63, 1) dropdown.background
#3D4658D8 RGB(61, 70, 88) RGBA(61, 70, 88, 0.847) dropdown.border
#3D4658D8 RGB(61, 70, 88) RGBA(61, 70, 88, 0.847) editor.background
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) editor.foreground
#D8DEE9 RGB(216, 222, 233) RGBA(216, 222, 233, 1) editor.lineHighlightBackground
#21303F RGB(33, 48, 63) RGBA(33, 48, 63, 1) editor.selectionBackground
#15202B RGB(21, 32, 43) RGBA(21, 32, 43, 1) editorCursor.foreground
#F1F1FD RGB(241, 241, 253) RGBA(241, 241, 253, 1) editorGroup.dropBackground
#3C395C9C RGB(60, 57, 92) RGBA(60, 57, 92, 0.612) editorWhitespace.foreground
#3B3A32 RGB(59, 58, 50) RGBA(59, 58, 50, 1) input.background
#1B212B RGB(27, 33, 43) RGBA(27, 33, 43, 1) input.border
#1B212B RGB(27, 33, 43) RGBA(27, 33, 43, 1) list.activeSelectionBackground
#21303F RGB(33, 48, 63) RGBA(33, 48, 63, 1) progressBar.background
#DB0D9D RGB(219, 13, 157) RGBA(219, 13, 157, 1) sideBar.background
#3D4658D8 RGB(61, 70, 88) RGBA(61, 70, 88, 0.847) sideBar.foreground
#D8DEE9 RGB(216, 222, 233) RGBA(216, 222, 233, 1) statusBar.background
#3C395C RGB(60, 57, 92) RGBA(60, 57, 92, 1) tab.activeBackground
#FE713F RGB(254, 113, 63) RGBA(254, 113, 63, 1) tab.activeForeground
#FFFFFFD8 RGB(255, 255, 255) RGBA(255, 255, 255, 0.847) tab.hoverBackground
#2D3749 RGB(45, 55, 73) RGBA(45, 55, 73, 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
#8C8C8CA9 RGB(140, 140, 140) RGBA(140, 140, 140, 0.663) comment.block
#8C8C8CA9 RGB(140, 140, 140) RGBA(140, 140, 140, 0.663) comment.block.documentation
#8C8C8CA9 RGB(140, 140, 140) RGBA(140, 140, 140, 0.663) comment.line
#8C8C8CA9 RGB(140, 140, 140) RGBA(140, 140, 140, 0.663) constant
#FFD0FB RGB(255, 208, 251) RGBA(255, 208, 251, 1) constant.character
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.character.escape
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.integer
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.float
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.hex
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.octal
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.other
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.other.placeholder
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) entity
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.name
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.name.class
#E6576A RGB(230, 87, 106) RGBA(230, 87, 106, 1) entity.name.function
#84FC8EFD RGB(132, 252, 142) RGBA(132, 252, 142, 0.992) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.type
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.other
#3EE2A3 RGB(62, 226, 163) RGBA(62, 226, 163, 1) entity.other.attribute-name
#3EE2A3 RGB(62, 226, 163) RGBA(62, 226, 163, 1) entity.other.inherited-class
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 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
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.control
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.control.flow
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.operator
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.operator.new
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.operator.assignment
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.operator.arithmetic
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.operator.logical
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) keyword.other
#C1F926 RGB(193, 249, 38) RGBA(193, 249, 38, 1) markup
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) markup.bold
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) markup.changed
#BF3904 RGB(191, 57, 4) RGBA(191, 57, 4, 1) markup.deleted
#D3201F RGB(211, 32, 31) RGBA(211, 32, 31, 1) markup.heading
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.inserted
#60CF30 RGB(96, 207, 48) RGBA(96, 207, 48, 1) markup.italic
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) markup.list
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) markup.list.numbered
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) markup.list.unnumbered
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) markup.quote
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.raw
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) markup.underline
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) markup.underline.link
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) meta
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) meta.function-call
#FAB85A RGB(250, 184, 90) RGBA(250, 184, 90, 1) meta.tag
#CD5AC5 RGB(205, 90, 197) RGBA(205, 90, 197, 1) punctuation.definition.string.begin
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) punctuation.definition.string.end
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) punctuation.separator
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.modifier
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.interpolated
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.other
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.quoted
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.quoted.double
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.quoted.other
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.quoted.single
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.quoted.triple
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.regexp
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.template
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) string.unquoted
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 1) support
#90E7F7 RGB(144, 231, 247) RGBA(144, 231, 247, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.other
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) variable
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.language
#D66990 RGB(214, 105, 144) RGBA(214, 105, 144, 1) variable.other
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.other.property
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.parameter
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)