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
LAST
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA breadcrumb.activeSelectionForeground
#D2CDF2 RGB(210, 205, 242) RGBA(210, 205, 242, 1) breadcrumb.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) breadcrumb.foreground
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) button.background
#794583C1 RGB(121, 69, 131) RGBA(121, 69, 131, 0.757) editor.background
#2F2F2F RGB(47, 47, 47) RGBA(47, 47, 47, 1) editor.foreground
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) editor.lineHighlightBackground
#3B3B3B RGB(59, 59, 59) RGBA(59, 59, 59, 1) editor.selectionBackground
#4B4B4B RGB(75, 75, 75) RGBA(75, 75, 75, 1) editorCursor.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) editorCursor.foreground
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) editorIndentGuide.activeBackground1
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) editorLineNumber.activeForeground
#D2CDF2 RGB(210, 205, 242) RGBA(210, 205, 242, 1) notifications.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) notificationToast.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) panel.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) panelTitle.activeBorder
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) sideBar.background
#282828 RGB(40, 40, 40) RGBA(40, 40, 40, 1) sideBar.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) sideBarSectionHeader.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) statusBar.background
#794583C1 RGB(121, 69, 131) RGBA(121, 69, 131, 0.757) statusBar.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) tab.activeBackground
#4B4B4B RGB(75, 75, 75) RGBA(75, 75, 75, 1) tab.activeBorder
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) tab.activeForeground
#D2CDF2 RGB(210, 205, 242) RGBA(210, 205, 242, 1) tab.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) terminal.background
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) terminal.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) titleBar.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 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
#898683B4 RGB(137, 134, 131) RGBA(137, 134, 131, 0.706) comment.block
#898683B4 RGB(137, 134, 131) RGBA(137, 134, 131, 0.706) comment.block.documentation
#898683B4 RGB(137, 134, 131) RGBA(137, 134, 131, 0.706) comment.line
#898683B4 RGB(137, 134, 131) RGBA(137, 134, 131, 0.706) constant
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) constant.numeric
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) constant.numeric.integer
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) constant.numeric.float
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) constant.numeric.hex
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) constant.numeric.octal
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) constant.other
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) entity
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) entity.name
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) entity.name.function
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) entity.name.namespace
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) entity.name.tag
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) entity.name.type
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) entity.name.type.enum
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) entity.other
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) entity.other.attribute-name
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) entity.other.inherited-class
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) keyword
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) keyword.control
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.control.flow
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.operator
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.operator.new
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.operator.assignment
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.operator.arithmetic
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.operator.logical
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) keyword.other
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) markup
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) markup.bold
#C1CED2 RGB(193, 206, 210) RGBA(193, 206, 210, 1) markup.changed
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) markup.deleted
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) markup.heading
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) markup.inline.raw
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) markup.inserted
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) markup.underline
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) markup.underline.link
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) meta
#18B5E4 RGB(24, 181, 228) RGBA(24, 181, 228, 1) meta.class
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) meta.function
#E5DA91 RGB(229, 218, 145) RGBA(229, 218, 145, 1) meta.function-call
#E37CE8E8 RGB(227, 124, 232) RGBA(227, 124, 232, 0.91) meta.selector
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) punctuation.definition.bracket
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) punctuation.definition.comment
#898683B4 RGB(137, 134, 131) RGBA(137, 134, 131, 0.706) punctuation.definition.string.begin
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) punctuation.definition.string.end
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) punctuation.separator
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) punctuation.separator.continuation
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) punctuation.terminator
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) storage
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) storage.modifier
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) storage.type
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) string
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.interpolated
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.other
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.quoted
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.quoted.double
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.quoted.other
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.quoted.single
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.quoted.triple
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.regexp
#A6CC5F RGB(166, 204, 95) RGBA(166, 204, 95, 1) string.template
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) string.unquoted
#05A11F RGB(5, 161, 31) RGBA(5, 161, 31, 1) support
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) support.class
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) support.constant
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) support.function
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) support.type
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) support.type.primitive
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) support.type.property-name
#699CE4 RGB(105, 156, 228) RGBA(105, 156, 228, 1) support.variable
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) variable
#C1CED2 RGB(193, 206, 210) RGBA(193, 206, 210, 1) variable.function
#C1CED2 RGB(193, 206, 210) RGBA(193, 206, 210, 1) variable.language
#F66969 RGB(246, 105, 105) RGBA(246, 105, 105, 1) variable.name
#C1CED2 RGB(193, 206, 210) RGBA(193, 206, 210, 1) variable.other
#C1CED2 RGB(193, 206, 210) RGBA(193, 206, 210, 1) variable.other.constant
#6BE181 RGB(107, 225, 129) RGBA(107, 225, 129, 1) variable.other.property
#FCFCFC RGB(252, 252, 252) RGBA(252, 252, 252, 1) variable.other.readwrite
#C1CED2 RGB(193, 206, 210) RGBA(193, 206, 210, 1) variable.parameter
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1)