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
Jellybeams
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
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.block
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.block.documentation
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.line
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) constant
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) constant.character
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) constant.character.escape
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) constant.numeric
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) constant.numeric.integer
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) constant.numeric.float
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) constant.numeric.hex
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) constant.numeric.octal
#CF6A4C RGB(207, 106, 76) RGBA(207, 106, 76, 1) constant.other
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) constant.other.placeholder
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) entity
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.class
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.function
#FAD07A RGB(250, 208, 122) RGBA(250, 208, 122, 1) entity.name.method
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.namespace
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.section
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.selector
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.tag
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.type
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.type.enum
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.type.interface
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.name.type.struct
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.other
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.other.attribute-name
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) entity.other.inherited-class
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) keyword
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) keyword.control
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) keyword.control.flow
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) keyword.other
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) markup
#967EFB RGB(150, 126, 251) RGBA(150, 126, 251, 1) markup.changed
#967EFB RGB(150, 126, 251) RGBA(150, 126, 251, 1) markup.deleted
#A1000D RGB(161, 0, 13) RGBA(161, 0, 13, 1) markup.inserted
#558F1F RGB(85, 143, 31) RGBA(85, 143, 31, 1) meta
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) punctuation.definition.string.begin
#556633 RGB(85, 102, 51) RGBA(85, 102, 51, 1) punctuation.definition.string.end
#556633 RGB(85, 102, 51) RGBA(85, 102, 51, 1) storage
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) storage.modifier
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) storage.type
#8197BF RGB(129, 151, 191) RGBA(129, 151, 191, 1) string
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.interpolated
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.other
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.quoted
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.quoted.double
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.quoted.other
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.quoted.single
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.quoted.triple
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.regexp
#DD0093 RGB(221, 0, 147) RGBA(221, 0, 147, 1) string.template
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) string.unquoted
#99AD6A RGB(153, 173, 106) RGBA(153, 173, 106, 1) support
#FBE3BF RGB(251, 227, 191) RGBA(251, 227, 191, 1) support.class
#FBE3BF RGB(251, 227, 191) RGBA(251, 227, 191, 1) support.type
#FBE3BF RGB(251, 227, 191) RGBA(251, 227, 191, 1) support.type.primitive
#FBE3BF RGB(251, 227, 191) RGBA(251, 227, 191, 1) support.type.property-name
#FBE3BF RGB(251, 227, 191) RGBA(251, 227, 191, 1) variable
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.function
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.language
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.name
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.other
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.other.constant
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.other.property
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.other.readwrite
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1) variable.parameter
#FFB964 RGB(255, 185, 100) RGBA(255, 185, 100, 1)