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
Emerald Splash
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) editor.background
#747B66 RGB(116, 123, 102) RGBA(116, 123, 102, 1) editor.foreground
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) sideBarTitle.foreground
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 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
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) comment.block
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) comment.block.documentation
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) comment.line
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) constant
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.character
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.character.escape
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.numeric
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.numeric.integer
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.numeric.float
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.numeric.hex
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.numeric.octal
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.other
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) constant.other.placeholder
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.class
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.function
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.method
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.namespace
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.section
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.selector
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.tag
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) entity.name.type
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.type.enum
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.type.interface
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.name.type.struct
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) entity.other
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) entity.other.attribute-name
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) entity.other.inherited-class
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) invalid
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) invalid.deprecated
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) invalid.illegal
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) keyword
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) keyword.control
#545B21 RGB(84, 91, 33) RGBA(84, 91, 33, 1) keyword.control.flow
#545B21 RGB(84, 91, 33) RGBA(84, 91, 33, 1) keyword.operator
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) keyword.operator.new
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) keyword.operator.assignment
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) keyword.operator.arithmetic
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) keyword.operator.logical
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) keyword.other
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) markup
#545B21 RGB(84, 91, 33) RGBA(84, 91, 33, 1) markup.bold
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) markup.changed
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) markup.deleted
#67743B RGB(103, 116, 59) RGBA(103, 116, 59, 1) markup.heading
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) markup.inline.raw
#67743B RGB(103, 116, 59) RGBA(103, 116, 59, 1) markup.inserted
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) markup.italic
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) markup.raw
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) markup.underline
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) markup.underline.link
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) meta
#545B21 RGB(84, 91, 33) RGBA(84, 91, 33, 1) meta.function-call
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) meta.tag
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.definition.bracket
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.definition.comment
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.definition.string.begin
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.definition.string.end
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.separator
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.separator.continuation
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) punctuation.terminator
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) storage
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) storage.modifier
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) storage.type
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) string
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.interpolated
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.other
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.quoted
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.quoted.double
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.quoted.other
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.quoted.single
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.quoted.triple
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.regexp
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) string.template
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) string.unquoted
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) support
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) support.class
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) support.constant
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1) support.function
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) support.other
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) support.type
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) support.type.primitive
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) support.type.property-name
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) variable
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) variable.function
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) variable.language
#545B21 RGB(84, 91, 33) RGBA(84, 91, 33, 1) variable.name
#5B642B RGB(91, 100, 43) RGBA(91, 100, 43, 1) variable.other
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) variable.other.constant
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) variable.other.property
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) variable.other.readwrite
#BCC593 RGB(188, 197, 147) RGBA(188, 197, 147, 1) variable.parameter
#9EC0B5 RGB(158, 192, 181) RGBA(158, 192, 181, 1)