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 Smooth Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#151517 RGB(21, 21, 23) RGBA(21, 21, 23, 1) activityBar.activeBorder
#8387FF RGB(131, 135, 255) RGBA(131, 135, 255, 1) activityBar.background
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) activityBar.foreground
#D0AEFF RGB(208, 174, 255) RGBA(208, 174, 255, 1) activityBar.inactiveForeground
#34343E RGB(52, 52, 62) RGBA(52, 52, 62, 1) activityBarBadge.background
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) badge.background
#FFA153 RGB(255, 161, 83) RGBA(255, 161, 83, 1) button.background
#2C2A2E RGB(44, 42, 46) RGBA(44, 42, 46, 1) button.foreground
#CAC2DC RGB(202, 194, 220) RGBA(202, 194, 220, 1) editor.background
#17151C RGB(23, 21, 28) RGBA(23, 21, 28, 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
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) gitDecoration.modifiedResourceForeground
#9AFF86C7 RGB(154, 255, 134) RGBA(154, 255, 134, 0.78) gitDecoration.untrackedResourceForeground
#86FFE1 RGB(134, 255, 225) RGBA(134, 255, 225, 1) icon.foreground
#9A9A9A RGB(154, 154, 154) RGBA(154, 154, 154, 1) menu.background
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) menu.foreground
#D0AEFF RGB(208, 174, 255) RGBA(208, 174, 255, 1) menu.selectionBackground
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) menu.selectionForeground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) menubar.selectionBackground
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) sideBar.background
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) sideBar.border
#111113 RGB(17, 17, 19) RGBA(17, 17, 19, 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
#111113 RGB(17, 17, 19) RGBA(17, 17, 19, 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
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 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
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) tab.border
#101011 RGB(16, 16, 17) RGBA(16, 16, 17, 1) tab.inactiveBackground
#151517 RGB(21, 21, 23) RGBA(21, 21, 23, 1) titleBar.activeBackground
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 1) titleBar.border
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) titleBar.inactiveBackground
#0E0E10 RGB(14, 14, 16) RGBA(14, 14, 16, 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
#F7E5F3 RGB(247, 229, 243) RGBA(247, 229, 243, 1) entity.name.section
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.tag
#CFA8FF RGB(207, 168, 255) RGBA(207, 168, 255, 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
#ECABDD RGB(236, 171, 221) RGBA(236, 171, 221, 1) entity.other.attribute-name
#ECABDD RGB(236, 171, 221) RGBA(236, 171, 221, 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
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.control
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.control.flow
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.operator
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.operator.new
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.operator.assignment
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.operator.arithmetic
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.operator.logical
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 1) keyword.other
#FF96A7 RGB(255, 150, 167) RGBA(255, 150, 167, 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
#ECABDD RGB(236, 171, 221) RGBA(236, 171, 221, 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
#F6986D RGB(246, 152, 109) RGBA(246, 152, 109, 1) storage.modifier
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) storage.type
#ECABDD RGB(236, 171, 221) RGBA(236, 171, 221, 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)