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
Space Jam Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#36324B RGB(54, 50, 75) RGBA(54, 50, 75, 1) activityBar.border
#2A244D RGB(42, 36, 77) RGBA(42, 36, 77, 1) activityBar.foreground
#EBF5FF RGB(235, 245, 255) RGBA(235, 245, 255, 1) activityBar.inactiveForeground
#7E90D0 RGB(126, 144, 208) RGBA(126, 144, 208, 1) activityBarBadge.background
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) editor.background
#1C1A2A RGB(28, 26, 42) RGBA(28, 26, 42, 1) editor.foreground
#EBF5FF RGB(235, 245, 255) RGBA(235, 245, 255, 1) sideBar.background
#18142EC6 RGB(24, 20, 46) RGBA(24, 20, 46, 0.776) sideBar.border
#4A4476 RGB(74, 68, 118) RGBA(74, 68, 118, 1) sideBar.foreground
#EBF5FF RGB(235, 245, 255) RGBA(235, 245, 255, 1) sideBarTitle.foreground
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) statusBar.background
#1C1A2A RGB(28, 26, 42) RGBA(28, 26, 42, 1) statusBar.border
#2A244D RGB(42, 36, 77) RGBA(42, 36, 77, 1) statusBar.foreground
#EBF5FF RGB(235, 245, 255) RGBA(235, 245, 255, 1) tab.activeBackground
#1C1A2A RGB(28, 26, 42) RGBA(28, 26, 42, 1) tab.activeBorderTop
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.activeModifiedBorder
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) tab.border
#494661 RGB(73, 70, 97) RGBA(73, 70, 97, 1) tab.inactiveBackground
#2A244D RGB(42, 36, 77) RGBA(42, 36, 77, 1) tab.inactiveForeground
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) tab.unfocusedActiveBorder
#7E90D0 RGB(126, 144, 208) RGBA(126, 144, 208, 1) titleBar.activeBackground
#1C1A2A RGB(28, 26, 42) RGBA(28, 26, 42, 1) titleBar.activeForeground
#EBF5FF RGB(235, 245, 255) RGBA(235, 245, 255, 1) titleBar.inactiveBackground
#18142EC6 RGB(24, 20, 46) RGBA(24, 20, 46, 0.776) titleBar.inactiveForeground
#7E90D0 RGB(126, 144, 208) RGBA(126, 144, 208, 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
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) comment.block
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) comment.block.documentation
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) comment.line
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) constant
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) constant.character
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.character.escape
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.numeric
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.numeric.integer
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.numeric.float
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.numeric.hex
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.numeric.octal
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.other
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) constant.other.placeholder
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) entity
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.class
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.function
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) entity.name.method
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.namespace
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.section
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.selector
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.tag
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.type
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.type.enum
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.type.interface
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.name.type.struct
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) entity.other
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) entity.other.attribute-name
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) entity.other.inherited-class
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) invalid
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) invalid.deprecated
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) invalid.illegal
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) keyword
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) keyword.control
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) keyword.control.flow
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) keyword.operator
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) keyword.operator.new
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) keyword.operator.assignment
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) keyword.operator.arithmetic
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) keyword.operator.logical
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) keyword.other
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) markup
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) markup.bold
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) markup.changed
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) markup.deleted
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) markup.heading
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) markup.inserted
#EEC643 RGB(238, 198, 67) RGBA(238, 198, 67, 1) markup.italic
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) meta
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) meta.function-call
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) meta.tag
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) punctuation.definition.bracket
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) punctuation.definition.comment
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) punctuation.definition.string.begin
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) punctuation.definition.string.end
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) punctuation.separator
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) punctuation.separator.continuation
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) punctuation.terminator
#E4E9F9 RGB(228, 233, 249) RGBA(228, 233, 249, 1) storage
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) storage.modifier
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) storage.type
#AB9DFF RGB(171, 157, 255) RGBA(171, 157, 255, 1) string
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.interpolated
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.other
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.quoted
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.quoted.double
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.quoted.other
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.quoted.single
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.quoted.triple
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.regexp
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) string.template
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) string.unquoted
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) support
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) support.class
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) support.constant
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) support.function
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) support.other
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) support.type
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) support.type.primitive
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) support.type.property-name
#88A2FF RGB(136, 162, 255) RGBA(136, 162, 255, 1) variable
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) variable.function
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) variable.language
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) variable.name
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) variable.other
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) variable.other.constant
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1) variable.other.property
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) variable.other.readwrite
#FFB2F7 RGB(255, 178, 247) RGBA(255, 178, 247, 1) variable.parameter
#F4F9FF RGB(244, 249, 255) RGBA(244, 249, 255, 1)