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
IceBerg
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#222233 RGB(34, 34, 51) RGBA(34, 34, 51, 1) activityBarBadge.background
#3F1212 RGB(63, 18, 18) RGBA(63, 18, 18, 1) dropdown.background
#47476B RGB(71, 71, 107) RGBA(71, 71, 107, 1) dropdown.listBackground
#1D1D2F RGB(29, 29, 47) RGBA(29, 29, 47, 1) editor.background
#131111 RGB(19, 17, 17) RGBA(19, 17, 17, 1) editor.foreground
#0EB95B RGB(14, 185, 91) RGBA(14, 185, 91, 1) editor.lineHighlightBackground
#1F1F2E RGB(31, 31, 46) RGBA(31, 31, 46, 1) editorGroupHeader.tabsBackground
#222233 RGB(34, 34, 51) RGBA(34, 34, 51, 1) editorIndentGuide.background
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) editorWhitespace.foreground
#424242 RGB(66, 66, 66) RGBA(66, 66, 66, 1) input.background
#33334D RGB(51, 51, 77) RGBA(51, 51, 77, 1) list.focusBackground
#47476B RGB(71, 71, 107) RGBA(71, 71, 107, 1) list.focusForeground
#B84D4D RGB(184, 77, 77) RGBA(184, 77, 77, 1) list.hoverBackground
#86BA90 RGB(134, 186, 144) RGBA(134, 186, 144, 1) list.hoverForeground
#1F1F2E RGB(31, 31, 46) RGBA(31, 31, 46, 1) notifications.background
#222233 RGB(34, 34, 51) RGBA(34, 34, 51, 1) notifications.foreground
#AACCFF RGB(170, 204, 255) RGBA(170, 204, 255, 1) sideBar.background
#1D1C1C RGB(29, 28, 28) RGBA(29, 28, 28, 1) sideBar.foreground
#698FC7 RGB(105, 143, 199) RGBA(105, 143, 199, 1) sideBarTitle.foreground
#8B4A4A RGB(139, 74, 74) RGBA(139, 74, 74, 1) statusBar.background
#16001E RGB(22, 0, 30) RGBA(22, 0, 30, 1) statusBar.foreground
#F7B2B7 RGB(247, 178, 183) RGBA(247, 178, 183, 1) tab.activeBackground
#222233 RGB(34, 34, 51) RGBA(34, 34, 51, 1) tab.activeBorder
#222233 RGB(34, 34, 51) RGBA(34, 34, 51, 1) tab.inactiveBackground
#222233 RGB(34, 34, 51) RGBA(34, 34, 51, 1) terminal.background
#13101D RGB(19, 16, 29) RGBA(19, 16, 29, 1) terminal.foreground
#AACCFF RGB(170, 204, 255) RGBA(170, 204, 255, 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
#574548 RGB(87, 69, 72) RGBA(87, 69, 72, 1) comment.block
#574548 RGB(87, 69, 72) RGBA(87, 69, 72, 1) comment.block.documentation
#574548 RGB(87, 69, 72) RGBA(87, 69, 72, 1) comment.line
#574548 RGB(87, 69, 72) RGBA(87, 69, 72, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) constant.numeric.integer
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) constant.numeric.float
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) constant.numeric.hex
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) constant.numeric.octal
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#11A5A5 RGB(17, 165, 165) RGBA(17, 165, 165, 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
#9AB87A RGB(154, 184, 122) RGBA(154, 184, 122, 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
#07D6FF RGB(7, 214, 255) RGBA(7, 214, 255, 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
#C29543 RGB(194, 149, 67) RGBA(194, 149, 67, 1) entity.other.attribute-name
#77A890 RGB(119, 168, 144) RGBA(119, 168, 144, 1) entity.other.inherited-class
#BEA15E RGB(190, 161, 94) RGBA(190, 161, 94, 1) invalid
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 1) invalid.deprecated
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 1) invalid.illegal
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 1) keyword
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) keyword.control
#C8C0C0 RGB(200, 192, 192) RGBA(200, 192, 192, 1) keyword.control.flow
#C8C0C0 RGB(200, 192, 192) RGBA(200, 192, 192, 1) keyword.operator
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) keyword.operator.new
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) keyword.operator.assignment
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) keyword.operator.arithmetic
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) keyword.operator.logical
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) keyword.other
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 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
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#BEA15E RGB(190, 161, 94) RGBA(190, 161, 94, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 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
#9AB87A RGB(154, 184, 122) RGBA(154, 184, 122, 1) meta.tag
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) punctuation.definition.bracket
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) punctuation.definition.comment
#574548 RGB(87, 69, 72) RGBA(87, 69, 72, 1) punctuation.definition.string.begin
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) punctuation.definition.string.end
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) punctuation.separator
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) punctuation.separator.continuation
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) punctuation.terminator
#C0ADAD RGB(192, 173, 173) RGBA(192, 173, 173, 1) storage
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) storage.modifier
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 1) storage.type
#938274 RGB(147, 130, 116) RGBA(147, 130, 116, 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
#1CA2D6 RGB(28, 162, 214) RGBA(28, 162, 214, 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
#A1A1A1 RGB(161, 161, 161) RGBA(161, 161, 161, 1) support.constant
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1) support.function
#9AB87A RGB(154, 184, 122) RGBA(154, 184, 122, 1) support.other
#A1A1A1 RGB(161, 161, 161) RGBA(161, 161, 161, 1) support.type
#9AB5BE RGB(154, 181, 190) RGBA(154, 181, 190, 1) support.type.primitive
#9AB5BE RGB(154, 181, 190) RGBA(154, 181, 190, 1) support.type.property-name
#84D2F6 RGB(132, 210, 246) RGBA(132, 210, 246, 1) variable
#11A5A5 RGB(17, 165, 165) RGBA(17, 165, 165, 1) variable.function
#9AB87A RGB(154, 184, 122) RGBA(154, 184, 122, 1) variable.language
#D1CECE RGB(209, 206, 206) RGBA(209, 206, 206, 1) variable.name
#11A5A5 RGB(17, 165, 165) RGBA(17, 165, 165, 1) variable.other
#67ABAD RGB(103, 171, 173) RGBA(103, 171, 173, 1) variable.other.constant
#67ABAD RGB(103, 171, 173) RGBA(103, 171, 173, 1) variable.other.property
#67ABAD RGB(103, 171, 173) RGBA(103, 171, 173, 1) variable.other.readwrite
#67ABAD RGB(103, 171, 173) RGBA(103, 171, 173, 1) variable.parameter
#E2D4B7 RGB(226, 212, 183) RGBA(226, 212, 183, 1)