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
Bronokai
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#3498DB RGB(52, 152, 219) RGBA(52, 152, 219, 1) editor.background
#1D1F21 RGB(29, 31, 33) RGBA(29, 31, 33, 1) editor.foreground
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) sideBarTitle.foreground
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 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
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) comment.block
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) comment.block.documentation
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) comment.line
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) constant
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) constant.character
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) constant.numeric.integer
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) constant.numeric.float
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) constant.numeric.hex
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) constant.numeric.octal
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) constant.other
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) constant.other.placeholder
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) entity
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.class
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.function
#3498DB RGB(52, 152, 219) RGBA(52, 152, 219, 1) entity.name.method
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.namespace
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.section
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.selector
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.tag
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) entity.name.type
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.type.enum
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.type.interface
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.name.type.struct
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) entity.other
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) entity.other.attribute-name
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) entity.other.inherited-class
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) invalid
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) invalid.deprecated
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) invalid.illegal
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) keyword
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) keyword.control
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) keyword.control.flow
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) keyword.operator
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) keyword.operator.new
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) keyword.operator.assignment
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) keyword.operator.arithmetic
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) keyword.operator.logical
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) keyword.other
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 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
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) markup.heading
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 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
#3498DB RGB(52, 152, 219) RGBA(52, 152, 219, 1) meta.tag
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) punctuation.definition.bracket
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) punctuation.definition.comment
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) punctuation.definition.string.begin
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) punctuation.definition.string.end
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) punctuation.separator
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) punctuation.separator.continuation
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) punctuation.terminator
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) storage
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) storage.modifier
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 1) storage.type
#9B59B6 RGB(155, 89, 182) RGBA(155, 89, 182, 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
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 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
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) support.class
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) support.constant
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) support.function
#3498DB RGB(52, 152, 219) RGBA(52, 152, 219, 1) support.other
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) support.type
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) support.type.primitive
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) support.type.property-name
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) support.variable
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) variable
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) variable.function
#3498DB RGB(52, 152, 219) RGBA(52, 152, 219, 1) variable.language
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) variable.name
#F1C40F RGB(241, 196, 15) RGBA(241, 196, 15, 1) variable.other
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) variable.other.constant
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) variable.other.property
#C5C8C6 RGB(197, 200, 198) RGBA(197, 200, 198, 1) variable.other.readwrite
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1) variable.parameter
#E74C3C RGB(231, 76, 60) RGBA(231, 76, 60, 1)