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
Boxy Ocean Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) activityBar.foreground
#334466 RGB(51, 68, 102) RGBA(51, 68, 102, 1) activityBarBadge.background
#2673C0 RGB(38, 115, 192) RGBA(38, 115, 192, 1) editor.background
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) editor.findMatchBackground
#BB80B375 RGB(187, 128, 179) RGBA(187, 128, 179, 0.459) editor.foreground
#17242B RGB(23, 36, 43) RGBA(23, 36, 43, 1) editor.lineHighlightBackground
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) editor.rangeHighlightBackground
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) editor.selectionBackground
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) editorBracketMatch.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketMatch.border
#99C794 RGB(153, 199, 148) RGBA(153, 199, 148, 1) editorCursor.foreground
#2673C0 RGB(38, 115, 192) RGBA(38, 115, 192, 1) editorIndentGuide.activeBackground
#9D9D9F RGB(157, 157, 159) RGBA(157, 157, 159, 1) editorIndentGuide.background
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) editorLineNumber.activeForeground
#383A42 RGB(56, 58, 66) RGBA(56, 58, 66, 1) editorLineNumber.foreground
#9D9D9F RGB(157, 157, 159) RGBA(157, 157, 159, 1) editorWhitespace.foreground
#9D9D9F RGB(157, 157, 159) RGBA(157, 157, 159, 1) list.activeSelectionBackground
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) list.activeSelectionForeground
#17242B RGB(23, 36, 43) RGBA(23, 36, 43, 1) list.hoverBackground
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) list.inactiveSelectionBackground
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) list.inactiveSelectionForeground
#17242B RGB(23, 36, 43) RGBA(23, 36, 43, 1) sideBar.background
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) statusBar.background
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) statusBar.foreground
#1B2B34 RGB(27, 43, 52) RGBA(27, 43, 52, 1) statusBar.noFolderBackground
#6699CC RGB(102, 153, 204) RGBA(102, 153, 204, 1) tab.inactiveBackground
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) titleBar.activeBackground
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 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
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) comment.block
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) comment.block.documentation
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) comment.line
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) constant
#4DA24475 RGB(77, 162, 68) RGBA(77, 162, 68, 0.459) constant.character
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) constant.character.escape
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) constant.numeric
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) constant.numeric.integer
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) constant.numeric.float
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) constant.numeric.hex
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) constant.numeric.octal
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) constant.other
#4DA24475 RGB(77, 162, 68) RGBA(77, 162, 68, 0.459) constant.other.placeholder
#17242B RGB(23, 36, 43) RGBA(23, 36, 43, 1) entity
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) entity.name
#C20A13 RGB(194, 10, 19) RGBA(194, 10, 19, 1) entity.name.class
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) entity.name.function
#2673C0 RGB(38, 115, 192) RGBA(38, 115, 192, 1) entity.name.method
#C20A13 RGB(194, 10, 19) RGBA(194, 10, 19, 1) entity.name.namespace
#C20A13 RGB(194, 10, 19) RGBA(194, 10, 19, 1) entity.name.section
#C20A13 RGB(194, 10, 19) RGBA(194, 10, 19, 1) entity.name.selector
#C20A13 RGB(194, 10, 19) RGBA(194, 10, 19, 1) entity.name.tag
#C20A13 RGB(194, 10, 19) RGBA(194, 10, 19, 1) entity.name.type
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) entity.name.type.enum
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) entity.name.type.interface
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) entity.name.type.struct
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) entity.other
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) entity.other.attribute-name
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) entity.other.inherited-class
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) invalid
#C91D25 RGB(201, 29, 37) RGBA(201, 29, 37, 1) invalid.deprecated
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) invalid.illegal
#C91D25 RGB(201, 29, 37) RGBA(201, 29, 37, 1) keyword
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) keyword.control
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) keyword.control.flow
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) keyword.operator
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) keyword.operator.new
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) keyword.operator.assignment
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) keyword.operator.arithmetic
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) keyword.operator.logical
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) keyword.other
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) markup
#C91D25 RGB(201, 29, 37) RGBA(201, 29, 37, 1) markup.changed
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) markup.deleted
#C91D25 RGB(201, 29, 37) RGBA(201, 29, 37, 1) markup.heading
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) markup.inline.raw
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) markup.inserted
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) markup.quote
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) markup.raw
#17242BCC RGB(23, 36, 43) RGBA(23, 36, 43, 0.8) markup.underline
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) markup.underline.link
#4DA24475 RGB(77, 162, 68) RGBA(77, 162, 68, 0.459) meta
#4DA24475 RGB(77, 162, 68) RGBA(77, 162, 68, 0.459) meta.function-call
#2673C0 RGB(38, 115, 192) RGBA(38, 115, 192, 1) meta.tag
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) punctuation.definition.bracket
#4DA24475 RGB(77, 162, 68) RGBA(77, 162, 68, 0.459) punctuation.definition.comment
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) punctuation.definition.string.begin
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) punctuation.definition.string.end
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) punctuation.separator
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) punctuation.separator.continuation
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) punctuation.terminator
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) storage
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) storage.modifier
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) storage.type
#B431B4 RGB(180, 49, 180) RGBA(180, 49, 180, 1) string
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.interpolated
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.other
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.quoted
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.quoted.double
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.quoted.other
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.quoted.single
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.quoted.triple
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.regexp
#027979 RGB(2, 121, 121) RGBA(2, 121, 121, 1) string.template
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) string.unquoted
#4DA244 RGB(77, 162, 68) RGBA(77, 162, 68, 1) support
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) support.class
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) support.constant
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1) support.function
#2673C0 RGB(38, 115, 192) RGBA(38, 115, 192, 1) support.other
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) support.type
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) support.type.primitive
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) support.type.property-name
#C98F1D RGB(201, 143, 29) RGBA(201, 143, 29, 1) variable
#17242B RGB(23, 36, 43) RGBA(23, 36, 43, 1) variable.function
#2673C0 RGB(38, 115, 192) RGBA(38, 115, 192, 1) variable.language
#C91D25 RGB(201, 29, 37) RGBA(201, 29, 37, 1) variable.name
#17242B RGB(23, 36, 43) RGBA(23, 36, 43, 1) variable.other
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) variable.other.constant
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) variable.other.property
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) variable.other.readwrite
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) variable.parameter
#CD5818 RGB(205, 88, 24) RGBA(205, 88, 24, 1)