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
Broken Moon
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) activityBarBadge.background
#1900FF RGB(25, 0, 255) RGBA(25, 0, 255, 1) editor.background
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorBracketHighlight.foreground1
#FFCC66 RGB(255, 204, 102) RGBA(255, 204, 102, 1) editorBracketHighlight.foreground2
#B85B54 RGB(184, 91, 84) RGBA(184, 91, 84, 1) editorBracketHighlight.foreground3
#A7A6A6 RGB(167, 166, 166) RGBA(167, 166, 166, 1) editorGroupHeader.tabsBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) panel.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) panelTitle.activeBorder
#1900FF RGB(25, 0, 255) RGBA(25, 0, 255, 1) sideBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBar.border
#525252 RGB(82, 82, 82) RGBA(82, 82, 82, 1) sideBarSectionHeader.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBarSectionHeader.border
#525252 RGB(82, 82, 82) RGBA(82, 82, 82, 1) sideBarTitle.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) statusBar.border
#525252 RGB(82, 82, 82) RGBA(82, 82, 82, 1) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.inactiveBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) terminal.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) terminal.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) titleBar.activeBackground
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 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
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) comment.block
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) comment.block.documentation
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) comment.line
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) constant
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) constant.character
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) constant.character.escape
#AF925E RGB(175, 146, 94) RGBA(175, 146, 94, 1) constant.numeric
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) constant.numeric.integer
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) constant.numeric.float
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) constant.numeric.hex
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) constant.numeric.octal
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) constant.other
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) constant.other.placeholder
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) constant.regexp
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) constant.rgb-value
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) entity
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) entity.name
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) entity.name.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.section
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) entity.name.tag
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) entity.name.type
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) entity.name.type.enum
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) entity.name.type.interface
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) entity.name.type.struct
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) entity.other
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) entity.other.attribute-name
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) entity.other.inherited-class
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) invalid
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) invalid.illegal
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) keyword
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) keyword.control
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) keyword.control.flow
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) keyword.operator
#AF925E RGB(175, 146, 94) RGBA(175, 146, 94, 1) keyword.operator.new
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) keyword.operator.assignment
#AF925E RGB(175, 146, 94) RGBA(175, 146, 94, 1) keyword.operator.arithmetic
#AF925E RGB(175, 146, 94) RGBA(175, 146, 94, 1) keyword.operator.logical
#AF925E RGB(175, 146, 94) RGBA(175, 146, 94, 1) keyword.other
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) markup
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) markup.bold
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) markup.changed
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) markup.deleted
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) markup.inline.raw
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) markup.inserted
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) markup.italic
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) markup.quote
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) markup.raw
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) markup.underline
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) markup.underline.link
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) meta
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) meta.function-call
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.selector
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.type.annotation
#4A7BAA RGB(74, 123, 170) RGBA(74, 123, 170, 1) meta.type
#4A7BAA RGB(74, 123, 170) RGBA(74, 123, 170, 1) punctuation.definition.comment
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) punctuation.definition.string.begin
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) punctuation.definition.string.end
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) punctuation.separator
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) punctuation.separator.continuation
#787D88 RGB(120, 125, 136) RGBA(120, 125, 136, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) storage.modifier
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) storage.type
#F7E392 RGB(247, 227, 146) RGBA(247, 227, 146, 1) string
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.interpolated
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.other
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.quoted
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.quoted.double
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.quoted.other
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.quoted.single
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.quoted.triple
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.regexp
#E67E22 RGB(230, 126, 34) RGBA(230, 126, 34, 1) string.template
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) string.unquoted
#8CB8F1 RGB(140, 184, 241) RGBA(140, 184, 241, 1) support
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.class
#6AB0F3 RGB(106, 176, 243) RGBA(106, 176, 243, 1) support.constant
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) support.function
#1ABC9C RGB(26, 188, 156) RGBA(26, 188, 156, 1) support.type
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.type.primitive
#4A7BAA RGB(74, 123, 170) RGBA(74, 123, 170, 1) support.type.property-name
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.variable
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) variable
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.function
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.language
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.name
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.other
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.other.constant
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.other.property
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.other.readwrite
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1) variable.parameter
#F8A56E RGB(248, 165, 110) RGBA(248, 165, 110, 1)