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
synthy
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#161618 RGB(22, 22, 24) RGBA(22, 22, 24, 1) activityBar.activeBorder
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) activityBar.activeFocusBorder
#D87DE4 RGB(216, 125, 228) RGBA(216, 125, 228, 1) activityBar.background
#0B0B12 RGB(11, 11, 18) RGBA(11, 11, 18, 1) activityBar.foreground
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) badge.background
#1CF3FB RGB(28, 243, 251) RGBA(28, 243, 251, 1) badge.foreground
#161618 RGB(22, 22, 24) RGBA(22, 22, 24, 1) button.background
#C882D3 RGB(200, 130, 211) RGBA(200, 130, 211, 1) button.foreground
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) button.hoverBackground
#BB86FC RGB(187, 134, 252) RGBA(187, 134, 252, 1) editor.background
#161618 RGB(22, 22, 24) RGBA(22, 22, 24, 1) editor.findMatchHighlightBackground
#5B5F60D0 RGB(91, 95, 96) RGBA(91, 95, 96, 0.816) editor.foreground
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) editor.hoverHighlightBackground
#5B5F60D0 RGB(91, 95, 96) RGBA(91, 95, 96, 0.816) editor.selectionBackground
#5B5F60D0 RGB(91, 95, 96) RGBA(91, 95, 96, 0.816) editor.selectionHighlightBackground
#5B5F60D0 RGB(91, 95, 96) RGBA(91, 95, 96, 0.816) editorCursor.foreground
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) editorGroupHeader.tabsBackground
#0B0B12 RGB(11, 11, 18) RGBA(11, 11, 18, 1) editorIndentGuide.activeBackground
#DEC0E9 RGB(222, 192, 233) RGBA(222, 192, 233, 1) editorIndentGuide.background
#5A535D RGB(90, 83, 93) RGBA(90, 83, 93, 1) editorLightBulb.foreground
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) editorLightBulbAutoFix.foreground
#55ED6A RGB(85, 237, 106) RGBA(85, 237, 106, 1) editorLineNumber.activeForeground
#DEC0E9 RGB(222, 192, 233) RGBA(222, 192, 233, 1) editorLineNumber.foreground
#786D7C RGB(120, 109, 124) RGBA(120, 109, 124, 1) editorOverviewRuler.background
#2A3044 RGB(42, 48, 68) RGBA(42, 48, 68, 1) icon.foreground
#1CF3FB RGB(28, 243, 251) RGBA(28, 243, 251, 1) sideBar.background
#121215 RGB(18, 18, 21) RGBA(18, 18, 21, 1) sideBar.foreground
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) sideBarSectionHeader.background
#121215 RGB(18, 18, 21) RGBA(18, 18, 21, 1) sideBarSectionHeader.foreground
#49B8FD RGB(73, 184, 253) RGBA(73, 184, 253, 1) sideBarTitle.foreground
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) tab.activeBackground
#191D2C RGB(25, 29, 44) RGBA(25, 29, 44, 1) tab.inactiveBackground
#101115 RGB(16, 17, 21) RGBA(16, 17, 21, 1) terminal.ansiBlack
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) terminal.ansiBlue
#729FCF RGB(114, 159, 207) RGBA(114, 159, 207, 1) terminal.ansiBrightBlack
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) terminal.ansiBrightBlue
#49B8FD RGB(73, 184, 253) RGBA(73, 184, 253, 1) terminal.ansiBrightCyan
#1CF3FB RGB(28, 243, 251) RGBA(28, 243, 251, 1) terminal.ansiBrightGreen
#55ED6A RGB(85, 237, 106) RGBA(85, 237, 106, 1) terminal.ansiBrightMagenta
#D87DE4 RGB(216, 125, 228) RGBA(216, 125, 228, 1) terminal.ansiBrightRed
#FF4646 RGB(255, 70, 70) RGBA(255, 70, 70, 1) terminal.ansiBrightWhite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) terminal.ansiBrightYellow
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) terminal.ansiCyan
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) terminal.ansiGreen
#89DF95 RGB(137, 223, 149) RGBA(137, 223, 149, 1) terminal.ansiMagenta
#94699B RGB(148, 105, 155) RGBA(148, 105, 155, 1) terminal.ansiRed
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) terminal.ansiWhite
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) terminal.ansiYellow
#FCE789 RGB(252, 231, 137) RGBA(252, 231, 137, 1) terminal.background
#161618 RGB(22, 22, 24) RGBA(22, 22, 24, 1) terminal.foreground
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) terminalCursor.background
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) terminalCursor.foreground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) titleBar.activeBackground
#161618 RGB(22, 22, 24) RGBA(22, 22, 24, 1) titleBar.inactiveBackground
#0A0A0C RGB(10, 10, 12) RGBA(10, 10, 12, 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
#6D816F RGB(109, 129, 111) RGBA(109, 129, 111, 1) comment.block
#6D816F RGB(109, 129, 111) RGBA(109, 129, 111, 1) comment.block.documentation
#6D816F RGB(109, 129, 111) RGBA(109, 129, 111, 1) comment.line
#6D816F RGB(109, 129, 111) RGBA(109, 129, 111, 1) constant
#1CF3FB RGB(28, 243, 251) RGBA(28, 243, 251, 1) constant.character
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) constant.character.escape
#55ED6A RGB(85, 237, 106) RGBA(85, 237, 106, 1) constant.numeric
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) constant.numeric.integer
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) constant.numeric.float
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) constant.numeric.hex
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) constant.numeric.octal
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) constant.other
#1CF3FB RGB(28, 243, 251) RGBA(28, 243, 251, 1) constant.other.placeholder
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) entity
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.class
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.function
#729FCF RGB(114, 159, 207) RGBA(114, 159, 207, 1) entity.name.method
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.namespace
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.section
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.selector
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.tag
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) entity.name.type
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.type.enum
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.type.interface
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.name.type.struct
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) entity.other
#49B8FD RGB(73, 184, 253) RGBA(73, 184, 253, 1) entity.other.attribute-name
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) entity.other.inherited-class
#F9F6E9 RGB(249, 246, 233) RGBA(249, 246, 233, 1) invalid
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) invalid.deprecated
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) invalid.illegal
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) keyword
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) keyword.control
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) keyword.control.flow
#FFE055 RGB(255, 224, 85) RGBA(255, 224, 85, 1) keyword.operator
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) keyword.operator.new
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) keyword.operator.assignment
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) keyword.operator.arithmetic
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) keyword.operator.logical
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) keyword.other
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) markup
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) markup.bold
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) markup.changed
#D87DE4 RGB(216, 125, 228) RGBA(216, 125, 228, 1) markup.deleted
#FF4646 RGB(255, 70, 70) RGBA(255, 70, 70, 1) markup.heading
#F9F6E9 RGB(249, 246, 233) RGBA(249, 246, 233, 1) markup.inline.raw
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) markup.inserted
#55ED6A RGB(85, 237, 106) RGBA(85, 237, 106, 1) markup.italic
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) markup.raw
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) markup.underline
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) markup.underline.link
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#729FCF RGB(114, 159, 207) RGBA(114, 159, 207, 1) meta.tag
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) punctuation.definition.bracket
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) punctuation.definition.comment
#6D816F RGB(109, 129, 111) RGBA(109, 129, 111, 1) punctuation.definition.string.begin
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) punctuation.definition.string.end
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) punctuation.separator
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) punctuation.separator.continuation
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) punctuation.terminator
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) storage
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) storage.modifier
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) storage.type
#D99DE2 RGB(217, 157, 226) RGBA(217, 157, 226, 1) string
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.interpolated
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.other
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.quoted
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.quoted.double
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.quoted.other
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.quoted.single
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.quoted.triple
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.regexp
#55DBE0 RGB(85, 219, 224) RGBA(85, 219, 224, 1) string.template
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) string.unquoted
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) support
#89DF95 RGB(137, 223, 149) RGBA(137, 223, 149, 1) support.class
#FCE789 RGB(252, 231, 137) RGBA(252, 231, 137, 1) support.constant
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1) support.function
#729FCF RGB(114, 159, 207) RGBA(114, 159, 207, 1) support.other
#FCE789 RGB(252, 231, 137) RGBA(252, 231, 137, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#9BC5D6 RGB(155, 197, 214) RGBA(155, 197, 214, 1) variable
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) variable.function
#729FCF RGB(114, 159, 207) RGBA(114, 159, 207, 1) variable.language
#FF8D8D RGB(255, 141, 141) RGBA(255, 141, 141, 1) variable.name
#F1EBF3 RGB(241, 235, 243) RGBA(241, 235, 243, 1) variable.other
#89DF95 RGB(137, 223, 149) RGBA(137, 223, 149, 1) variable.other.constant
#89DF95 RGB(137, 223, 149) RGBA(137, 223, 149, 1) variable.other.property
#89DF95 RGB(137, 223, 149) RGBA(137, 223, 149, 1) variable.other.readwrite
#89DF95 RGB(137, 223, 149) RGBA(137, 223, 149, 1) variable.parameter
#E4F8F8 RGB(228, 248, 248) RGBA(228, 248, 248, 1)