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
for Marissa
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#53BAFF RGB(83, 186, 255) RGBA(83, 186, 255, 1) editor.background
#313131 RGB(49, 49, 49) RGBA(49, 49, 49, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) sideBarTitle.foreground
#D1CECE RGB(209, 206, 206) RGBA(209, 206, 206, 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
#37BB1D RGB(55, 187, 29) RGBA(55, 187, 29, 1) comment.block
#37BB1D RGB(55, 187, 29) RGBA(55, 187, 29, 1) comment.block.documentation
#37BB1D RGB(55, 187, 29) RGBA(55, 187, 29, 1) comment.line
#37BB1D RGB(55, 187, 29) RGBA(55, 187, 29, 1) constant
#EBFF92 RGB(235, 255, 146) RGBA(235, 255, 146, 1) constant.character
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) constant.character.escape
#93CBFF RGB(147, 203, 255) RGBA(147, 203, 255, 1) constant.numeric
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) constant.numeric.integer
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) constant.numeric.float
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) constant.numeric.hex
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) constant.numeric.octal
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) constant.other
#EBFF92 RGB(235, 255, 146) RGBA(235, 255, 146, 1) constant.other.placeholder
#FFC760 RGB(255, 199, 96) RGBA(255, 199, 96, 1) entity
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.class
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.function
#F3FF83 RGB(243, 255, 131) RGBA(243, 255, 131, 1) entity.name.method
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.namespace
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.section
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.selector
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.tag
#FDBAA0 RGB(253, 186, 160) RGBA(253, 186, 160, 1) entity.name.type
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.type.enum
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.type.interface
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.name.type.struct
#BCFFA1 RGB(188, 255, 161) RGBA(188, 255, 161, 1) entity.other
#FFF098 RGB(255, 240, 152) RGBA(255, 240, 152, 1) entity.other.attribute-name
#DCA1FF RGB(220, 161, 255) RGBA(220, 161, 255, 1) entity.other.inherited-class
#F8A7E0 RGB(248, 167, 224) RGBA(248, 167, 224, 1) invalid
#E89EFF RGB(232, 158, 255) RGBA(232, 158, 255, 1) invalid.deprecated
#E89EFF RGB(232, 158, 255) RGBA(232, 158, 255, 1) invalid.illegal
#E89EFF RGB(232, 158, 255) RGBA(232, 158, 255, 1) keyword
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) keyword.control
#FFA2F3 RGB(255, 162, 243) RGBA(255, 162, 243, 1) keyword.control.flow
#FFA2F3 RGB(255, 162, 243) RGBA(255, 162, 243, 1) keyword.operator
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) keyword.operator.new
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) keyword.operator.assignment
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) keyword.operator.arithmetic
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) keyword.operator.logical
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) keyword.other
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) markup
#F7FFFF RGB(247, 255, 255) RGBA(247, 255, 255, 1) markup.bold
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) markup.changed
#9BDFFF RGB(155, 223, 255) RGBA(155, 223, 255, 1) markup.deleted
#E2A3FF RGB(226, 163, 255) RGBA(226, 163, 255, 1) markup.heading
#F8A7E0 RGB(248, 167, 224) RGBA(248, 167, 224, 1) markup.inline.raw
#FFD28F RGB(255, 210, 143) RGBA(255, 210, 143, 1) markup.inserted
#ADFAE8 RGB(173, 250, 232) RGBA(173, 250, 232, 1) markup.italic
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) markup.raw
#FFC8A3 RGB(255, 200, 163) RGBA(255, 200, 163, 1) markup.underline
#FF9393 RGB(255, 147, 147) RGBA(255, 147, 147, 1) markup.underline.link
#FF9393 RGB(255, 147, 147) RGBA(255, 147, 147, 1) meta
#787B8B RGB(120, 123, 139) RGBA(120, 123, 139, 1) meta.function-call
#F3FF83 RGB(243, 255, 131) RGBA(243, 255, 131, 1) meta.tag
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) punctuation.definition.bracket
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) punctuation.definition.comment
#37BB1D RGB(55, 187, 29) RGBA(55, 187, 29, 1) punctuation.definition.string.begin
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) punctuation.definition.string.end
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) punctuation.separator
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) punctuation.separator.continuation
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) punctuation.terminator
#92FF8F RGB(146, 255, 143) RGBA(146, 255, 143, 1) storage
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) storage.modifier
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) storage.type
#95FFFF RGB(149, 255, 255) RGBA(149, 255, 255, 1) string
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.interpolated
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.other
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.quoted
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.quoted.double
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.quoted.other
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.quoted.single
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.quoted.triple
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.regexp
#FD9F69 RGB(253, 159, 105) RGBA(253, 159, 105, 1) string.template
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) string.unquoted
#F8FF92 RGB(248, 255, 146) RGBA(248, 255, 146, 1) support
#F691FF RGB(246, 145, 255) RGBA(246, 145, 255, 1) support.class
#D883FF RGB(216, 131, 255) RGBA(216, 131, 255, 1) support.constant
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1) support.function
#F3FF83 RGB(243, 255, 131) RGBA(243, 255, 131, 1) support.other
#D883FF RGB(216, 131, 255) RGBA(216, 131, 255, 1) support.type
#FF8FBE RGB(255, 143, 190) RGBA(255, 143, 190, 1) support.type.primitive
#FF8FBE RGB(255, 143, 190) RGBA(255, 143, 190, 1) support.type.property-name
#ED8CFA RGB(237, 140, 250) RGBA(237, 140, 250, 1) variable
#FFC760 RGB(255, 199, 96) RGBA(255, 199, 96, 1) variable.function
#F3FF83 RGB(243, 255, 131) RGBA(243, 255, 131, 1) variable.language
#FFF890 RGB(255, 248, 144) RGBA(255, 248, 144, 1) variable.name
#FFC760 RGB(255, 199, 96) RGBA(255, 199, 96, 1) variable.other
#FF98E9 RGB(255, 152, 233) RGBA(255, 152, 233, 1) variable.other.constant
#FF98E9 RGB(255, 152, 233) RGBA(255, 152, 233, 1) variable.other.property
#FF98E9 RGB(255, 152, 233) RGBA(255, 152, 233, 1) variable.other.readwrite
#FF98E9 RGB(255, 152, 233) RGBA(255, 152, 233, 1) variable.parameter
#F3FA92 RGB(243, 250, 146) RGBA(243, 250, 146, 1)