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
Pansexual (Dark)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) activityBar.foreground
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) activityBarBadge.background
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) editorLineNumber.foreground
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) gitDecoration.modifiedResourceForeground
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) gitDecoration.untrackedResourceForeground
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) list.errorForeground
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) list.warningForeground
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) sideBarTitle.foreground
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) statusBar.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.foreground
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) statusBar.noFolderBackground
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) statusBar.noFolderForeground
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 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
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) comment.block
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) comment.block.documentation
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) comment.line
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) constant
#DAB904 RGB(218, 185, 4) RGBA(218, 185, 4, 1) constant.character
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) constant.character.escape
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) constant.numeric
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) constant.numeric.integer
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) constant.numeric.float
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) constant.numeric.hex
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) constant.numeric.octal
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) constant.other
#DAB904 RGB(218, 185, 4) RGBA(218, 185, 4, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.class
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.function
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) entity.name.method
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.namespace
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.section
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.selector
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.tag
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) entity.name.type
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.type.enum
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.type.interface
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.name.type.struct
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) entity.other
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) entity.other.attribute-name
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) entity.other.inherited-class
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) invalid
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) invalid.deprecated
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) invalid.illegal
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword.control
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) keyword.control.flow
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) keyword.operator
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword.operator.new
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword.operator.assignment
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword.operator.arithmetic
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword.operator.logical
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) keyword.other
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) markup.changed
#FF98CA RGB(255, 152, 202) RGBA(255, 152, 202, 1) markup.deleted
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) markup.heading
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) markup.inline.raw
#C73D7F RGB(199, 61, 127) RGBA(199, 61, 127, 1) markup.inserted
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) markup.italic
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#DAB904 RGB(218, 185, 4) RGBA(218, 185, 4, 1) markup.underline.link
#DAB904 RGB(218, 185, 4) RGBA(218, 185, 4, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) meta.tag
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.definition.bracket
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.definition.comment
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.definition.string.begin
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.definition.string.end
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.separator
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.separator.continuation
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) punctuation.terminator
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) storage
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) storage.modifier
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) storage.type
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) string
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.interpolated
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.other
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.quoted
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.quoted.double
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.quoted.other
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.quoted.single
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.quoted.triple
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.regexp
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) string.template
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) string.unquoted
#FC66AE RGB(252, 102, 174) RGBA(252, 102, 174, 1) support
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) support.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.constant
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1) support.function
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) support.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) support.type.primitive
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) support.type.property-name
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#FFD800 RGB(255, 216, 0) RGBA(255, 216, 0, 1) variable.language
#FF228C RGB(255, 34, 140) RGBA(255, 34, 140, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) variable.other.constant
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) variable.other.property
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) variable.other.readwrite
#20B2FF RGB(32, 178, 255) RGBA(32, 178, 255, 1) variable.parameter
#F885BD RGB(248, 133, 189) RGBA(248, 133, 189, 1)