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
Spinel
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) 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.activeBackground
#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
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) 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
#BEA17F RGB(190, 161, 127) RGBA(190, 161, 127, 1) comment.block
#BEA17F RGB(190, 161, 127) RGBA(190, 161, 127, 1) comment.block.documentation
#BEA17F RGB(190, 161, 127) RGBA(190, 161, 127, 1) comment.line
#BEA17F RGB(190, 161, 127) RGBA(190, 161, 127, 1) 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
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) entity
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) entity.name
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) entity.name.function
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) entity.name.namespace
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) entity.name.tag
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) entity.name.type
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) entity.name.type.enum
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) entity.other
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) entity.other.attribute-name
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) entity.other.inherited-class
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) keyword
#EEE385 RGB(238, 227, 133) RGBA(238, 227, 133, 1) keyword.control
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.control.flow
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.operator
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.operator.new
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.operator.assignment
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.operator.arithmetic
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.operator.logical
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) keyword.other
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) markup
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) markup.bold
#18B5E4 RGB(24, 181, 228) RGBA(24, 181, 228, 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
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 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
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) markup.underline.link
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) meta
#18B5E4 RGB(24, 181, 228) RGBA(24, 181, 228, 1) meta.class
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) meta.function
#D464EB RGB(212, 100, 235) RGBA(212, 100, 235, 1) meta.function-call
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) meta.selector
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) punctuation.definition.bracket
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) punctuation.definition.comment
#BEA17F RGB(190, 161, 127) RGBA(190, 161, 127, 1) punctuation.definition.string.begin
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) punctuation.definition.string.end
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 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
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) storage.type
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) string
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.interpolated
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.other
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.quoted
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.quoted.double
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.quoted.other
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.quoted.single
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.quoted.triple
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.regexp
#A6CC5F RGB(166, 204, 95) RGBA(166, 204, 95, 1) string.template
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) string.unquoted
#5AC16C RGB(90, 193, 108) RGBA(90, 193, 108, 1) support
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) support.class
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) support.constant
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) support.function
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 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
#7DCFCF RGB(125, 207, 207) RGBA(125, 207, 207, 1) support.variable
#D1CCF1 RGB(209, 204, 241) RGBA(209, 204, 241, 1) variable
#18B5E4 RGB(24, 181, 228) RGBA(24, 181, 228, 1) variable.function
#18B5E4 RGB(24, 181, 228) RGBA(24, 181, 228, 1) variable.language
#DD5555 RGB(221, 85, 85) RGBA(221, 85, 85, 1) variable.name
#18B5E4 RGB(24, 181, 228) RGBA(24, 181, 228, 1) variable.other
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) variable.other.constant
#4B82E9 RGB(75, 130, 233) RGBA(75, 130, 233, 1) variable.other.property
#EEE0E0 RGB(238, 224, 224) RGBA(238, 224, 224, 1) variable.other.readwrite
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1) variable.parameter
#FF9A3B RGB(255, 154, 59) RGBA(255, 154, 59, 1)