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
The Sigma Male Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) activityBar.foreground
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) activityBarBadge.background
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) activityBarBadge.foreground
#5E5E5E RGB(94, 94, 94) RGBA(94, 94, 94, 1) editor.background
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorGroupHeader.tabsBackground
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) minimap.background
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) minimap.sliderBackground
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) minimapSlider.background
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) scrollbarSlider.activeBackground
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) scrollbarSlider.background
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) scrollbarSlider.hoverBackground
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) sideBar.background
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) sideBarTitle.foreground
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) statusBar.background
#913E88 RGB(145, 62, 136) RGBA(145, 62, 136, 1) statusBar.debuggingBackground
#0061B1 RGB(0, 97, 177) RGBA(0, 97, 177, 1) statusBar.noFolderBackground
#913E88 RGB(145, 62, 136) RGBA(145, 62, 136, 1) tab.activeBorder
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) tab.activeForeground
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) tab.inactiveBackground
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.character
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) constant.numeric.integer
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) constant.numeric.float
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) constant.numeric.hex
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) constant.numeric.octal
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) constant.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#FFA7F6 RGB(255, 167, 246) RGBA(255, 167, 246, 1) entity.name
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.class
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.function
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) entity.name.method
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.namespace
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.section
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.selector
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.tag
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) entity.name.type
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.type.enum
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.type.interface
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.name.type.struct
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) entity.other
#FFA7F6 RGB(255, 167, 246) RGBA(255, 167, 246, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) invalid
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) invalid.deprecated
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) invalid.illegal
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) keyword
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) keyword.control
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) keyword.control.flow
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) keyword.operator
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) keyword.operator.new
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) keyword.operator.assignment
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) keyword.operator.arithmetic
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) keyword.operator.logical
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) keyword.other
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) markup.changed
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) markup.deleted
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) markup.heading
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) markup.inline.raw
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) markup.inserted
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) markup.italic
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 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
#D5B8FF RGB(213, 184, 255) RGBA(213, 184, 255, 1) meta.function
#D5B8FF RGB(213, 184, 255) RGBA(213, 184, 255, 1) meta.function-call
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) meta.tag
FF9FC9 — — punctuation.definition.bracket
FF9FC9 — — punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
FF9FC9 — — punctuation.definition.string.end
FF9FC9 — — punctuation.separator
FF9FC9 — — punctuation.separator.continuation
FF9FC9 — — punctuation.terminator
FF9FC9 — — storage
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) storage.modifier
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) storage.type
#00DDF4 RGB(0, 221, 244) RGBA(0, 221, 244, 1) string
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.interpolated
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.other
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.quoted
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.quoted.double
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.quoted.other
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.quoted.single
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.quoted.triple
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) string.unquoted
#3BD6FF RGB(59, 214, 255) RGBA(59, 214, 255, 1) support
#D5B8FF RGB(213, 184, 255) RGBA(213, 184, 255, 1) support.class
#D5B8FF RGB(213, 184, 255) RGBA(213, 184, 255, 1) support.constant
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) support.function
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) support.other
#D5B8FF RGB(213, 184, 255) RGBA(213, 184, 255, 1) support.type
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) support.type.primitive
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1) variable.language
#FF9FC9 RGB(255, 159, 201) RGBA(255, 159, 201, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#93C9FF RGB(147, 201, 255) RGBA(147, 201, 255, 1)