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
Dim Fire Night
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#5A4A3A RGB(90, 74, 58) RGBA(90, 74, 58, 1) activityBar.background
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) activityBar.foreground
#C1C1C1 RGB(193, 193, 193) RGBA(193, 193, 193, 1) activityBar.inactiveForeground
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) activityBarBadge.background
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) activityBarBadge.foreground
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) button.background
#5A4A3A RGB(90, 74, 58) RGBA(90, 74, 58, 1) editor.background
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) editor.foreground
#C1C1C1 RGB(193, 193, 193) RGBA(193, 193, 193, 1) editor.lineHighlightBackground
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) editor.selectionBackground
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) editor.symbolHighlightBackground
#414141D0 RGB(65, 65, 65) RGBA(65, 65, 65, 0.816) editor.wordHighlightBackground
#414141D0 RGB(65, 65, 65) RGBA(65, 65, 65, 0.816) editorGutter.addedBackground
#BFD088 RGB(191, 208, 136) RGBA(191, 208, 136, 1) editorGutter.deletedBackground
#DB7857 RGB(219, 120, 87) RGBA(219, 120, 87, 1) editorGutter.modifiedBackground
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) editorInlayHint.background
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) editorInlayHint.foreground
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) focusBorder
#5A4A3A RGB(90, 74, 58) RGBA(90, 74, 58, 1) list.activeSelectionBackground
#414141 RGB(65, 65, 65) RGBA(65, 65, 65, 1) list.activeSelectionForeground
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) list.inactiveSelectionBackground
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) list.inactiveSelectionForeground
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) menu.background
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) scrollbarSlider.background
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) selection.background
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) sideBar.background
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) sideBar.foreground
#C1C1C1 RGB(193, 193, 193) RGBA(193, 193, 193, 1) sideBarTitle.foreground
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) statusBar.background
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) statusBar.foreground
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) terminal.ansiBlack
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) terminal.ansiBlue
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) terminal.ansiBrightBlack
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) terminal.ansiBrightBlue
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) terminal.ansiBrightCyan
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) terminal.ansiBrightGreen
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) terminal.ansiBrightMagenta
#DB7857 RGB(219, 120, 87) RGBA(219, 120, 87, 1) terminal.ansiBrightRed
#BFD088 RGB(191, 208, 136) RGBA(191, 208, 136, 1) terminal.ansiBrightWhite
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) terminal.ansiBrightYellow
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) terminal.ansiCyan
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) terminal.ansiGreen
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) terminal.ansiMagenta
#DB7857 RGB(219, 120, 87) RGBA(219, 120, 87, 1) terminal.ansiRed
#BFD088 RGB(191, 208, 136) RGBA(191, 208, 136, 1) terminal.ansiWhite
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) terminal.ansiYellow
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) terminal.foreground
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) titleBar.activeBackground
#171717 RGB(23, 23, 23) RGBA(23, 23, 23, 1) titleBar.activeForeground
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 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
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) comment.block
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) comment.block.documentation
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) comment.line
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) constant
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) constant.character
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.character.escape
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.numeric
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.numeric.integer
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.numeric.float
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.numeric.hex
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.numeric.octal
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) constant.other
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) constant.other.placeholder
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) entity
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.class
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.function
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) entity.name.method
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.namespace
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.section
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.selector
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.tag
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) entity.name.type
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.type.enum
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.type.interface
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.type.struct
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.other
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) entity.other.attribute-name
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) entity.other.inherited-class
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) keyword
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) keyword.control
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) keyword.control.flow
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) keyword.operator
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) keyword.operator.new
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) keyword.operator.assignment
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) keyword.operator.arithmetic
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) keyword.operator.logical
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) keyword.other
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) markup
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) markup.bold
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) markup.changed
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) markup.deleted
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) markup.heading
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) markup.inline.raw
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) markup.inserted
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) markup.italic
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) markup.underline
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) markup.underline.link
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) meta
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) meta.function-call
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) meta.tag
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) punctuation.definition.bracket
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) punctuation.definition.comment
#717171 RGB(113, 113, 113) RGBA(113, 113, 113, 1) punctuation.definition.string.begin
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) punctuation.definition.string.end
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) punctuation.separator
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) punctuation.separator.continuation
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) punctuation.terminator
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) storage
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) storage.modifier
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) storage.type
#C97B7B RGB(201, 123, 123) RGBA(201, 123, 123, 1) string
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.interpolated
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.other
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.double
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.other
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.single
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.triple
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.regexp
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) string.template
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.unquoted
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) support
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) support.class
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) support.constant
#C5A789 RGB(197, 167, 137) RGBA(197, 167, 137, 1) support.function
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) support.other
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) support.type
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) support.type.primitive
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) support.type.property-name
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.function
#C9BD91 RGB(201, 189, 145) RGBA(201, 189, 145, 1) variable.language
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.name
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.other
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.other.constant
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.other.property
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.other.readwrite
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) variable.parameter
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1)