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
REPAY Theme 2.0
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#01141E RGB(1, 20, 30) RGBA(1, 20, 30, 1) activityBarBadge.background
#81BD41 RGB(129, 189, 65) RGBA(129, 189, 65, 1) badge.background
#81BD41 RGB(129, 189, 65) RGBA(129, 189, 65, 1) button.background
#81BD41 RGB(129, 189, 65) RGBA(129, 189, 65, 1) button.hoverBackground
#B8D875 RGB(184, 216, 117) RGBA(184, 216, 117, 1) debugToolBar.background
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) editor.background
#012638 RGB(1, 38, 56) RGBA(1, 38, 56, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.lineHighlightBackground
#364B5D50 RGB(54, 75, 93) RGBA(54, 75, 93, 0.314) editor.lineHighlightBorder
#364B5D20 RGB(54, 75, 93) RGBA(54, 75, 93, 0.125) editor.selectionBackground
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) editorCursor.foreground
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) editorGroupHeader.tabsBackground
#01141E RGB(1, 20, 30) RGBA(1, 20, 30, 1) editorWidget.background
#012638 RGB(1, 38, 56) RGBA(1, 38, 56, 1) input.background
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) list.activeSelectionBackground
#81BD41 RGB(129, 189, 65) RGBA(129, 189, 65, 1) list.activeSelectionForeground
#012638 RGB(1, 38, 56) RGBA(1, 38, 56, 1) list.hoverBackground
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) list.inactiveFocusBackground
#01141E RGB(1, 20, 30) RGBA(1, 20, 30, 1) list.inactiveSelectionBackground
#B8D875 RGB(184, 216, 117) RGBA(184, 216, 117, 1) list.inactiveSelectionForeground
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) notification.background
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) notification.buttonBackground
#81BD41 RGB(129, 189, 65) RGBA(129, 189, 65, 1) notification.buttonHoverBackground
#B8D875 RGB(184, 216, 117) RGBA(184, 216, 117, 1) peekViewResult.background
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) peekViewTitle.background
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) sideBar.background
#012638 RGB(1, 38, 56) RGBA(1, 38, 56, 1) sideBarSectionHeader.background
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) sideBarTitle.foreground
#B3BEC3 RGB(179, 190, 195) RGBA(179, 190, 195, 1) statusBar.background
#B8D875 RGB(184, 216, 117) RGBA(184, 216, 117, 1) statusBar.foreground
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) tab.inactiveBackground
#364B5D RGB(54, 75, 93) RGBA(54, 75, 93, 1) titleBar.activeBackground
#012638 RGB(1, 38, 56) RGBA(1, 38, 56, 1) titleBar.inactiveBackground
#01141E RGB(1, 20, 30) RGBA(1, 20, 30, 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
#CDD3DE50 RGB(205, 211, 222) RGBA(205, 211, 222, 0.314) comment.block
#CDD3DE50 RGB(205, 211, 222) RGBA(205, 211, 222, 0.314) comment.block.documentation
#CDD3DE50 RGB(205, 211, 222) RGBA(205, 211, 222, 0.314) comment.line
#CDD3DE50 RGB(205, 211, 222) RGBA(205, 211, 222, 0.314) constant
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.character
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.character.escape
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.integer
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.float
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.hex
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.numeric.octal
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.other
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.other.placeholder
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.regexp
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) constant.rgb-value
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) entity
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.name
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.name.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) entity.name.section
#78CCF0 RGB(120, 204, 240) RGBA(120, 204, 240, 1) entity.name.tag
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.name.type
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control.flow
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.new
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.assignment
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.arithmetic
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.operator.logical
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) keyword.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.bold
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.inserted
#F1E655 RGB(241, 230, 85) RGBA(241, 230, 85, 1) markup.italic
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.list
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.list.numbered
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.list.unnumbered
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.quote
#F77669 RGB(247, 118, 105) RGBA(247, 118, 105, 1) markup.raw
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) meta
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) meta.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function-call
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) meta.selector
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) meta.tag
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) punctuation.definition.comment
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) punctuation.definition.string.begin
#D9F5DD RGB(217, 245, 221) RGBA(217, 245, 221, 1) punctuation.definition.string.end
#D9F5DD RGB(217, 245, 221) RGBA(217, 245, 221, 1) punctuation.separator
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) storage
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.modifier
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) string
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.interpolated
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.double
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.single
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.triple
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.regexp
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) string.template
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.unquoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support
#FFEB95 RGB(255, 235, 149) RGBA(255, 235, 149, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#FFEB95 RGB(255, 235, 149) RGBA(255, 235, 149, 1) support.function
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) support.type
#FFEB95 RGB(255, 235, 149) RGBA(255, 235, 149, 1) support.type.primitive
#FFEB95 RGB(255, 235, 149) RGBA(255, 235, 149, 1) support.type.property-name
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) variable
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other.constant
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other.property
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.other.readwrite
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.parameter
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1)