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
Mojojo Caribbean Green
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#32453E RGB(50, 69, 62) RGBA(50, 69, 62, 1) activityBar.border
#2F3834 RGB(47, 56, 52) RGBA(47, 56, 52, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBarBadge.background
#FFA1CE RGB(255, 161, 206) RGBA(255, 161, 206, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.background
#1D1E1D RGB(29, 30, 29) RGBA(29, 30, 29, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#001F00 RGB(0, 31, 0) RGBA(0, 31, 0, 1) editor.selection
#003322 RGB(0, 51, 34) RGBA(0, 51, 34, 1) editor.selectionBorder
#004633 RGB(0, 70, 51) RGBA(0, 70, 51, 1) editorBracketMatch.background
#003F2D RGB(0, 63, 45) RGBA(0, 63, 45, 1) editorBracketMatch.border
#004B38 RGB(0, 75, 56) RGBA(0, 75, 56, 1) editorGroupHeader.tabsBackground
#1D1E1D RGB(29, 30, 29) RGBA(29, 30, 29, 1) editorIndentGuide.background
#101110 RGB(16, 17, 16) RGBA(16, 17, 16, 1) foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBar.background
#1D1E1D RGB(29, 30, 29) RGBA(29, 30, 29, 1) sideBar.border
#2F3834 RGB(47, 56, 52) RGBA(47, 56, 52, 1) sideBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarSectionHeader.background
#32453E RGB(50, 69, 62) RGBA(50, 69, 62, 1) sideBarSectionHeader.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#32453E RGB(50, 69, 62) RGBA(50, 69, 62, 1) statusBar.border
#2F3834 RGB(47, 56, 52) RGBA(47, 56, 52, 1) tab.activeBackground
#1D1E1D RGB(29, 30, 29) RGBA(29, 30, 29, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.border
#2F3834 RGB(47, 56, 52) RGBA(47, 56, 52, 1) tab.inactiveBackground
#1D1E1D RGB(29, 30, 29) RGBA(29, 30, 29, 1) tab.inactiveForeground
#5E5E5E RGB(94, 94, 94) RGBA(94, 94, 94, 1) widget.shadow
#101110 RGB(16, 17, 16) RGBA(16, 17, 16, 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
#526861 RGB(82, 104, 97) RGBA(82, 104, 97, 1) comment.block
#526861 RGB(82, 104, 97) RGBA(82, 104, 97, 1) comment.block.documentation
#526861 RGB(82, 104, 97) RGBA(82, 104, 97, 1) comment.line
#526861 RGB(82, 104, 97) RGBA(82, 104, 97, 1) constant
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.character
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.character.escape
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.numeric
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.numeric.integer
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.numeric.float
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.numeric.hex
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.numeric.octal
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.other
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.other.placeholder
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.regexp
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) constant.rgb-value
#D7CBFF RGB(215, 203, 255) RGBA(215, 203, 255, 1) entity
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) entity.name
#46D4FF RGB(70, 212, 255) RGBA(70, 212, 255, 1) entity.name.function
#46D4FF RGB(70, 212, 255) RGBA(70, 212, 255, 1) entity.name.tag
#FFA1CE RGB(255, 161, 206) RGBA(255, 161, 206, 1) entity.name.type
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) entity.name.type.enum
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) entity.name.type.interface
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) entity.name.type.struct
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) entity.other
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) entity.other.attribute-name
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) entity.other.inherited-class
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) keyword
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.control
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.control.flow
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.operator
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.operator.new
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.operator.assignment
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) keyword.operator.arithmetic
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.operator.logical
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) keyword.other
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) markup
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) markup.bold
#48FFE1 RGB(72, 255, 225) RGBA(72, 255, 225, 1) markup.heading
#00E2C5 RGB(0, 226, 197) RGBA(0, 226, 197, 1) markup.inline.raw
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) markup.italic
#48FFE1 RGB(72, 255, 225) RGBA(72, 255, 225, 1) markup.quote
#F6E46D RGB(246, 228, 109) RGBA(246, 228, 109, 1) meta
#56EEFF RGB(86, 238, 255) RGBA(86, 238, 255, 1) meta.type.annotation
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) meta.type
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) punctuation.definition.bracket
#FFAFDC RGB(255, 175, 220) RGBA(255, 175, 220, 1) punctuation.definition.comment
#526861 RGB(82, 104, 97) RGBA(82, 104, 97, 1) punctuation.definition.string.begin
#56EEFF RGB(86, 238, 255) RGBA(86, 238, 255, 1) punctuation.definition.string.end
#56EEFF RGB(86, 238, 255) RGBA(86, 238, 255, 1) punctuation.separator
#FFA1CE RGB(255, 161, 206) RGBA(255, 161, 206, 1) punctuation.separator.continuation
#FFA1CE RGB(255, 161, 206) RGBA(255, 161, 206, 1) punctuation.terminator
#FFA1CE RGB(255, 161, 206) RGBA(255, 161, 206, 1) storage
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) storage.modifier
#00E2C5 RGB(0, 226, 197) RGBA(0, 226, 197, 1) storage.type
#00E2C5 RGB(0, 226, 197) RGBA(0, 226, 197, 1) string
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.interpolated
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.other
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.quoted
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.quoted.double
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.quoted.other
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.quoted.single
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.quoted.triple
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.regexp
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.template
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) string.unquoted
#42E0F2 RGB(66, 224, 242) RGBA(66, 224, 242, 1) support
#46D4FF RGB(70, 212, 255) RGBA(70, 212, 255, 1) support.class
#FFDBFF RGB(255, 219, 255) RGBA(255, 219, 255, 1) support.function
#46D4FF RGB(70, 212, 255) RGBA(70, 212, 255, 1) support.type
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) support.type.primitive
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) support.type.property-name
#D8C852 RGB(216, 200, 82) RGBA(216, 200, 82, 1) variable
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.function
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.language
#FF96B0 RGB(255, 150, 176) RGBA(255, 150, 176, 1) variable.name
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.other
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.other.constant
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.other.property
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.other.readwrite
#C9BB45 RGB(201, 187, 69) RGBA(201, 187, 69, 1) variable.parameter
#30F1D2 RGB(48, 241, 210) RGBA(48, 241, 210, 1)