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
Drkryz Legacy Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#0B0B0B RGB(11, 11, 11) RGBA(11, 11, 11, 1) activityBar.activeBorder
#FFAC83 RGB(255, 172, 131) RGBA(255, 172, 131, 1) activityBar.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBar.inactiveForeground
#F4D58D RGB(244, 213, 141) RGBA(244, 213, 141, 1) activityBarBadge.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) badge.background
#FFA153 RGB(255, 161, 83) RGBA(255, 161, 83, 1) button.background
#FFAE85 RGB(255, 174, 133) RGBA(255, 174, 133, 1) button.foreground
#131313 RGB(19, 19, 19) RGBA(19, 19, 19, 1) editor.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#55555555 RGB(85, 85, 85) RGBA(85, 85, 85, 0.333) editorGroupHeader.tabsBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) gitDecoration.modifiedResourceForeground
#6BFF4DC7 RGB(107, 255, 77) RGBA(107, 255, 77, 0.78) gitDecoration.untrackedResourceForeground
#11DDAA RGB(17, 221, 170) RGBA(17, 221, 170, 1) icon.foreground
#9A9A9A RGB(154, 154, 154) RGBA(154, 154, 154, 1) menu.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) menu.foreground
#F4D58D RGB(244, 213, 141) RGBA(244, 213, 141, 1) menu.selectionBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) menu.selectionForeground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) menubar.selectionBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) sideBar.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) sideBar.dropBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBar.foreground
#CECECE RGB(206, 206, 206) RGBA(206, 206, 206, 1) sideBarSectionHeader.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) sideBarSectionHeader.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarTitle.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) statusBar.debuggingBackground
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) statusBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) tab.activeBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) tab.border
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) tab.inactiveBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) titleBar.activeBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 1) titleBar.inactiveBackground
#070707 RGB(7, 7, 7) RGBA(7, 7, 7, 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
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) comment.block
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) comment.block.documentation
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) comment.line
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) constant
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.character
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.character.escape
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) constant.numeric
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.numeric.integer
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.numeric.float
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.numeric.hex
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.numeric.octal
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.other
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.other.placeholder
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) constant.regexp
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) constant.rgb-value
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) entity
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.class
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.function
#10EC68 RGB(16, 236, 104) RGBA(16, 236, 104, 1) entity.name.section
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.tag
#F95AB5 RGB(249, 90, 181) RGBA(249, 90, 181, 1) entity.name.type
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) entity.name.type.enum
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) entity.name.type.interface
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) entity.name.type.struct
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) entity.other
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.other.attribute-name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.other.inherited-class
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) invalid
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) invalid.deprecated
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) invalid.illegal
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) keyword
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.control
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.control.flow
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.operator
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.operator.new
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.operator.assignment
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.operator.arithmetic
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.operator.logical
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) keyword.other
#FB3F5E RGB(251, 63, 94) RGBA(251, 63, 94, 1) markup
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) markup.bold
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) markup.changed
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) markup.deleted
#FF5555 RGB(255, 85, 85) RGBA(255, 85, 85, 1) markup.heading
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) markup.inline.raw
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) markup.inserted
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) markup.italic
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) markup.quote
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) markup.raw
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) markup.underline
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) markup.underline.link
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) meta
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) meta.function-call
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) meta.preprocessor
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) meta.return-type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) meta.selector
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) punctuation.definition.bracket
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.comment
#5F5076 RGB(95, 80, 118) RGBA(95, 80, 118, 1) punctuation.definition.string.begin
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) punctuation.definition.string.end
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) punctuation.separator
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) punctuation.separator.continuation
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) punctuation.terminator
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) storage
#DE4600 RGB(222, 70, 0) RGBA(222, 70, 0, 1) storage.modifier
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage.type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) string
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.interpolated
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.other
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.quoted
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.quoted.double
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.quoted.other
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.quoted.single
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.quoted.triple
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.regexp
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) string.template
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) string.unquoted
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) support
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.class
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.constant
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) support.function
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.other
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.primitive
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.property-name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.variable
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.function
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.language
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) variable.name
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) variable.other
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) variable.other.constant
#D694F5 RGB(214, 148, 245) RGBA(214, 148, 245, 1) variable.other.property
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) variable.other.readwrite
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) variable.parameter
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1)