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 June
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) activityBar.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) activityBar.border
#303030 RGB(48, 48, 48) RGBA(48, 48, 48, 1) activityBar.foreground
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) activityBarBadge.background
#D52090 RGB(213, 32, 144) RGBA(213, 32, 144, 1) editor.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) editor.foreground
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) editorError.foreground
#D52090 RGB(213, 32, 144) RGBA(213, 32, 144, 1) focusBorder
#D52090 RGB(213, 32, 144) RGBA(213, 32, 144, 1) menu.foreground
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) sideBar.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) sideBar.border
#303030 RGB(48, 48, 48) RGBA(48, 48, 48, 1) sideBar.foreground
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#3C3C3C RGB(60, 60, 60) RGBA(60, 60, 60, 1) statusBar.debuggingBackground
#D52090 RGB(213, 32, 144) RGBA(213, 32, 144, 1) statusBar.foreground
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) tab.activeForeground
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) titleBar.activeBackground
#3C3C3C RGB(60, 60, 60) RGBA(60, 60, 60, 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
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block.documentation
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.line
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) constant.character
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.character.escape
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.numeric
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.numeric.integer
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.numeric.float
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.numeric.hex
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.numeric.octal
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) constant.other
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) entity
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) entity.name
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) entity.name.class
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) entity.name.function
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) entity.name.method
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) entity.name.tag
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) entity.name.type
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) entity.other
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) entity.other.attribute-name
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) entity.other.inherited-class
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) keyword
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) keyword.control
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) keyword.control.flow
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) keyword.operator
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) keyword.operator.new
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) keyword.operator.assignment
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) keyword.operator.arithmetic
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) keyword.operator.logical
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) keyword.other
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) markup
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) markup.changed
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) markup.deleted
#D52090 RGB(213, 32, 144) RGBA(213, 32, 144, 1) markup.heading
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) markup.inserted
#97AF96 RGB(151, 175, 150) RGBA(151, 175, 150, 1) meta
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) meta.function-call
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) meta.tag
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) punctuation.definition.bracket
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) punctuation.definition.comment
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.definition.string.begin
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) punctuation.definition.string.end
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) punctuation.separator
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) punctuation.separator.continuation
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) punctuation.terminator
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) storage
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) storage.modifier
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) storage.type
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) string
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.interpolated
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.other
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.quoted
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.quoted.double
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.quoted.other
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.quoted.single
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.quoted.triple
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.regexp
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) string.template
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) string.unquoted
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) support
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) support.class
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) support.constant
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) support.function
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) support.other
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) support.type
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) support.type.primitive
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) support.type.property-name
#CC9292 RGB(204, 146, 146) RGBA(204, 146, 146, 1) variable
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) variable.function
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1) variable.language
#88A2D3 RGB(136, 162, 211) RGBA(136, 162, 211, 1) variable.name
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) variable.other
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) variable.other.constant
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) variable.other.property
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) variable.other.readwrite
#B8B8B8 RGB(184, 184, 184) RGBA(184, 184, 184, 1) variable.parameter
#AF92CC RGB(175, 146, 204) RGBA(175, 146, 204, 1)