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
Boxy Solarized Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) editor.foreground
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) editor.lineHighlightBackground
#00000010 RGB(0, 0, 0) RGBA(0, 0, 0, 0.063) editor.selectionBackground
#00000016 RGB(0, 0, 0) RGBA(0, 0, 0, 0.086) editorCursor.foreground
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) editorIndentGuide.background
#00000025 RGB(0, 0, 0) RGBA(0, 0, 0, 0.145) editorWhitespace.foreground
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) statusBar.background
#DDCCBB RGB(221, 204, 187) RGBA(221, 204, 187, 1) statusBar.foreground
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) statusBar.noFolderBackground
#AABBDD RGB(170, 187, 221) RGBA(170, 187, 221, 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
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) comment.block
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) comment.block.documentation
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) comment.line
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) constant
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) constant.character
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.character.escape
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.integer
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.float
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.hex
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.octal
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.other
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) constant.other.placeholder
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) entity
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) entity.name
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.class
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) entity.name.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) entity.name.method
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.namespace
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.section
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.selector
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.tag
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type.enum
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type.interface
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type.struct
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.other
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) entity.other.attribute-name
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) entity.other.inherited-class
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) invalid
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) invalid.deprecated
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) invalid.illegal
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) keyword
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword.control
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword.control.flow
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword.operator
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.new
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.assignment
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.arithmetic
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.logical
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.other
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.changed
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.deleted
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.heading
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) markup.inline.raw
#657B83CC RGB(101, 123, 131) RGBA(101, 123, 131, 0.8) markup.inserted
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) markup.quote
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) markup.raw
#657B83CC RGB(101, 123, 131) RGBA(101, 123, 131, 0.8) markup.underline
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) markup.underline.link
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) meta
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) meta.function-call
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) meta.tag
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.definition.bracket
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) punctuation.definition.comment
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 1) punctuation.definition.string.begin
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) punctuation.definition.string.end
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) punctuation.separator
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.separator.continuation
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.terminator
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) storage
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) storage.modifier
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) storage.type
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) string
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.interpolated
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.other
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.double
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.other
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.single
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.triple
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.regexp
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.template
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.unquoted
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) support
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.class
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.constant
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) support.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) support.other
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.type
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.type.primitive
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.type.property-name
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) variable
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) variable.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) variable.language
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) variable.name
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) variable.other
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) variable.other.constant
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) variable.other.property
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) variable.other.readwrite
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) variable.parameter
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1)