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
Bala Dark Color Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#181724 RGB(24, 23, 36) RGBA(24, 23, 36, 1) activityBar.dropBackground
#181724 RGB(24, 23, 36) RGBA(24, 23, 36, 1) activityBarBadge.background
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) editor.background
#201E2F RGB(32, 30, 47) RGBA(32, 30, 47, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editorGroupHeader.tabsBackground
#181724 RGB(24, 23, 36) RGBA(24, 23, 36, 1) sideBar.background
#1D1B2C RGB(29, 27, 44) RGBA(29, 27, 44, 1) sideBar.dropBackground
#1D1B2C RGB(29, 27, 44) RGBA(29, 27, 44, 1) sideBarSectionHeader.background
#1D1B2C RGB(29, 27, 44) RGBA(29, 27, 44, 1) statusBar.background
#4B35EF RGB(75, 53, 239) RGBA(75, 53, 239, 1) tab.activeBackground
#2F2C46 RGB(47, 44, 70) RGBA(47, 44, 70, 1) tab.inactiveBackground
#201E2F RGB(32, 30, 47) RGBA(32, 30, 47, 1) titleBar.activeBackground
#181724 RGB(24, 23, 36) RGBA(24, 23, 36, 1) titleBar.inactiveBackground
#201E2F RGB(32, 30, 47) RGBA(32, 30, 47, 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
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) constant.character.escape
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) constant.numeric
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) constant.numeric.integer
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) constant.numeric.float
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) constant.numeric.hex
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) constant.numeric.octal
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) entity
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.class
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.function
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) entity.name.method
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.namespace
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.section
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.selector
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.tag
#E85D7F RGB(232, 93, 127) RGBA(232, 93, 127, 1) entity.name.type
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.type.enum
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.type.interface
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.name.type.struct
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) keyword.control
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) keyword.control.flow
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) keyword.operator
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) keyword.operator.new
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) keyword.operator.assignment
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) keyword.operator.arithmetic
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) keyword.operator.logical
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) keyword.other
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) markup
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) markup.inline.raw
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) markup.inserted
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 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
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) meta.tag
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.bracket
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.string.end
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator.continuation
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.terminator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) storage.modifier
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 1) storage.type
#B3CCFF RGB(179, 204, 255) RGBA(179, 204, 255, 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
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 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
#FFE083 RGB(255, 224, 131) RGBA(255, 224, 131, 1) support.class
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) support.constant
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) support.function
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) support.other
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.variable
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1) variable
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) variable.function
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#FF8973 RGB(255, 137, 115) RGBA(255, 137, 115, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#83FFF5 RGB(131, 255, 245) RGBA(131, 255, 245, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#CC7BC2 RGB(204, 123, 194) RGBA(204, 123, 194, 1)