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
Dark GreenTea
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA actionBar.toggledBackground
#383A49 RGB(56, 58, 73) RGBA(56, 58, 73, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) checkbox.border
#6B6B6B RGB(107, 107, 107) RGBA(107, 107, 107, 1) editor.background
#1D1D21 RGB(29, 29, 33) RGBA(29, 29, 33, 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.lineHighlightBorder
#2E2E2E RGB(46, 46, 46) RGBA(46, 46, 46, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorBracketHighlight.foreground1
#B3BFCC RGB(179, 191, 204) RGBA(179, 191, 204, 1) editorBracketHighlight.foreground2
#D19E9E RGB(209, 158, 158) RGBA(209, 158, 158, 1) editorBracketHighlight.foreground3
#B3BFCC RGB(179, 191, 204) RGBA(179, 191, 204, 1) editorBracketHighlight.foreground4
#D19E9E RGB(209, 158, 158) RGBA(209, 158, 158, 1) editorBracketHighlight.foreground5
#B3BFCC RGB(179, 191, 204) RGBA(179, 191, 204, 1) editorBracketHighlight.foreground6
#D19E9E RGB(209, 158, 158) RGBA(209, 158, 158, 1) editorBracketHighlight.unexpectedBracket.foreground
#DB6165 RGB(219, 97, 101) RGBA(219, 97, 101, 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) 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
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) menu.border
#454545 RGB(69, 69, 69) RGBA(69, 69, 69, 1) menu.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) menu.separatorBackground
#454545 RGB(69, 69, 69) RGBA(69, 69, 69, 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) terminal.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) widget.border
#303031 RGB(48, 48, 49) RGBA(48, 48, 49, 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
#6A9955 RGB(106, 153, 85) RGBA(106, 153, 85, 1) comment.block
#6A9955 RGB(106, 153, 85) RGBA(106, 153, 85, 1) comment.block.documentation
#6A9955 RGB(106, 153, 85) RGBA(106, 153, 85, 1) comment.line
#6A9955 RGB(106, 153, 85) RGBA(106, 153, 85, 1) constant
#70ABDB RGB(112, 171, 219) RGBA(112, 171, 219, 1) constant.numeric
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.integer
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.float
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.hex
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.numeric.octal
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#81D2FD RGB(129, 210, 253) RGBA(129, 210, 253, 1) entity.name
#81D2FD RGB(129, 210, 253) RGBA(129, 210, 253, 1) entity.name.function
#81D2FD RGB(129, 210, 253) RGBA(129, 210, 253, 1) entity.name.tag
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) entity.other
#81D2FD RGB(129, 210, 253) RGBA(129, 210, 253, 1) entity.other.attribute-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 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
#70ABDB RGB(112, 171, 219) RGBA(112, 171, 219, 1) keyword.control.flow
#70ABDB RGB(112, 171, 219) RGBA(112, 171, 219, 1) keyword.operator
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.operator.new
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.operator.assignment
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.operator.arithmetic
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.operator.logical
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) keyword.other
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 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
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) meta.preprocessor
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) punctuation.definition.comment
#67737E RGB(103, 115, 126) RGBA(103, 115, 126, 1) storage
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.modifier
#70ABDB RGB(112, 171, 219) RGBA(112, 171, 219, 1) storage.type
#70ABDB RGB(112, 171, 219) RGBA(112, 171, 219, 1) string
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.interpolated
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.quoted
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.quoted.double
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.quoted.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.quoted.single
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.quoted.triple
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) string.unquoted
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.function
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.type
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.type.property-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.function
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.language
#70ABDB RGB(112, 171, 219) RGBA(112, 171, 219, 1) variable.name
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.other
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.other.constant
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.other.property
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.other.readwrite
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1) variable.parameter
#66B2B2 RGB(102, 178, 178) RGBA(102, 178, 178, 1)