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
plague theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) activityBar.border
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) activityBar.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBarBadge.background
#0D0D0D RGB(13, 13, 13) RGBA(13, 13, 13, 1) activityBarBadge.foreground
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) button.background
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) button.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) button.hoverBackground
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) editor.background
#0D0D0D RGB(13, 13, 13) RGBA(13, 13, 13, 1) editor.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editor.selectionBackground
#4B4E56 RGB(75, 78, 86) RGBA(75, 78, 86, 1) sideBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBarSectionHeader.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarTitle.foreground
#A0A0A0 RGB(160, 160, 160) RGBA(160, 160, 160, 1) statusBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.border
#0D1D0D RGB(13, 29, 13) RGBA(13, 29, 13, 1) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#989E6A RGB(152, 158, 106) RGBA(152, 158, 106, 1) comment.block
#989E6A RGB(152, 158, 106) RGBA(152, 158, 106, 1) comment.block.documentation
#989E6A RGB(152, 158, 106) RGBA(152, 158, 106, 1) comment.line
#989E6A RGB(152, 158, 106) RGBA(152, 158, 106, 1) constant
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) constant.character
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.character.escape
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.integer
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.float
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.hex
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.octal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.other
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) constant.other.placeholder
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) entity
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) entity.name
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.class
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.function
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) entity.name.method
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.namespace
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.section
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.selector
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.type.enum
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.type.interface
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.name.type.struct
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) entity.other
#D7C4A1 RGB(215, 196, 161) RGBA(215, 196, 161, 1) entity.other.attribute-name
#D7C4A1 RGB(215, 196, 161) RGBA(215, 196, 161, 1) entity.other.inherited-class
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.control
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.control.flow
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.operator
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.operator.new
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.operator.assignment
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.operator.arithmetic
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.operator.logical
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) keyword.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) markup.changed
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) markup.inserted
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) meta
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) meta.function-call
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.bracket
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#989E6A RGB(152, 158, 106) RGBA(152, 158, 106, 1) punctuation.definition.string.begin
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.string.end
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator.continuation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) storage.modifier
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) storage.type
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.interpolated
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.other
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.quoted
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.quoted.double
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.quoted.other
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.quoted.single
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.quoted.triple
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.regexp
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.template
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) string.unquoted
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) support
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) support.class
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) support.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.function
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) support.other
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) support.type
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) support.type.primitive
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) support.type.property-name
#B3B3B3 RGB(179, 179, 179) RGBA(179, 179, 179, 1) variable
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) variable.function
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) variable.language
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) variable.name
#5DD08E RGB(93, 208, 142) RGBA(93, 208, 142, 1) variable.other
#FF9E6A RGB(255, 158, 106) RGBA(255, 158, 106, 1) variable.other.constant
#FF9E6A RGB(255, 158, 106) RGBA(255, 158, 106, 1) variable.other.property
#FF9E6A RGB(255, 158, 106) RGBA(255, 158, 106, 1) variable.other.readwrite
#FF9E6A RGB(255, 158, 106) RGBA(255, 158, 106, 1) variable.parameter
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1)