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
Extra Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#424242 RGB(66, 66, 66) RGBA(66, 66, 66, 1) activityBar.foreground
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) activityBar.inactiveForeground
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) activityBarBadge.background
#E040FBA0 RGB(224, 64, 251) RGBA(224, 64, 251, 0.627) editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorError.foreground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editorIndentGuide.activeBackground
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) editorUnnecessaryCode.opacity
#00000090 RGB(0, 0, 0) RGBA(0, 0, 0, 0.565) input.placeholderForeground
#A6A6A6 RGB(166, 166, 166) RGBA(166, 166, 166, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) menu.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) menu.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) settings.numberInputBackground
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) settings.textInputBackground
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#9C27B0 RGB(156, 39, 176) RGBA(156, 39, 176, 1) statusBarItem.remoteBackground
#16825D RGB(22, 130, 93) RGBA(22, 130, 93, 1) statusBarItem.remoteForeground
#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
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) comment.block
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) comment.block.documentation
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) comment.line
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) constant
#D7BA7D RGB(215, 186, 125) RGBA(215, 186, 125, 1) constant.character
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) constant.character.escape
#D7BA7D RGB(215, 186, 125) RGBA(215, 186, 125, 1) constant.numeric
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.integer
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.float
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.hex
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.octal
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.other
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) entity.name
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.class
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.function
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) entity.name.method
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) entity.name.namespace
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.section
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.selector
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.tag
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.type
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.type.enum
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.type.interface
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.name.type.struct
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.other
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.other.attribute-name
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) entity.other.inherited-class
#E040FB RGB(224, 64, 251) RGBA(224, 64, 251, 1) invalid
#D50000 RGB(213, 0, 0) RGBA(213, 0, 0, 1) invalid.deprecated
#D50000 RGB(213, 0, 0) RGBA(213, 0, 0, 1) invalid.illegal
#D50000 RGB(213, 0, 0) RGBA(213, 0, 0, 1) keyword
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.control
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.control.flow
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.new
#C586C0 RGB(197, 134, 192) RGBA(197, 134, 192, 1) keyword.operator.assignment
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.arithmetic
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.logical
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.bold
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.changed
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.deleted
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.heading
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.inline.raw
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.inserted
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) meta
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) meta.preprocessor
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) meta.return-type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) meta.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) punctuation.definition.bracket
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.comment
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 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
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.modifier
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.type
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) string
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.interpolated
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.other
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.quoted
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.quoted.double
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.quoted.other
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.quoted.single
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.quoted.triple
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.unquoted
#00C853 RGB(0, 200, 83) RGBA(0, 200, 83, 1) support
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.constant
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.function
#DCDCAA RGB(220, 220, 170) RGBA(220, 220, 170, 1) support.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.type.primitive
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.type.property-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.variable
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.function
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.language
#B0BEC5 RGB(176, 190, 197) RGBA(176, 190, 197, 1) variable.name
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.other
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.other.constant
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.other.property
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.other.readwrite
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1) variable.parameter
#FFCC80 RGB(255, 204, 128) RGBA(255, 204, 128, 1)