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
Jetbrains Dark Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.foreground
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorIndentGuide.activeBackground
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) input.placeholderForeground
#A6A6A6 RGB(166, 166, 166) RGBA(166, 166, 166, 1) list.activeSelectionIconForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) menu.background
#303031 RGB(48, 48, 49) RGBA(48, 48, 49, 1) menu.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) ports.iconRunningProcessForeground
#369432 RGB(54, 148, 50) RGBA(54, 148, 50, 1) sideBarSectionHeader.background
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) sideBarSectionHeader.border
#CCCCCC33 RGB(204, 204, 204) RGBA(204, 204, 204, 0.2) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBarItem.remoteBackground
#16825D RGB(22, 130, 93) RGBA(22, 130, 93, 1) statusBarItem.remoteForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.lastPinnedBorder
#CCCCCC33 RGB(204, 204, 204) RGBA(204, 204, 204, 0.2)
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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#629755 RGB(98, 151, 85) RGBA(98, 151, 85, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) constant.character
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) constant.character.escape
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.integer
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.float
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.hex
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.octal
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.other
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) entity
#26BDA4 RGB(38, 189, 164) RGBA(38, 189, 164, 1) entity.name
#26BDA4 RGB(38, 189, 164) RGBA(38, 189, 164, 1) entity.name.function
#BBB529 RGB(187, 181, 41) RGBA(187, 181, 41, 1) entity.name.tag
#26BDA4 RGB(38, 189, 164) RGBA(38, 189, 164, 1) entity.name.type
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.type.enum
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.name.type.interface
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) entity.other
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) entity.other.attribute-name
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) entity.other.inherited-class
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.control
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.control.flow
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.operator
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) keyword.operator.new
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.operator.assignment
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) keyword.operator.arithmetic
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) keyword.operator.logical
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.other
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) markup
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) markup.heading
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) markup.inline.raw
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) markup.quote
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.underline
#589DF6 RGB(88, 157, 246) RGBA(88, 157, 246, 1) markup.underline.link
#589DF6 RGB(88, 157, 246) RGBA(88, 157, 246, 1) meta
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) meta.block
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) meta.function
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) meta.selector
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) meta.type
#507874 RGB(80, 120, 116) RGBA(80, 120, 116, 1) punctuation.definition.string.begin
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) punctuation.definition.string.end
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) punctuation.separator
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) punctuation.terminator
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) storage
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) storage.modifier
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) storage.type
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) string
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.interpolated
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.other
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.double
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.other
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.single
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.triple
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.regexp
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.template
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.unquoted
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) support
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.class
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.constant
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.function
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) support.other
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.type
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.type.primitive
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) support.type.property-name
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) support.variable
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) variable
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) variable.function
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) variable.language
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) variable.name
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) variable.other
#BABABA RGB(186, 186, 186) RGBA(186, 186, 186, 1) variable.other.constant
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) variable.other.property
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.readwrite
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1) variable.parameter
#A9B7C6 RGB(169, 183, 198) RGBA(169, 183, 198, 1)