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
Cosmic Night Jade
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#0F1615 RGB(15, 22, 21) RGBA(15, 22, 21, 1) activityBar.foreground
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) button.background
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) button.foreground
#0F1615 RGB(15, 22, 21) RGBA(15, 22, 21, 1) button.hoverBackground
#7FFDE2 RGB(127, 253, 226) RGBA(127, 253, 226, 1) editor.background
#111A19 RGB(17, 26, 25) RGBA(17, 26, 25, 1) editor.foreground
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) editor.lineHighlightBackground
#142E2B RGB(20, 46, 43) RGBA(20, 46, 43, 1) editor.selectionBackground
#1F4F46 RGB(31, 79, 70) RGBA(31, 79, 70, 1) editor.wordHighlightBackground
#1F4F46 RGB(31, 79, 70) RGBA(31, 79, 70, 1) editorGroupHeader.tabsBackground
#0F1615 RGB(15, 22, 21) RGBA(15, 22, 21, 1) focusBorder
#4AFFD650 RGB(74, 255, 214) RGBA(74, 255, 214, 0.314) inputOption.activeBorder
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) progressBar.background
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) sideBar.background
#111A19 RGB(17, 26, 25) RGBA(17, 26, 25, 1) sideBar.foreground
#B8E2D9 RGB(184, 226, 217) RGBA(184, 226, 217, 1) statusBar.background
#0F1615 RGB(15, 22, 21) RGBA(15, 22, 21, 1) statusBar.foreground
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) tab.activeBackground
#111A19 RGB(17, 26, 25) RGBA(17, 26, 25, 1) tab.inactiveBackground
#0F1615 RGB(15, 22, 21) RGBA(15, 22, 21, 1) titleBar.activeBackground
#0F1615 RGB(15, 22, 21) RGBA(15, 22, 21, 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
#619F92 RGB(97, 159, 146) RGBA(97, 159, 146, 1) comment.block
#619F92 RGB(97, 159, 146) RGBA(97, 159, 146, 1) comment.block.documentation
#619F92 RGB(97, 159, 146) RGBA(97, 159, 146, 1) comment.line
#619F92 RGB(97, 159, 146) RGBA(97, 159, 146, 1) constant
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) constant.character
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.character.escape
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.numeric
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.numeric.integer
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.numeric.float
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.numeric.hex
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.numeric.octal
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) constant.other
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) constant.other.placeholder
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) entity
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) entity.name
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) entity.name.class
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) entity.name.function
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) entity.name.tag
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) entity.name.type
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) entity.name.type.enum
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) entity.name.type.interface
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) entity.name.type.struct
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) entity.other
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) entity.other.attribute-name
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) entity.other.inherited-class
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) keyword
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) keyword.control
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) keyword.control.flow
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) keyword.operator
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) keyword.operator.new
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) keyword.operator.assignment
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) keyword.operator.arithmetic
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) keyword.operator.logical
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) keyword.other
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) markup
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.bold
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.heading
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.inline.raw
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.italic
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.list
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.list.numbered
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.list.unnumbered
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.quote
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.raw
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.underline
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) markup.underline.link
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) meta
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) meta.function
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) meta.function-call
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) meta.tag
#73FFE0 RGB(115, 255, 224) RGBA(115, 255, 224, 1) punctuation.definition.bracket
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) punctuation.definition.comment
#619F92 RGB(97, 159, 146) RGBA(97, 159, 146, 1) punctuation.definition.string.begin
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) punctuation.definition.string.end
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) punctuation.separator
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) punctuation.separator.continuation
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) punctuation.terminator
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) storage
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) storage.modifier
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) storage.type
#4AFFD6 RGB(74, 255, 214) RGBA(74, 255, 214, 1) string
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.interpolated
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.other
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.quoted
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.quoted.double
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.quoted.other
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.quoted.single
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.quoted.triple
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.regexp
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.template
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) string.unquoted
#B4FFE6 RGB(180, 255, 230) RGBA(180, 255, 230, 1) support
#40E6C1 RGB(64, 230, 193) RGBA(64, 230, 193, 1) support.class
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) support.constant
#FFB84A RGB(255, 184, 74) RGBA(255, 184, 74, 1) support.function
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) support.type
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) support.type.primitive
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) support.type.property-name
#A3FFE8 RGB(163, 255, 232) RGBA(163, 255, 232, 1) variable
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) variable.function
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) variable.language
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) variable.name
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) variable.other
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) variable.other.constant
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) variable.other.property
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1) variable.other.readwrite
#8AFFE7 RGB(138, 255, 231) RGBA(138, 255, 231, 1) variable.parameter
#E2F3F1 RGB(226, 243, 241) RGBA(226, 243, 241, 1)