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
Synthwave High Contrast Edition
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#37005C RGB(55, 0, 92) RGBA(55, 0, 92, 1) activityBar.background
#37005C RGB(55, 0, 92) RGBA(55, 0, 92, 1) activityBar.foreground
#00FBFF RGB(0, 251, 255) RGBA(0, 251, 255, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) sideBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBar.foreground
#FB00FF RGB(251, 0, 255) RGBA(251, 0, 255, 1) tab.activeBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.activeForeground
#00FBFF RGB(0, 251, 255) RGBA(0, 251, 255, 1) tab.inactiveBackground
#37005C RGB(55, 0, 92) RGBA(55, 0, 92, 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
#DD9EFF RGB(221, 158, 255) RGBA(221, 158, 255, 1) comment.block
#DD9EFF RGB(221, 158, 255) RGBA(221, 158, 255, 1) comment.block.documentation
#DD9EFF RGB(221, 158, 255) RGBA(221, 158, 255, 1) comment.line
#DD9EFF RGB(221, 158, 255) RGBA(221, 158, 255, 1) constant
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) constant.character
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) constant.character.escape
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) constant.numeric
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) constant.numeric.integer
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) constant.numeric.float
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) constant.numeric.hex
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) constant.numeric.octal
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) constant.other
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) constant.other.placeholder
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) entity
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.class
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.function
#E100FF RGB(225, 0, 255) RGBA(225, 0, 255, 1) entity.name.method
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.namespace
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.section
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.selector
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.tag
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) entity.name.type
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.type.enum
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.type.interface
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.name.type.struct
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) entity.other
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) entity.other.attribute-name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) entity.other.inherited-class
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 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
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) keyword.control
#E100FF RGB(225, 0, 255) RGBA(225, 0, 255, 1) keyword.control.flow
#E100FF RGB(225, 0, 255) RGBA(225, 0, 255, 1) keyword.operator
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) keyword.operator.new
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) keyword.operator.assignment
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) keyword.operator.arithmetic
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) keyword.operator.logical
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) keyword.other
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) markup
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) markup.bold
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) markup.changed
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) markup.inline.raw
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) markup.inserted
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) markup.italic
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) markup.raw
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) markup.underline
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) markup.underline.link
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) meta
#DD9EFF RGB(221, 158, 255) RGBA(221, 158, 255, 1) meta.function-call
#E100FF RGB(225, 0, 255) RGBA(225, 0, 255, 1) meta.tag
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) punctuation.definition.bracket
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) punctuation.definition.comment
#DD9EFF RGB(221, 158, 255) RGBA(221, 158, 255, 1) punctuation.definition.string.begin
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) punctuation.definition.string.end
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) punctuation.separator
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) punctuation.separator.continuation
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) punctuation.terminator
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) storage
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) storage.modifier
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) storage.type
#FF8800 RGB(255, 136, 0) RGBA(255, 136, 0, 1) string
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.interpolated
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.other
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.quoted
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.quoted.double
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.quoted.other
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.quoted.single
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.quoted.triple
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.regexp
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) string.template
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) string.unquoted
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) support
#99FF00 RGB(153, 255, 0) RGBA(153, 255, 0, 1) support.class
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) support.constant
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1) support.function
#E100FF RGB(225, 0, 255) RGBA(225, 0, 255, 1) support.other
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) support.type
#4DFF6A RGB(77, 255, 106) RGBA(77, 255, 106, 1) support.type.primitive
#4DFF6A RGB(77, 255, 106) RGBA(77, 255, 106, 1) support.type.property-name
#4DFF6A RGB(77, 255, 106) RGBA(77, 255, 106, 1) variable
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) variable.function
#E100FF RGB(225, 0, 255) RGBA(225, 0, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) variable.other
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) variable.other.constant
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) variable.other.property
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) variable.other.readwrite
#FF75ED RGB(255, 117, 237) RGBA(255, 117, 237, 1) variable.parameter
#0EFF0A RGB(14, 255, 10) RGBA(14, 255, 10, 1)