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 Sky Blue
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#364652 RGB(54, 70, 82) RGBA(54, 70, 82, 1) activityBar.border
#343A40 RGB(52, 58, 64) RGBA(52, 58, 64, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBarBadge.background
#FFB091 RGB(255, 176, 145) RGBA(255, 176, 145, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.background
#1E1E20 RGB(30, 30, 32) RGBA(30, 30, 32, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#001930 RGB(0, 25, 48) RGBA(0, 25, 48, 1) editor.selection
#003150 RGB(0, 49, 80) RGBA(0, 49, 80, 1) editor.selectionBorder
#004464 RGB(0, 68, 100) RGBA(0, 68, 100, 1) editorBracketMatch.background
#003D5C RGB(0, 61, 92) RGBA(0, 61, 92, 1) editorBracketMatch.border
#004969 RGB(0, 73, 105) RGBA(0, 73, 105, 1) editorGroupHeader.tabsBackground
#1E1E20 RGB(30, 30, 32) RGBA(30, 30, 32, 1) editorIndentGuide.background
#101112 RGB(16, 17, 18) RGBA(16, 17, 18, 1) foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBar.background
#1E1E20 RGB(30, 30, 32) RGBA(30, 30, 32, 1) sideBar.border
#343A40 RGB(52, 58, 64) RGBA(52, 58, 64, 1) sideBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarSectionHeader.background
#364652 RGB(54, 70, 82) RGBA(54, 70, 82, 1) sideBarSectionHeader.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#364652 RGB(54, 70, 82) RGBA(54, 70, 82, 1) statusBar.border
#343A40 RGB(52, 58, 64) RGBA(52, 58, 64, 1) tab.activeBackground
#1E1E20 RGB(30, 30, 32) RGBA(30, 30, 32, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.border
#343A40 RGB(52, 58, 64) RGBA(52, 58, 64, 1) tab.inactiveBackground
#1E1E20 RGB(30, 30, 32) RGBA(30, 30, 32, 1) tab.inactiveForeground
#5E5E5E RGB(94, 94, 94) RGBA(94, 94, 94, 1) widget.shadow
#101112 RGB(16, 17, 18) RGBA(16, 17, 18, 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
#546873 RGB(84, 104, 115) RGBA(84, 104, 115, 1) comment.block
#546873 RGB(84, 104, 115) RGBA(84, 104, 115, 1) comment.block.documentation
#546873 RGB(84, 104, 115) RGBA(84, 104, 115, 1) comment.line
#546873 RGB(84, 104, 115) RGBA(84, 104, 115, 1) constant
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.character
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.character.escape
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.numeric
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.numeric.integer
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.numeric.float
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.numeric.hex
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.numeric.octal
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.other
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.other.placeholder
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.regexp
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) constant.rgb-value
#FFB8EE RGB(255, 184, 238) RGBA(255, 184, 238, 1) entity
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) entity.name
#D3BBFF RGB(211, 187, 255) RGBA(211, 187, 255, 1) entity.name.function
#D3BBFF RGB(211, 187, 255) RGBA(211, 187, 255, 1) entity.name.tag
#FFB091 RGB(255, 176, 145) RGBA(255, 176, 145, 1) entity.name.type
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) entity.name.type.enum
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) entity.name.type.interface
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) entity.name.type.struct
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) entity.other
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) entity.other.attribute-name
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) entity.other.inherited-class
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) keyword
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.control
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.control.flow
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.operator
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.operator.new
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.operator.assignment
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) keyword.operator.arithmetic
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.operator.logical
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) keyword.other
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) markup
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) markup.bold
#4DF7FF RGB(77, 247, 255) RGBA(77, 247, 255, 1) markup.heading
#00DBFF RGB(0, 219, 255) RGBA(0, 219, 255, 1) markup.inline.raw
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) markup.italic
#4DF7FF RGB(77, 247, 255) RGBA(77, 247, 255, 1) markup.quote
#93F99C RGB(147, 249, 156) RGBA(147, 249, 156, 1) meta
#63E2FF RGB(99, 226, 255) RGBA(99, 226, 255, 1) meta.type.annotation
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) meta.type
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) punctuation.definition.bracket
#FFBE9F RGB(255, 190, 159) RGBA(255, 190, 159, 1) punctuation.definition.comment
#546873 RGB(84, 104, 115) RGBA(84, 104, 115, 1) punctuation.definition.string.begin
#63E2FF RGB(99, 226, 255) RGBA(99, 226, 255, 1) punctuation.definition.string.end
#63E2FF RGB(99, 226, 255) RGBA(99, 226, 255, 1) punctuation.separator
#FFB091 RGB(255, 176, 145) RGBA(255, 176, 145, 1) punctuation.separator.continuation
#FFB091 RGB(255, 176, 145) RGBA(255, 176, 145, 1) punctuation.terminator
#FFB091 RGB(255, 176, 145) RGBA(255, 176, 145, 1) storage
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) storage.modifier
#00DBFF RGB(0, 219, 255) RGBA(0, 219, 255, 1) storage.type
#00DBFF RGB(0, 219, 255) RGBA(0, 219, 255, 1) string
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.interpolated
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.other
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.quoted
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.quoted.double
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.quoted.other
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.quoted.single
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.quoted.triple
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.regexp
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.template
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) string.unquoted
#51D3FF RGB(81, 211, 255) RGBA(81, 211, 255, 1) support
#D3BBFF RGB(211, 187, 255) RGBA(211, 187, 255, 1) support.class
#FFFEA3 RGB(255, 254, 163) RGBA(255, 254, 163, 1) support.function
#D3BBFF RGB(211, 187, 255) RGBA(211, 187, 255, 1) support.type
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) support.type.primitive
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) support.type.property-name
#76DC82 RGB(118, 220, 130) RGBA(118, 220, 130, 1) variable
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.function
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.language
#FFAE67 RGB(255, 174, 103) RGBA(255, 174, 103, 1) variable.name
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.other
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.other.constant
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.other.property
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.other.readwrite
#68CE75 RGB(104, 206, 117) RGBA(104, 206, 117, 1) variable.parameter
#33E9FF RGB(51, 233, 255) RGBA(51, 233, 255, 1)