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 Fern
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#374234 RGB(55, 66, 52) RGBA(55, 66, 52, 1) activityBar.border
#31362F RGB(49, 54, 47) RGBA(49, 54, 47, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBarBadge.background
#FFA2FF RGB(255, 162, 255) RGBA(255, 162, 255, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.background
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#001D00 RGB(0, 29, 0) RGBA(0, 29, 0, 1) editor.selection
#003300 RGB(0, 51, 0) RGBA(0, 51, 0, 1) editor.selectionBorder
#004500 RGB(0, 69, 0) RGBA(0, 69, 0, 1) editorBracketMatch.background
#003E00 RGB(0, 62, 0) RGBA(0, 62, 0, 1) editorBracketMatch.border
#004A05 RGB(0, 74, 5) RGBA(0, 74, 5, 1) editorGroupHeader.tabsBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 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
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) sideBar.border
#31362F RGB(49, 54, 47) RGBA(49, 54, 47, 1) sideBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarSectionHeader.background
#374234 RGB(55, 66, 52) RGBA(55, 66, 52, 1) sideBarSectionHeader.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#374234 RGB(55, 66, 52) RGBA(55, 66, 52, 1) statusBar.border
#31362F RGB(49, 54, 47) RGBA(49, 54, 47, 1) tab.activeBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.border
#31362F RGB(49, 54, 47) RGBA(49, 54, 47, 1) tab.inactiveBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 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
#566457 RGB(86, 100, 87) RGBA(86, 100, 87, 1) comment.block
#566457 RGB(86, 100, 87) RGBA(86, 100, 87, 1) comment.block.documentation
#566457 RGB(86, 100, 87) RGBA(86, 100, 87, 1) comment.line
#566457 RGB(86, 100, 87) RGBA(86, 100, 87, 1) constant
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.character
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.character.escape
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.numeric
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.numeric.integer
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.numeric.float
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.numeric.hex
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.numeric.octal
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.other
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.other.placeholder
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.regexp
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) constant.rgb-value
#69DAFF RGB(105, 218, 255) RGBA(105, 218, 255, 1) entity
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) entity.name
#00DEFF RGB(0, 222, 255) RGBA(0, 222, 255, 1) entity.name.function
#00DEFF RGB(0, 222, 255) RGBA(0, 222, 255, 1) entity.name.tag
#FFA2FF RGB(255, 162, 255) RGBA(255, 162, 255, 1) entity.name.type
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) entity.name.type.enum
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) entity.name.type.interface
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) entity.name.type.struct
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) entity.other
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) entity.other.attribute-name
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) entity.other.inherited-class
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) keyword
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.control
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.control.flow
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.operator
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.operator.new
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.operator.assignment
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) keyword.operator.arithmetic
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.operator.logical
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) keyword.other
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) markup
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) markup.bold
#81FBA7 RGB(129, 251, 167) RGBA(129, 251, 167, 1) markup.heading
#64DE8C RGB(100, 222, 140) RGBA(100, 222, 140, 1) markup.inline.raw
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) markup.italic
#81FBA7 RGB(129, 251, 167) RGBA(129, 251, 167, 1) markup.quote
#FFD373 RGB(255, 211, 115) RGBA(255, 211, 115, 1) meta
#72ECD4 RGB(114, 236, 212) RGBA(114, 236, 212, 1) meta.type.annotation
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) meta.type
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) punctuation.definition.bracket
#FFB0FF RGB(255, 176, 255) RGBA(255, 176, 255, 1) punctuation.definition.comment
#566457 RGB(86, 100, 87) RGBA(86, 100, 87, 1) punctuation.definition.string.begin
#72ECD4 RGB(114, 236, 212) RGBA(114, 236, 212, 1) punctuation.definition.string.end
#72ECD4 RGB(114, 236, 212) RGBA(114, 236, 212, 1) punctuation.separator
#FFA2FF RGB(255, 162, 255) RGBA(255, 162, 255, 1) punctuation.separator.continuation
#FFA2FF RGB(255, 162, 255) RGBA(255, 162, 255, 1) punctuation.terminator
#FFA2FF RGB(255, 162, 255) RGBA(255, 162, 255, 1) storage
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) storage.modifier
#64DE8C RGB(100, 222, 140) RGBA(100, 222, 140, 1) storage.type
#64DE8C RGB(100, 222, 140) RGBA(100, 222, 140, 1) string
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.interpolated
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.other
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.quoted
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.quoted.double
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.quoted.other
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.quoted.single
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.quoted.triple
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.regexp
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.template
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) string.unquoted
#62DDC6 RGB(98, 221, 198) RGBA(98, 221, 198, 1) support
#00DEFF RGB(0, 222, 255) RGBA(0, 222, 255, 1) support.class
#FFD5FF RGB(255, 213, 255) RGBA(255, 213, 255, 1) support.function
#00DEFF RGB(0, 222, 255) RGBA(0, 222, 255, 1) support.type
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) support.type.primitive
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) support.type.property-name
#FFB759 RGB(255, 183, 89) RGBA(255, 183, 89, 1) variable
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.function
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.language
#FF98DD RGB(255, 152, 221) RGBA(255, 152, 221, 1) variable.name
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.other
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.other.constant
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.other.property
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.other.readwrite
#F0AA4C RGB(240, 170, 76) RGBA(240, 170, 76, 1) variable.parameter
#73EC99 RGB(115, 236, 153) RGBA(115, 236, 153, 1)