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
Pink Pixel Cupcake
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) dropdown.background
#1A2028 RGB(26, 32, 40) RGBA(26, 32, 40, 1) editor.background
#11151B RGB(17, 21, 27) RGBA(17, 21, 27, 1) editor.foreground
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) editor.lineHighlightBackground
#3C3C3C80 RGB(60, 60, 60) RGBA(60, 60, 60, 0.502) editor.selectionBackground
#D98CFF RGB(217, 140, 255) RGBA(217, 140, 255, 1) editorCursor.foreground
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) editorGroupHeader.tabsBackground
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) editorHoverWidget.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) editorIndentGuide.activeBackground1
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background1
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) editorRuler.foreground
#FF8CBC RGB(255, 140, 188) RGBA(255, 140, 188, 1) editorSuggestWidget.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) editorWhitespace.foreground
#FF8CBC RGB(255, 140, 188) RGBA(255, 140, 188, 1) editorWidget.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) input.background
#1A2028 RGB(26, 32, 40) RGBA(26, 32, 40, 1) notifications.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) panel.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) quickInput.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) sideBar.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) sideBarSectionHeader.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) sideBarStickyScroll.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) statusBar.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) statusBar.noFolderBackground
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) tab.activeBackground
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) tab.border
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) tab.inactiveBackground
#161B22 RGB(22, 27, 34) RGBA(22, 27, 34, 1) terminal.ansiBlack
#102210 RGB(16, 34, 16) RGBA(16, 34, 16, 1) terminal.background
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) terminal.foreground
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) terminalCursor.foreground
#4455BB RGB(68, 85, 187) RGBA(68, 85, 187, 1) titleBar.activeBackground
#181D24 RGB(24, 29, 36) RGBA(24, 29, 36, 1) titleBar.inactiveBackground
#161B22 RGB(22, 27, 34) RGBA(22, 27, 34, 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
#BBAA99 RGB(187, 170, 153) RGBA(187, 170, 153, 1) comment.block
#BBAA99 RGB(187, 170, 153) RGBA(187, 170, 153, 1) comment.block.documentation
#BBAA99 RGB(187, 170, 153) RGBA(187, 170, 153, 1) comment.line
#BBAA99 RGB(187, 170, 153) RGBA(187, 170, 153, 1) constant
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) constant.character
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) constant.character.escape
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) constant.numeric
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) constant.numeric.integer
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) constant.numeric.float
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) constant.numeric.hex
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) constant.numeric.octal
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) constant.other
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) constant.other.placeholder
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) constant.regexp
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) entity
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) entity.name
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.class
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) entity.name.function
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) entity.name.method
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.namespace
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.section
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.selector
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.tag
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) entity.name.type
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.type.enum
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.type.interface
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.name.type.struct
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) entity.other
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) entity.other.attribute-name
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) entity.other.inherited-class
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) invalid
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) invalid.deprecated
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) invalid.illegal
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) keyword
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.control
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.control.flow
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.operator
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.operator.new
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.operator.assignment
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.operator.arithmetic
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.operator.logical
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) keyword.other
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) markup
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) markup.bold
#44B9EF RGB(68, 185, 239) RGBA(68, 185, 239, 1) markup.changed
#EEEE22 RGB(238, 238, 34) RGBA(238, 238, 34, 1) markup.deleted
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) markup.inline.raw
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) markup.inserted
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) markup.italic
#44B9EF RGB(68, 185, 239) RGBA(68, 185, 239, 1) markup.list
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) markup.list.unnumbered
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) markup.underline
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) markup.underline.link
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) meta
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) meta.function
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) meta.function-call
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) meta.preprocessor
#33CC99 RGB(51, 204, 153) RGBA(51, 204, 153, 1) meta.return-type
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) meta.selector
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) meta.tag
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) meta.type.annotation
#CC33FF RGB(204, 51, 255) RGBA(204, 51, 255, 1) meta.type
#CC33FF RGB(204, 51, 255) RGBA(204, 51, 255, 1) punctuation.definition.string.begin
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) punctuation.definition.string.end
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) punctuation.separator
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) punctuation.terminator
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) storage
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) storage.modifier
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) storage.type
#FF6F77 RGB(255, 111, 119) RGBA(255, 111, 119, 1) string
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.interpolated
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.other
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.quoted
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.quoted.double
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.quoted.other
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.quoted.single
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.quoted.triple
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.regexp
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) string.template
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) string.unquoted
#CBC3FF RGB(203, 195, 255) RGBA(203, 195, 255, 1) support
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) support.class
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) support.constant
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) support.function
#76EE00 RGB(118, 238, 0) RGBA(118, 238, 0, 1) support.other
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) support.type
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) support.type.primitive
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) support.type.property-name
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) support.variable
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.function
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.language
#FE3496 RGB(254, 52, 150) RGBA(254, 52, 150, 1) variable.name
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.other
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.other.constant
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.other.property
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.other.readwrite
#23ECFB RGB(35, 236, 251) RGBA(35, 236, 251, 1) variable.parameter
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)