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
Caverna-Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#19185C RGB(25, 24, 92) RGBA(25, 24, 92, 1) activityBarBadge.background
#081A40 RGB(8, 26, 64) RGBA(8, 26, 64, 1) editor.background
#04103D RGB(4, 16, 61) RGBA(4, 16, 61, 1) editor.foreground
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) editor.selectionBackground
#7985C970 RGB(121, 133, 201) RGBA(121, 133, 201, 0.439) editorGroupHeader.tabsBackground
#081A40 RGB(8, 26, 64) RGBA(8, 26, 64, 1) sideBar.background
#25437A RGB(37, 67, 122) RGBA(37, 67, 122, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#5B51B4 RGB(91, 81, 180) RGBA(91, 81, 180, 1) tab.inactiveBackground
#121E53 RGB(18, 30, 83) RGBA(18, 30, 83, 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
#8FB7C9 RGB(143, 183, 201) RGBA(143, 183, 201, 1) comment.block
#8FB7C9 RGB(143, 183, 201) RGBA(143, 183, 201, 1) comment.block.documentation
#8FB7C9 RGB(143, 183, 201) RGBA(143, 183, 201, 1) comment.line
#8FB7C9 RGB(143, 183, 201) RGBA(143, 183, 201, 1) constant
#F7AB1F RGB(247, 171, 31) RGBA(247, 171, 31, 1) constant.character
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) constant.character.escape
#6FCDF3 RGB(111, 205, 243) RGBA(111, 205, 243, 1) constant.numeric
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) constant.numeric.integer
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) constant.numeric.float
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) constant.numeric.hex
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) constant.numeric.octal
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) constant.other
#F7AB1F RGB(247, 171, 31) RGBA(247, 171, 31, 1) constant.other.placeholder
#88DBDB RGB(136, 219, 219) RGBA(136, 219, 219, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#6F94E6 RGB(111, 148, 230) RGBA(111, 148, 230, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#EB454D RGB(235, 69, 77) RGBA(235, 69, 77, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#FABE4F RGB(250, 190, 79) RGBA(250, 190, 79, 1) entity.other.attribute-name
#DFB464 RGB(223, 180, 100) RGBA(223, 180, 100, 1) entity.other.inherited-class
#AAD46B RGB(170, 212, 107) RGBA(170, 212, 107, 1) invalid
#B61F38 RGB(182, 31, 56) RGBA(182, 31, 56, 1) invalid.deprecated
#B61F38 RGB(182, 31, 56) RGBA(182, 31, 56, 1) invalid.illegal
#B61F38 RGB(182, 31, 56) RGBA(182, 31, 56, 1) keyword
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) keyword.control
#6392F8 RGB(99, 146, 248) RGBA(99, 146, 248, 1) keyword.control.flow
#6392F8 RGB(99, 146, 248) RGBA(99, 146, 248, 1) keyword.operator
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) keyword.operator.new
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) keyword.operator.assignment
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) keyword.operator.arithmetic
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) keyword.operator.logical
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) keyword.other
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#7F7DE7 RGB(127, 125, 231) RGBA(127, 125, 231, 1) markup.deleted
#DD566D RGB(221, 86, 109) RGBA(221, 86, 109, 1) markup.heading
#AAD46B RGB(170, 212, 107) RGBA(170, 212, 107, 1) markup.inline.raw
#9294EA RGB(146, 148, 234) RGBA(146, 148, 234, 1) markup.inserted
#A7DB58 RGB(167, 219, 88) RGBA(167, 219, 88, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#6F94E6 RGB(111, 148, 230) RGBA(111, 148, 230, 1) meta.tag
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) punctuation.definition.bracket
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) punctuation.definition.comment
#8FB7C9 RGB(143, 183, 201) RGBA(143, 183, 201, 1) punctuation.definition.string.begin
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) punctuation.definition.string.end
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) punctuation.separator
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) punctuation.separator.continuation
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) punctuation.terminator
#6FD3FA RGB(111, 211, 250) RGBA(111, 211, 250, 1) storage
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) storage.modifier
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) storage.type
#54ABF3 RGB(84, 171, 243) RGBA(84, 171, 243, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#E2A93F RGB(226, 169, 63) RGBA(226, 169, 63, 1) support.constant
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1) support.function
#6F94E6 RGB(111, 148, 230) RGBA(111, 148, 230, 1) support.other
#E2A93F RGB(226, 169, 63) RGBA(226, 169, 63, 1) support.type
#6BAEC9 RGB(107, 174, 201) RGBA(107, 174, 201, 1) support.type.primitive
#6BAEC9 RGB(107, 174, 201) RGBA(107, 174, 201, 1) support.type.property-name
#4590AD RGB(69, 144, 173) RGBA(69, 144, 173, 1) variable
#88DBDB RGB(136, 219, 219) RGBA(136, 219, 219, 1) variable.function
#6F94E6 RGB(111, 148, 230) RGBA(111, 148, 230, 1) variable.language
#DA586E RGB(218, 88, 110) RGBA(218, 88, 110, 1) variable.name
#88DBDB RGB(136, 219, 219) RGBA(136, 219, 219, 1) variable.other
#EB6168 RGB(235, 97, 104) RGBA(235, 97, 104, 1) variable.other.constant
#EB6168 RGB(235, 97, 104) RGBA(235, 97, 104, 1) variable.other.property
#EB6168 RGB(235, 97, 104) RGBA(235, 97, 104, 1) variable.other.readwrite
#EB6168 RGB(235, 97, 104) RGBA(235, 97, 104, 1) variable.parameter
#F87C56 RGB(248, 124, 86) RGBA(248, 124, 86, 1)