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
Colorful Dark+
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.inactiveSelectionBackground
#3A3D4166 RGB(58, 61, 65) RGBA(58, 61, 65, 0.4) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorIndentGuide.activeBackground1
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background1
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) editorInlayHint.background
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) editorInlayHint.foreground
#505050 RGB(80, 80, 80) RGBA(80, 80, 80, 1) input.placeholderForeground
#A6A6A6 RGB(166, 166, 166) RGBA(166, 166, 166, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) menu.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) menu.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) settings.numberInputBackground
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) settings.textInputBackground
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) sideBarSectionHeader.background
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) sideBarSectionHeader.border
#CCCCCC33 RGB(204, 204, 204) RGBA(204, 204, 204, 0.2) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBarItem.remoteBackground
#16825D RGB(22, 130, 93) RGBA(22, 130, 93, 1) statusBarItem.remoteForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#629749 RGB(98, 151, 73) RGBA(98, 151, 73, 1) comment.block
#629749 RGB(98, 151, 73) RGBA(98, 151, 73, 1) comment.block.documentation
#629749 RGB(98, 151, 73) RGBA(98, 151, 73, 1) comment.line
#629749 RGB(98, 151, 73) RGBA(98, 151, 73, 1) constant
#A9CE95 RGB(169, 206, 149) RGBA(169, 206, 149, 1) constant.character
#1071C0 RGB(16, 113, 192) RGBA(16, 113, 192, 1) constant.character.escape
#D8B56B RGB(216, 181, 107) RGBA(216, 181, 107, 1) constant.numeric
#EE7D9A RGB(238, 125, 154) RGBA(238, 125, 154, 1) constant.numeric.integer
#EE7D9A RGB(238, 125, 154) RGBA(238, 125, 154, 1) constant.numeric.float
#EE7D9A RGB(238, 125, 154) RGBA(238, 125, 154, 1) constant.numeric.hex
#EE7D9A RGB(238, 125, 154) RGBA(238, 125, 154, 1) constant.numeric.octal
#EE7D9A RGB(238, 125, 154) RGBA(238, 125, 154, 1) constant.other
#EE7D9A RGB(238, 125, 154) RGBA(238, 125, 154, 1) constant.regexp
#595B97 RGB(89, 91, 151) RGBA(89, 91, 151, 1) entity
#66C9FF RGB(102, 201, 255) RGBA(102, 201, 255, 1) entity.name
#66C9FF RGB(102, 201, 255) RGBA(102, 201, 255, 1) entity.name.class
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) entity.name.function
#DDDD85 RGB(221, 221, 133) RGBA(221, 221, 133, 1) entity.name.namespace
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) entity.name.tag
#4797D8 RGB(71, 151, 216) RGBA(71, 151, 216, 1) entity.name.type
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) entity.name.type.enum
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) entity.name.type.interface
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) entity.name.type.struct
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) entity.other
#D8B56B RGB(216, 181, 107) RGBA(216, 181, 107, 1) entity.other.attribute-name
#85D3FD RGB(133, 211, 253) RGBA(133, 211, 253, 1) entity.other.inherited-class
#3DCAAE RGB(61, 202, 174) RGBA(61, 202, 174, 1) invalid
#F53434 RGB(245, 52, 52) RGBA(245, 52, 52, 1) invalid.deprecated
#F53434 RGB(245, 52, 52) RGBA(245, 52, 52, 1) invalid.illegal
#F53434 RGB(245, 52, 52) RGBA(245, 52, 52, 1) keyword
#378FD6 RGB(55, 143, 214) RGBA(55, 143, 214, 1) keyword.control
#4696D8 RGB(70, 150, 216) RGBA(70, 150, 216, 1) keyword.control.flow
#4696D8 RGB(70, 150, 216) RGBA(70, 150, 216, 1) keyword.operator
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.operator.new
#4595D6 RGB(69, 149, 214) RGBA(69, 149, 214, 1) keyword.operator.assignment
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.operator.arithmetic
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.operator.logical
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.other
#378FD6 RGB(55, 143, 214) RGBA(55, 143, 214, 1) markup
#CE8467 RGB(206, 132, 103) RGBA(206, 132, 103, 1) markup.bold
#4494D6 RGB(68, 148, 214) RGBA(68, 148, 214, 1) markup.changed
#4796D6 RGB(71, 150, 214) RGBA(71, 150, 214, 1) markup.deleted
#CE8366 RGB(206, 131, 102) RGBA(206, 131, 102, 1) markup.heading
#4394D6 RGB(67, 148, 214) RGBA(67, 148, 214, 1) markup.inline.raw
#CE8467 RGB(206, 132, 103) RGBA(206, 132, 103, 1) markup.inserted
#AACE97 RGB(170, 206, 151) RGBA(170, 206, 151, 1) meta
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) meta.block
#85D4FF RGB(133, 212, 255) RGBA(133, 212, 255, 1) meta.function-call
#85D4FF RGB(133, 212, 255) RGBA(133, 212, 255, 1) meta.preprocessor
#4595D6 RGB(69, 149, 214) RGBA(69, 149, 214, 1) meta.return-type
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) meta.type
#3DCAAE RGB(61, 202, 174) RGBA(61, 202, 174, 1) punctuation.definition.string.begin
#D47F5E RGB(212, 127, 94) RGBA(212, 127, 94, 1) punctuation.definition.string.end
#D47F5E RGB(212, 127, 94) RGBA(212, 127, 94, 1) punctuation.separator
#D1B2B7 RGB(209, 178, 183) RGBA(209, 178, 183, 1) punctuation.terminator
#D1B2B7 RGB(209, 178, 183) RGBA(209, 178, 183, 1) storage
#4596D8 RGB(69, 150, 216) RGBA(69, 150, 216, 1) storage.modifier
#4493D4 RGB(68, 147, 212) RGBA(68, 147, 212, 1) storage.type
#4596D8 RGB(69, 150, 216) RGBA(69, 150, 216, 1) string
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.interpolated
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.other
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.quoted
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.quoted.double
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.quoted.other
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.quoted.single
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.quoted.triple
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.regexp
#D44A4A RGB(212, 74, 74) RGBA(212, 74, 74, 1) string.template
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) string.unquoted
#C06C4B RGB(192, 108, 75) RGBA(192, 108, 75, 1) support
#88D5FF RGB(136, 213, 255) RGBA(136, 213, 255, 1) support.class
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) support.constant
#CF7551 RGB(207, 117, 81) RGBA(207, 117, 81, 1) support.function
#DDDD85 RGB(221, 221, 133) RGBA(221, 221, 133, 1) support.other
#CE8264 RGB(206, 130, 100) RGBA(206, 130, 100, 1) support.type
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) support.type.primitive
#40CAAF RGB(64, 202, 175) RGBA(64, 202, 175, 1) support.type.property-name
#66C9FF RGB(102, 201, 255) RGBA(102, 201, 255, 1) support.variable
#85D4FF RGB(133, 212, 255) RGBA(133, 212, 255, 1) variable
#FF7373 RGB(255, 115, 115) RGBA(255, 115, 115, 1) variable.language
#FF7373 RGB(255, 115, 115) RGBA(255, 115, 115, 1) variable.other
#66C9FF RGB(102, 201, 255) RGBA(102, 201, 255, 1) variable.other.constant
#2BA0DF RGB(43, 160, 223) RGBA(43, 160, 223, 1) variable.other.property
#2BA0DF RGB(43, 160, 223) RGBA(43, 160, 223, 1) variable.other.readwrite
#85D4FF RGB(133, 212, 255) RGBA(133, 212, 255, 1) variable.parameter
#2BA0DF RGB(43, 160, 223) RGBA(43, 160, 223, 1)