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
Kurai
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) activityBar.foreground
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) activityBarBadge.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) breadcrumb.foreground
#BDBDBD RGB(189, 189, 189) RGBA(189, 189, 189, 1) button.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editor.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) editor.foreground
#BDBDBD RGB(189, 189, 189) RGBA(189, 189, 189, 1) editor.selectionBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editorGroupHeader.tabsBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) editorLineNumber.foreground
#6C6C6C RGB(108, 108, 108) RGBA(108, 108, 108, 1) keybindingLabel.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) sideBar.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) sideBar.foreground
#BDBDBD RGB(189, 189, 189) RGBA(189, 189, 189, 1) sideBarSectionHeader.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) sideBarSectionHeader.foreground
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) sideBarTitle.foreground
#BDBDBD RGB(189, 189, 189) RGBA(189, 189, 189, 1) statusBar.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) statusBar.debuggingBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) tab.activeBackground
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) tab.inactiveBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) titleBar.activeBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) titleBar.inactiveBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 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
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) comment.block
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) comment.block.documentation
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) comment.line
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) constant
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.character
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.character.escape
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) constant.numeric
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.numeric.integer
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.numeric.float
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.numeric.hex
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.numeric.octal
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.other
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.other.placeholder
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.regexp
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) constant.rgb-value
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) entity
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) entity.name
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) entity.name.class
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) entity.name.function
#FFB1A9 RGB(255, 177, 169) RGBA(255, 177, 169, 1) entity.name.namespace
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) entity.name.section
#FFB1A9 RGB(255, 177, 169) RGBA(255, 177, 169, 1) entity.name.tag
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) entity.name.type
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) entity.name.type.enum
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) entity.name.type.interface
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) entity.name.type.struct
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) entity.other
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) entity.other.attribute-name
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) entity.other.inherited-class
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) invalid
#BAC8CB RGB(186, 200, 203) RGBA(186, 200, 203, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.control
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.control.flow
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.operator
#BAC8CB RGB(186, 200, 203) RGBA(186, 200, 203, 1) keyword.operator.new
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.operator.assignment
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.operator.arithmetic
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.operator.logical
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) keyword.other
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) markup
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) markup.bold
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) markup.changed
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) markup.deleted
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) markup.heading
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) markup.inline.raw
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) markup.inserted
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) markup.italic
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) markup.quote
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) markup.underline
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) markup.underline.link
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) meta
#BAC8CB RGB(186, 200, 203) RGBA(186, 200, 203, 1) meta.function
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) meta.function-call
#FFB1A9 RGB(255, 177, 169) RGBA(255, 177, 169, 1) meta.selector
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) meta.tag
#BAC8CB RGB(186, 200, 203) RGBA(186, 200, 203, 1) punctuation.definition.bracket
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) punctuation.definition.comment
#5D6976 RGB(93, 105, 118) RGBA(93, 105, 118, 1) punctuation.definition.string.begin
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) punctuation.definition.string.end
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) punctuation.separator
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) punctuation.separator.continuation
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) punctuation.terminator
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) storage
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) storage.modifier
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) storage.type
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) string
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.interpolated
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.other
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.quoted
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.quoted.double
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.quoted.other
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.quoted.single
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.quoted.triple
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.regexp
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) string.template
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) string.unquoted
#61A8A7 RGB(97, 168, 167) RGBA(97, 168, 167, 1) support
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) support.class
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) support.constant
#F6BEAD RGB(246, 190, 173) RGBA(246, 190, 173, 1) support.function
#EB6689 RGB(235, 102, 137) RGBA(235, 102, 137, 1) support.other
#FFB1A9 RGB(255, 177, 169) RGBA(255, 177, 169, 1) support.type
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) support.type.primitive
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) support.type.property-name
#BAC8CB RGB(186, 200, 203) RGBA(186, 200, 203, 1) support.variable
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) variable
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) variable.function
#FFB1A9 RGB(255, 177, 169) RGBA(255, 177, 169, 1) variable.language
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) variable.name
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) variable.other
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) variable.other.constant
#C8CCCD RGB(200, 204, 205) RGBA(200, 204, 205, 1) variable.other.property
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) variable.other.readwrite
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1) variable.parameter
#9E74AE RGB(158, 116, 174) RGBA(158, 116, 174, 1)