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
SolarStripe
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#121223 RGB(18, 18, 35) RGBA(18, 18, 35, 1) editor.foreground
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) editor.lineHighlightBackground
#21213F RGB(33, 33, 63) RGBA(33, 33, 63, 1) editor.selectionBackground
#21213F RGB(33, 33, 63) RGBA(33, 33, 63, 1) editorCursor.foreground
#819090 RGB(129, 144, 144) RGBA(129, 144, 144, 1) editorWhitespace.foreground
#21213F RGB(33, 33, 63) RGBA(33, 33, 63, 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
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) comment.block
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) comment.block.documentation
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) comment.line
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) constant
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) constant.character
#C85D42 RGB(200, 93, 66) RGBA(200, 93, 66, 1) constant.character.escape
#C85D42 RGB(200, 93, 66) RGBA(200, 93, 66, 1) constant.numeric
#F6A4EB RGB(246, 164, 235) RGBA(246, 164, 235, 1) constant.numeric.integer
#F6A4EB RGB(246, 164, 235) RGBA(246, 164, 235, 1) constant.numeric.float
#F6A4EB RGB(246, 164, 235) RGBA(246, 164, 235, 1) constant.numeric.hex
#F6A4EB RGB(246, 164, 235) RGBA(246, 164, 235, 1) constant.numeric.octal
#F6A4EB RGB(246, 164, 235) RGBA(246, 164, 235, 1) constant.other
#C85D42 RGB(200, 93, 66) RGBA(200, 93, 66, 1) constant.other.placeholder
#C85D42 RGB(200, 93, 66) RGBA(200, 93, 66, 1) entity
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) entity.name
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) entity.name.class
#6772E5 RGB(103, 114, 229) RGBA(103, 114, 229, 1) entity.name.function
#6772E5 RGB(103, 114, 229) RGBA(103, 114, 229, 1) entity.name.tag
#6772E5 RGB(103, 114, 229) RGBA(103, 114, 229, 1) entity.name.type
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) entity.other
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) entity.other.attribute-name
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) keyword
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.control
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.control.flow
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.operator
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.operator.new
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.operator.assignment
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.operator.arithmetic
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.operator.logical
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) keyword.other
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) markup
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) markup.bold
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) markup.changed
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) markup.deleted
#E25950 RGB(226, 89, 80) RGBA(226, 89, 80, 1) markup.heading
#6772E5 RGB(103, 114, 229) RGBA(103, 114, 229, 1) markup.inserted
#219186 RGB(33, 145, 134) RGBA(33, 145, 134, 1) markup.italic
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) markup.list
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) markup.list.numbered
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) markup.list.unnumbered
#D782D9 RGB(215, 130, 217) RGBA(215, 130, 217, 1) markup.quote
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.raw
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) markup.underline
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) markup.underline.link
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) meta
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) meta.class
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) meta.function
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) meta.function-call
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) meta.preprocessor
#D782D9 RGB(215, 130, 217) RGBA(215, 130, 217, 1) meta.selector
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) meta.tag
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) punctuation.definition.string.begin
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) punctuation.definition.string.end
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) punctuation.separator
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) punctuation.separator.continuation
#E25950 RGB(226, 89, 80) RGBA(226, 89, 80, 1) punctuation.terminator
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) storage
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) storage.modifier
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) storage.type
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) string
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.interpolated
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.other
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.quoted
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.quoted.double
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted.other
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.quoted.single
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.quoted.triple
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.regexp
#E25950 RGB(226, 89, 80) RGBA(226, 89, 80, 1) string.template
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) string.unquoted
#8898AA RGB(136, 152, 170) RGBA(136, 152, 170, 1) support
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) support.class
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) support.constant
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) support.function
#6772E5 RGB(103, 114, 229) RGBA(103, 114, 229, 1) support.type
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) support.type.primitive
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) support.type.property-name
#FCD669 RGB(252, 214, 105) RGBA(252, 214, 105, 1) variable
#D782D9 RGB(215, 130, 217) RGBA(215, 130, 217, 1) variable.language
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) variable.other
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) variable.other.constant
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) variable.other.property
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) variable.other.readwrite
#AAB7C4 RGB(170, 183, 196) RGBA(170, 183, 196, 1) variable.parameter
#E25950 RGB(226, 89, 80) RGBA(226, 89, 80, 1)