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
Dark Rex Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBar.foreground
#01F9C6 RGB(1, 249, 198) RGBA(1, 249, 198, 1) activityBar.inactiveForeground
#E7E7E799 RGB(231, 231, 231) RGBA(231, 231, 231, 0.6) activityBarBadge.background
#606020 RGB(96, 96, 32) RGBA(96, 96, 32, 1) activityBarBadge.foreground
#E7E7E7 RGB(231, 231, 231) RGBA(231, 231, 231, 1) commandCenter.border
#E7E7E799 RGB(231, 231, 231) RGBA(231, 231, 231, 0.6) editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editorCursor.foreground
#AEAFAD RGB(174, 175, 173) RGBA(174, 175, 173, 1) editorGroupHeader.tabsBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editorLineNumber.foreground
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) list.activeSelectionBackground
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) list.hoverBackground
#2A2D2E RGB(42, 45, 46) RGBA(42, 45, 46, 1) list.hoverForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) peekViewEditor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) peekViewEditor.matchHighlightBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) peekViewEditor.matchHighlightBorder
#01F9C6 RGB(1, 249, 198) RGBA(1, 249, 198, 1) sash.hoverBorder
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) sideBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) statusBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.foreground
#E7E7E7 RGB(231, 231, 231) RGBA(231, 231, 231, 1) statusBarItem.hoverBackground
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) statusBarItem.remoteBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBarItem.remoteForeground
#E7E7E7 RGB(231, 231, 231) RGBA(231, 231, 231, 1) tab.activeBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.activeBorder
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) tab.activeBorderTop
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) tab.activeForeground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) tab.border
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) tab.inactiveBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) titleBar.activeBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) titleBar.activeForeground
#E7E7E7 RGB(231, 231, 231) RGBA(231, 231, 231, 1) titleBar.inactiveBackground
#00000099 RGB(0, 0, 0) RGBA(0, 0, 0, 0.6) titleBar.inactiveForeground
#E7E7E799 RGB(231, 231, 231) RGBA(231, 231, 231, 0.6)
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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#D6498B RGB(214, 73, 139) RGBA(214, 73, 139, 1) constant.character
#8080FF RGB(128, 128, 255) RGBA(128, 128, 255, 1) constant.character.escape
#8080FF RGB(128, 128, 255) RGBA(128, 128, 255, 1) constant.numeric
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) constant.numeric.integer
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) constant.numeric.float
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) constant.numeric.hex
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) constant.numeric.octal
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) constant.other
#8080FF RGB(128, 128, 255) RGBA(128, 128, 255, 1) constant.other.placeholder
#8080FF RGB(128, 128, 255) RGBA(128, 128, 255, 1) constant.regexp
#D6498B RGB(214, 73, 139) RGBA(214, 73, 139, 1) constant.rgb-value
#D6498B RGB(214, 73, 139) RGBA(214, 73, 139, 1) entity
#FFE082 RGB(255, 224, 130) RGBA(255, 224, 130, 1) entity.name
#FFE082 RGB(255, 224, 130) RGBA(255, 224, 130, 1) entity.name.class
#FF5E5E RGB(255, 94, 94) RGBA(255, 94, 94, 1) entity.name.function
#C9E9E0 RGB(201, 233, 224) RGBA(201, 233, 224, 1) entity.name.section
#FFE082 RGB(255, 224, 130) RGBA(255, 224, 130, 1) entity.name.tag
#B8FCB1 RGB(184, 252, 177) RGBA(184, 252, 177, 1) entity.name.type
#FF5E5E RGB(255, 94, 94) RGBA(255, 94, 94, 1) entity.name.type.enum
#FF5E5E RGB(255, 94, 94) RGBA(255, 94, 94, 1) entity.name.type.interface
#FF5E5E RGB(255, 94, 94) RGBA(255, 94, 94, 1) entity.name.type.struct
#FF5E5E RGB(255, 94, 94) RGBA(255, 94, 94, 1) entity.other
#01F9C6 RGB(1, 249, 198) RGBA(1, 249, 198, 1) entity.other.attribute-name
#01F9C6 RGB(1, 249, 198) RGBA(1, 249, 198, 1) entity.other.inherited-class
#B8FCB1 RGB(184, 252, 177) RGBA(184, 252, 177, 1) invalid
#FF0B00 RGB(255, 11, 0) RGBA(255, 11, 0, 1) invalid.deprecated
#FF0B00 RGB(255, 11, 0) RGBA(255, 11, 0, 1) invalid.illegal
#FF0B00 RGB(255, 11, 0) RGBA(255, 11, 0, 1) keyword
#D77676 RGB(215, 118, 118) RGBA(215, 118, 118, 1) keyword.control
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.control.flow
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.operator
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.operator.new
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.operator.assignment
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.operator.arithmetic
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.operator.logical
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) keyword.other
#FF5E5E RGB(255, 94, 94) RGBA(255, 94, 94, 1) markup
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) markup.bold
#6089B4 RGB(96, 137, 180) RGBA(96, 137, 180, 1) markup.changed
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) markup.deleted
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.heading
#D0B344 RGB(208, 179, 68) RGBA(208, 179, 68, 1) markup.inline.raw
#FF0080 RGB(255, 0, 128) RGBA(255, 0, 128, 1) markup.inserted
#219186 RGB(33, 145, 134) RGBA(33, 145, 134, 1) markup.italic
#6089B4 RGB(96, 137, 180) RGBA(96, 137, 180, 1) markup.list
#9AA83A RGB(154, 168, 58) RGBA(154, 168, 58, 1) markup.list.numbered
#9AA83A RGB(154, 168, 58) RGBA(154, 168, 58, 1) markup.list.unnumbered
#9AA83A RGB(154, 168, 58) RGBA(154, 168, 58, 1) markup.quote
#9872A2 RGB(152, 114, 162) RGBA(152, 114, 162, 1) markup.underline
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) markup.underline.link
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) meta
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.block
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.cast
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function-call
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.preprocessor
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.return-type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.selector
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.type.annotation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.bracket
#B8FCB1 RGB(184, 252, 177) RGBA(184, 252, 177, 1) punctuation.definition.comment
#B8FCB1 RGB(184, 252, 177) RGBA(184, 252, 177, 1) punctuation.definition.string.begin
#A9B9B0 RGB(169, 185, 176) RGBA(169, 185, 176, 1) punctuation.definition.string.end
#A9B9B0 RGB(169, 185, 176) RGBA(169, 185, 176, 1) punctuation.separator
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) punctuation.separator.continuation
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) punctuation.terminator
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) storage
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) storage.modifier
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) storage.type
#6D6D6D RGB(109, 109, 109) RGBA(109, 109, 109, 1) string
#F7C376 RGB(247, 195, 118) RGBA(247, 195, 118, 1) string.interpolated
#F7C376 RGB(247, 195, 118) RGBA(247, 195, 118, 1) string.other
#F7C376 RGB(247, 195, 118) RGBA(247, 195, 118, 1) string.quoted
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) string.quoted.double
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) string.quoted.other
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) string.quoted.single
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) string.quoted.triple
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) string.regexp
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) string.template
#F7C376 RGB(247, 195, 118) RGBA(247, 195, 118, 1) string.unquoted
#F7C376 RGB(247, 195, 118) RGBA(247, 195, 118, 1) support
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) support.class
#B8FCB1 RGB(184, 252, 177) RGBA(184, 252, 177, 1) support.constant
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1) support.function
#8CDAFF RGB(140, 218, 255) RGBA(140, 218, 255, 1) support.type
#EC407A RGB(236, 64, 122) RGBA(236, 64, 122, 1) support.type.property-name
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) support.variable
#E9FDAC RGB(233, 253, 172) RGBA(233, 253, 172, 1) variable
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.function
#D68D5B RGB(214, 141, 91) RGBA(214, 141, 91, 1) variable.language
#FFCC32 RGB(255, 204, 50) RGBA(255, 204, 50, 1) variable.other
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other.property
#8D6E63 RGB(141, 110, 99) RGBA(141, 110, 99, 1) variable.parameter
#69F0AE RGB(105, 240, 174) RGBA(105, 240, 174, 1)