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 editor.background
#303D41 RGB(48, 61, 65) RGBA(48, 61, 65, 1) editor.findMatchHighlightBackground
#F18260 RGB(241, 130, 96) RGBA(241, 130, 96, 1) editor.foreground
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) editor.inactiveSelectionBackground
#3C3C3C RGB(60, 60, 60) RGBA(60, 60, 60, 1) editor.lineHighlightBackground
#252525 RGB(37, 37, 37) RGBA(37, 37, 37, 1) selection.background
#4C4C4C RGB(76, 76, 76) RGBA(76, 76, 76, 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
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block.documentation
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.line
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.character
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.character.escape
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.numeric
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.numeric.integer
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.numeric.float
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.numeric.hex
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.numeric.octal
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.other
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.other.placeholder
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.regexp
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) constant.rgb-value
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) entity
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) entity.name
#F49D62 RGB(244, 157, 98) RGBA(244, 157, 98, 1) entity.name.function
#F49D62 RGB(244, 157, 98) RGBA(244, 157, 98, 1) entity.name.tag
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) entity.name.type
#F49D62 RGB(244, 157, 98) RGBA(244, 157, 98, 1) entity.name.type.interface
#F49D62 RGB(244, 157, 98) RGBA(244, 157, 98, 1) entity.other
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) entity.other.attribute-name
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) keyword
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.control
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.control.flow
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.operator
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.operator.new
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.operator.assignment
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.operator.arithmetic
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.operator.logical
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) keyword.other
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) meta
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) meta.tag
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) punctuation.definition.comment
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.separator
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) storage
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) storage.modifier
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) storage.type
#FFDF81 RGB(255, 223, 129) RGBA(255, 223, 129, 1) string
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.interpolated
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.double
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.single
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.triple
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.regexp
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.template
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.unquoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.class
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.constant
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.function
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.other
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.type
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.type.primitive
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) support.type.property-name
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support.variable
#EE6666 RGB(238, 102, 102) RGBA(238, 102, 102, 1) variable
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.function
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.language
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.name
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.other
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.other.constant
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.other.property
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.other.readwrite
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1) variable.parameter
#92BFBF RGB(146, 191, 191) RGBA(146, 191, 191, 1)