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
Trae Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) activityBar.foreground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) dropdown.background
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) editor.background
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) editor.foreground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) editor.lineHighlightBackground
#E8ECF2 RGB(232, 236, 242) RGBA(232, 236, 242, 1) editorGroupHeader.tabsBackground
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) editorIndentGuide.activeBackground
#AABCF23D RGB(170, 188, 242) RGBA(170, 188, 242, 0.239) editorIndentGuide.background
#AABCF214 RGB(170, 188, 242) RGBA(170, 188, 242, 0.078) editorStickyScrollHover.background
#E8ECF2 RGB(232, 236, 242) RGBA(232, 236, 242, 1) editorWidget.background
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) input.background
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) list.activeSelectionBackground
#D8DCE6 RGB(216, 220, 230) RGBA(216, 220, 230, 1) list.hoverBackground
#D8DCE680 RGB(216, 220, 230) RGBA(216, 220, 230, 0.502) list.inactiveSelectionBackground
#D8DCE680 RGB(216, 220, 230) RGBA(216, 220, 230, 0.502) panel.background
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) sideBar.background
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) sideBar.foreground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) sideBarTitle.foreground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) statusBar.background
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) statusBar.foreground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) tab.activeBackground
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) tab.activeForeground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) tab.inactiveBackground
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) tab.inactiveForeground
#6A6E78 RGB(106, 110, 120) RGBA(106, 110, 120, 1) terminal.background
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) terminal.foreground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) titleBar.activeBackground
#E1E5ED RGB(225, 229, 237) RGBA(225, 229, 237, 1) titleBar.activeForeground
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 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
#8C9099 RGB(140, 144, 153) RGBA(140, 144, 153, 1) comment.block
#8C9099 RGB(140, 144, 153) RGBA(140, 144, 153, 1) comment.block.documentation
#8C9099 RGB(140, 144, 153) RGBA(140, 144, 153, 1) comment.line
#8C9099 RGB(140, 144, 153) RGBA(140, 144, 153, 1) constant
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) constant.character
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) constant.character.escape
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) constant.numeric
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) constant.numeric.integer
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) constant.numeric.float
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) constant.numeric.hex
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) constant.numeric.octal
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) constant.other
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) constant.other.placeholder
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) entity
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) entity.name
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) entity.name.class
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) entity.name.function
#B85C38 RGB(184, 92, 56) RGBA(184, 92, 56, 1) entity.name.method
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) entity.name.namespace
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) entity.name.section
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) entity.name.selector
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) entity.name.tag
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) entity.name.type
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) entity.name.type.enum
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) entity.name.type.interface
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) entity.name.type.struct
#9A6AAD RGB(154, 106, 173) RGBA(154, 106, 173, 1) entity.other
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) entity.other.attribute-name
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) invalid
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) invalid.deprecated
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) invalid.illegal
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) keyword
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) keyword.control
#B85C38 RGB(184, 92, 56) RGBA(184, 92, 56, 1) keyword.control.flow
#B85C38 RGB(184, 92, 56) RGBA(184, 92, 56, 1) keyword.operator
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) keyword.operator.new
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) keyword.operator.assignment
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) keyword.operator.arithmetic
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) keyword.operator.logical
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) keyword.other
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) markup
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) markup.bold
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) markup.changed
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) markup.deleted
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) markup.inline.raw
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) markup.inserted
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) markup.italic
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) markup.raw
#2A2E3A RGB(42, 46, 58) RGBA(42, 46, 58, 1) markup.underline
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) markup.underline.link
#C23A99 RGB(194, 58, 153) RGBA(194, 58, 153, 1) meta
#8C9099 RGB(140, 144, 153) RGBA(140, 144, 153, 1) meta.function-call
#B85C38 RGB(184, 92, 56) RGBA(184, 92, 56, 1) meta.tag
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) punctuation.definition.bracket
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) punctuation.definition.comment
#8C9099 RGB(140, 144, 153) RGBA(140, 144, 153, 1) punctuation.definition.string.begin
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) punctuation.definition.string.end
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) punctuation.separator
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) punctuation.separator.continuation
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) punctuation.terminator
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) storage
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) storage.modifier
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) storage.type
#7940CC RGB(121, 64, 204) RGBA(121, 64, 204, 1) string
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.interpolated
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.other
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.quoted
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.quoted.double
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) string.quoted.other
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.quoted.single
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) string.quoted.triple
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.regexp
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) string.template
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) string.unquoted
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) support
#2E8C4E RGB(46, 140, 78) RGBA(46, 140, 78, 1) support.constant
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) support.function
#B85C38 RGB(184, 92, 56) RGBA(184, 92, 56, 1) support.other
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) support.type
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) support.type.primitive
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) support.type.property-name
#2D6EB6 RGB(45, 110, 182) RGBA(45, 110, 182, 1) variable
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.function
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.language
#C23A45 RGB(194, 58, 69) RGBA(194, 58, 69, 1) variable.name
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.other
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.other.constant
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.other.property
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.other.readwrite
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1) variable.parameter
#9C8A2B RGB(156, 138, 43) RGBA(156, 138, 43, 1)