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
TM Day Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 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) statusBar.background
#282828 RGB(40, 40, 40) RGBA(40, 40, 40, 1) statusBar.debuggingBackground
#AB5816 RGB(171, 88, 22) RGBA(171, 88, 22, 1) statusBar.foreground
#E1E1E1 RGB(225, 225, 225) RGBA(225, 225, 225, 1) statusBar.noFolderBackground
#282828 RGB(40, 40, 40) RGBA(40, 40, 40, 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) terminal.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) titleBar.activeBackground
#181818 RGB(24, 24, 24) RGBA(24, 24, 24, 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
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) comment.block
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) comment.block.documentation
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) comment.line
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) constant
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) constant.character
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) constant.character.escape
#D7BA7D RGB(215, 186, 125) RGBA(215, 186, 125, 1) constant.numeric
#34A09C RGB(52, 160, 156) RGBA(52, 160, 156, 1) constant.numeric.integer
#34A09C RGB(52, 160, 156) RGBA(52, 160, 156, 1) constant.numeric.float
#34A09C RGB(52, 160, 156) RGBA(52, 160, 156, 1) constant.numeric.hex
#34A09C RGB(52, 160, 156) RGBA(52, 160, 156, 1) constant.numeric.octal
#34A09C RGB(52, 160, 156) RGBA(52, 160, 156, 1) constant.other
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) constant.other.placeholder
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.class
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.function
#D5A432 RGB(213, 164, 50) RGBA(213, 164, 50, 1) entity.name.namespace
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.tag
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.type
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.type.enum
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.type.interface
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.name.type.struct
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.other
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) entity.other.attribute-name
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) entity.other.inherited-class
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) invalid
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.deprecated
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.illegal
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) keyword
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.control
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) keyword.control.flow
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) keyword.operator
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) keyword.operator.new
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) keyword.operator.assignment
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) keyword.operator.arithmetic
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) keyword.operator.logical
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.other
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) markup
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.bold
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.changed
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.deleted
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.heading
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.inline.raw
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.inserted
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) meta
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) meta.preprocessor
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) meta.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) punctuation.definition.comment
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) punctuation.separator
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) storage
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) storage.modifier
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) storage.type
#AF68C6 RGB(175, 104, 198) RGBA(175, 104, 198, 1) string
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.interpolated
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.other
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.quoted
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.quoted.double
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.quoted.other
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.quoted.single
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.quoted.triple
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) string.unquoted
#908020 RGB(144, 128, 32) RGBA(144, 128, 32, 1) support
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) support.class
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) support.constant
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) support.function
#D5A432 RGB(213, 164, 50) RGBA(213, 164, 50, 1) support.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.type
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) support.type.primitive
#2686DD RGB(38, 134, 221) RGBA(38, 134, 221, 1) support.type.property-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.variable
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.function
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.language
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) variable.name
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.other
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.other.constant
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.other.property
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.other.readwrite
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1) variable.parameter
#6EB86B RGB(110, 184, 107) RGBA(110, 184, 107, 1)