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
Loki's VScode
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) activityBar.activeFocusBorder
#3DD17A RGB(61, 209, 122) RGBA(61, 209, 122, 1) activityBar.background
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) activityBarBadge.background
#EED752E0 RGB(238, 215, 82) RGBA(238, 215, 82, 0.878) button.background
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) dropdown.background
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) dropdown.border
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) dropdown.listBackground
#295440C7 RGB(41, 84, 64) RGBA(41, 84, 64, 0.78) editor.background
#191F19 RGB(25, 31, 25) RGBA(25, 31, 25, 1) editor.foreground
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) editor.selectionBackground
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) editor.wordHighlightBackground
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) editorCursor.foreground
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) editorGroup.border
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) input.background
#295440C7 RGB(41, 84, 64) RGBA(41, 84, 64, 0.78) input.border
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) inputOption.activeBorder
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) list.activeSelectionBackground
#191F19 RGB(25, 31, 25) RGBA(25, 31, 25, 1) list.dropBackground
#E9AB02B0 RGB(233, 171, 2) RGBA(233, 171, 2, 0.69) list.focusAndSelectionOutline
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) list.hoverBackground
#191F19 RGB(25, 31, 25) RGBA(25, 31, 25, 1) menu.border
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) progressBar.background
#3DD17A RGB(61, 209, 122) RGBA(61, 209, 122, 1) quickInput.foreground
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) scrollbarSlider.activeBackground
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) sideBar.background
#295440B4 RGB(41, 84, 64) RGBA(41, 84, 64, 0.706) sideBar.foreground
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) sideBarSectionHeader.background
#E9AB02B0 RGB(233, 171, 2) RGBA(233, 171, 2, 0.69) sideBarSectionHeader.foreground
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) sideBarTitle.foreground
#E8A850 RGB(232, 168, 80) RGBA(232, 168, 80, 1) statusBar.background
#6CCF59 RGB(108, 207, 89) RGBA(108, 207, 89, 1) titleBar.activeBackground
#191F19 RGB(25, 31, 25) RGBA(25, 31, 25, 1) window.activeBorder
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 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
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) comment.block
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) comment.block.documentation
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) comment.line
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) constant.numeric.integer
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) constant.numeric.float
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) constant.numeric.hex
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) constant.numeric.octal
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#E8A850 RGB(232, 168, 80) RGBA(232, 168, 80, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#CB8720 RGB(203, 135, 32) RGBA(203, 135, 32, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#208C50 RGB(32, 140, 80) RGBA(32, 140, 80, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) keyword.control
#65D5C5 RGB(101, 213, 197) RGBA(101, 213, 197, 1) keyword.control.flow
#65D5C5 RGB(101, 213, 197) RGBA(101, 213, 197, 1) keyword.operator
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) keyword.operator.new
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) keyword.operator.assignment
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) keyword.operator.arithmetic
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) keyword.operator.logical
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) keyword.other
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 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.heading
#208C50 RGB(32, 140, 80) RGBA(32, 140, 80, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#A2A660 RGB(162, 166, 96) RGBA(162, 166, 96, 1) markup.underline.link
#A2A660 RGB(162, 166, 96) RGBA(162, 166, 96, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#E8A850 RGB(232, 168, 80) RGBA(232, 168, 80, 1) meta.tag
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) punctuation.definition.bracket
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) punctuation.definition.comment
#396F42 RGB(57, 111, 66) RGBA(57, 111, 66, 1) punctuation.definition.string.begin
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) punctuation.definition.string.end
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) punctuation.separator
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) punctuation.separator.continuation
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) punctuation.terminator
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) storage
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) storage.modifier
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) storage.type
#3CA28F RGB(60, 162, 143) RGBA(60, 162, 143, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1) support.function
#E8A850 RGB(232, 168, 80) RGBA(232, 168, 80, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 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
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) variable.function
#E8A850 RGB(232, 168, 80) RGBA(232, 168, 80, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#B2D0C8 RGB(178, 208, 200) RGBA(178, 208, 200, 1) variable.other
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) variable.other.constant
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) variable.other.property
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) variable.other.readwrite
#EED752 RGB(238, 215, 82) RGBA(238, 215, 82, 1) variable.parameter
#E9AE51 RGB(233, 174, 81) RGBA(233, 174, 81, 1)