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
Bento Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.foreground
#DBDBDB RGB(219, 219, 219) RGBA(219, 219, 219, 1) editor.lineHighlightBackground
#333435 RGB(51, 52, 53) RGBA(51, 52, 53, 1) editor.selectionBackground
#5A647EE0 RGB(90, 100, 126) RGBA(90, 100, 126, 0.878) editorCursor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorError.foreground
#C21C1C RGB(194, 28, 28) RGBA(194, 28, 28, 1) editorInfo.foreground
#4093FF RGB(64, 147, 255) RGBA(64, 147, 255, 1) editorWarning.border
#EEEE0500 RGB(238, 238, 5) RGBA(238, 238, 5, 0) editorWarning.foreground
#CCCC0C RGB(204, 204, 12) RGBA(204, 204, 12, 1) editorWhitespace.foreground
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 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
#967363 RGB(150, 115, 99) RGBA(150, 115, 99, 1) comment.block
#967363 RGB(150, 115, 99) RGBA(150, 115, 99, 1) comment.block.documentation
#967363 RGB(150, 115, 99) RGBA(150, 115, 99, 1) comment.line
#967363 RGB(150, 115, 99) RGBA(150, 115, 99, 1) constant
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) constant.character
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) constant.character.escape
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) constant.numeric
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.integer
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.float
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.hex
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.numeric.octal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.other
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) constant.other.placeholder
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) constant.regexp
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) constant.rgb-value
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) entity
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) entity.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.function
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) entity.name.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) entity.name.type.enum
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) entity.name.type.interface
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) entity.name.type.struct
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) entity.other
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) entity.other.attribute-name
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) keyword
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) keyword.control
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) keyword.control.flow
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) keyword.operator
#FA7D4C RGB(250, 125, 76) RGBA(250, 125, 76, 1) keyword.operator.new
#FA7D4C RGB(250, 125, 76) RGBA(250, 125, 76, 1) keyword.operator.assignment
#FA7D4C RGB(250, 125, 76) RGBA(250, 125, 76, 1) keyword.operator.arithmetic
#FA7D4C RGB(250, 125, 76) RGBA(250, 125, 76, 1) keyword.operator.logical
#FA7D4C RGB(250, 125, 76) RGBA(250, 125, 76, 1) keyword.other
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) meta
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) meta.function-call
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) meta.tag
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) meta.type.annotation
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) meta.type
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) storage
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) storage.modifier
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) storage.type
#FA7D4C RGB(250, 125, 76) RGBA(250, 125, 76, 1) string
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.interpolated
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.other
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.quoted
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.quoted.double
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.quoted.other
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.quoted.single
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.quoted.triple
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.regexp
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.template
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) string.unquoted
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) support
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.constant
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.function
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.type
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) support.type.primitive
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) support.type.property-name
#6E9CBE RGB(110, 156, 190) RGBA(110, 156, 190, 1) support.variable
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) variable
#B47BFF RGB(180, 123, 255) RGBA(180, 123, 255, 1) variable.function
#B47BFF RGB(180, 123, 255) RGBA(180, 123, 255, 1) variable.language
#B47BFF RGB(180, 123, 255) RGBA(180, 123, 255, 1) variable.name
#B47BFF RGB(180, 123, 255) RGBA(180, 123, 255, 1) variable.other
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) variable.other.constant
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) variable.other.property
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) variable.other.readwrite
#D0D0FF RGB(208, 208, 255) RGBA(208, 208, 255, 1) variable.parameter
#B47BFF RGB(180, 123, 255) RGBA(180, 123, 255, 1)