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
Ubuntu Style Theme
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
#AEA79F RGB(174, 167, 159) RGBA(174, 167, 159, 1) comment.block
#AEA79F RGB(174, 167, 159) RGBA(174, 167, 159, 1) comment.block.documentation
#AEA79F RGB(174, 167, 159) RGBA(174, 167, 159, 1) comment.line
#AEA79F RGB(174, 167, 159) RGBA(174, 167, 159, 1) constant
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.character
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.character.escape
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.numeric
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.numeric.integer
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.numeric.float
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.numeric.hex
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.numeric.octal
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.other
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) constant.other.placeholder
#924D8B RGB(146, 77, 139) RGBA(146, 77, 139, 1) entity
#F08763 RGB(240, 135, 99) RGBA(240, 135, 99, 1) entity.name
#E95420 RGB(233, 84, 32) RGBA(233, 84, 32, 1) entity.name.class
#F08763 RGB(240, 135, 99) RGBA(240, 135, 99, 1) entity.name.function
#F08763 RGB(240, 135, 99) RGBA(240, 135, 99, 1) entity.name.tag
#E95420 RGB(233, 84, 32) RGBA(233, 84, 32, 1) entity.other
#F08763 RGB(240, 135, 99) RGBA(240, 135, 99, 1) entity.other.attribute-name
#F08763 RGB(240, 135, 99) RGBA(240, 135, 99, 1) entity.other.inherited-class
#F08763 RGB(240, 135, 99) RGBA(240, 135, 99, 1) invalid
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) invalid.deprecated
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) invalid.illegal
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) keyword
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.control
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.control.flow
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.operator
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.operator.new
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.operator.assignment
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.operator.arithmetic
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.operator.logical
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) keyword.other
#9F6986 RGB(159, 105, 134) RGBA(159, 105, 134, 1) storage
#806678 RGB(128, 102, 120) RGBA(128, 102, 120, 1) storage.modifier
#806678 RGB(128, 102, 120) RGBA(128, 102, 120, 1) storage.type
#E95420 RGB(233, 84, 32) RGBA(233, 84, 32, 1) string
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.interpolated
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.other
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.quoted
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.quoted.double
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.quoted.other
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.quoted.single
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.quoted.triple
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.regexp
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.template
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) string.unquoted
#925375 RGB(146, 83, 117) RGBA(146, 83, 117, 1) support
#E84F17 RGB(232, 79, 23) RGBA(232, 79, 23, 1) support.class
#F4AA90 RGB(244, 170, 144) RGBA(244, 170, 144, 1) support.constant
#AD79A8 RGB(173, 121, 168) RGBA(173, 121, 168, 1) support.function
#AD79A8 RGB(173, 121, 168) RGBA(173, 121, 168, 1) support.other
#E84F17 RGB(232, 79, 23) RGBA(232, 79, 23, 1) support.type
#F4AA90 RGB(244, 170, 144) RGBA(244, 170, 144, 1) support.type.primitive
#F4AA90 RGB(244, 170, 144) RGBA(244, 170, 144, 1) support.type.property-name
#F4AA90 RGB(244, 170, 144) RGBA(244, 170, 144, 1) variable
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.function
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.language
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.name
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.other
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.other.constant
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.other.property
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.other.readwrite
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1) variable.parameter
#F29879 RGB(242, 152, 121) RGBA(242, 152, 121, 1)