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
Monokai Vapor
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) editor.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editor.lineHighlightBackground
#3D3D3D RGB(61, 61, 61) RGBA(61, 61, 61, 1) editor.selectionBackground
#403D3D RGB(64, 61, 61) RGBA(64, 61, 61, 1) editorCursor.foreground
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) editorWhitespace.foreground
#3B3A32 RGB(59, 58, 50) RGBA(59, 58, 50, 1) input.background
#1D1D1D RGB(29, 29, 29) RGBA(29, 29, 29, 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
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) comment.block
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) comment.block.documentation
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) comment.line
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) constant
#FFD0FB RGB(255, 208, 251) RGBA(255, 208, 251, 1) constant.character
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.character.escape
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.numeric
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.numeric.integer
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.numeric.float
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.numeric.hex
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.numeric.octal
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.other
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) constant.other.placeholder
#E0FFA1 RGB(224, 255, 161) RGBA(224, 255, 161, 1) entity
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) entity.name
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) entity.name.class
#FFC4FA RGB(255, 196, 250) RGBA(255, 196, 250, 1) entity.name.function
#FFC4FA RGB(255, 196, 250) RGBA(255, 196, 250, 1) entity.name.tag
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) entity.name.type
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.other
#FFADF8 RGB(255, 173, 248) RGBA(255, 173, 248, 1) entity.other.attribute-name
#FFADF8 RGB(255, 173, 248) RGBA(255, 173, 248, 1) entity.other.inherited-class
#FFC4FA RGB(255, 196, 250) RGBA(255, 196, 250, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.control
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.control.flow
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.operator
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.operator.new
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.operator.assignment
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.operator.arithmetic
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.operator.logical
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) keyword.other
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) markup
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) markup.bold
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) markup.changed
#BF3904 RGB(191, 57, 4) RGBA(191, 57, 4, 1) markup.deleted
#D3201F RGB(211, 32, 31) RGBA(211, 32, 31, 1) markup.heading
#CCFF67 RGB(204, 255, 103) RGBA(204, 255, 103, 1) markup.inserted
#60CF30 RGB(96, 207, 48) RGBA(96, 207, 48, 1) markup.italic
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) markup.list
#FFADF8 RGB(255, 173, 248) RGBA(255, 173, 248, 1) markup.list.numbered
#FFADF8 RGB(255, 173, 248) RGBA(255, 173, 248, 1) markup.list.unnumbered
#FFADF8 RGB(255, 173, 248) RGBA(255, 173, 248, 1) markup.quote
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.raw
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) markup.underline
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) markup.underline.link
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) meta
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) meta.function-call
#FAB85A RGB(250, 184, 90) RGBA(250, 184, 90, 1) meta.tag
#CD5AC5 RGB(205, 90, 197) RGBA(205, 90, 197, 1) punctuation.definition.string.begin
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) punctuation.definition.string.end
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) punctuation.separator
#FFA764 RGB(255, 167, 100) RGBA(255, 167, 100, 1) storage
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) storage.modifier
#FF9FA2 RGB(255, 159, 162) RGBA(255, 159, 162, 1) storage.type
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) string
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.interpolated
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.other
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.quoted
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.quoted.double
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.quoted.other
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.quoted.single
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.quoted.triple
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.regexp
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.template
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) string.unquoted
#FFF1AD RGB(255, 241, 173) RGBA(255, 241, 173, 1) support
#90E7F7 RGB(144, 231, 247) RGBA(144, 231, 247, 1) support.class
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.constant
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.function
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.other
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.type
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.type.primitive
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.type.property-name
#B6F3FF RGB(182, 243, 255) RGBA(182, 243, 255, 1) support.variable
#DBF9FF RGB(219, 249, 255) RGBA(219, 249, 255, 1) variable
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.language
#D66990 RGB(214, 105, 144) RGBA(214, 105, 144, 1) variable.other
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.other.property
#FFE1FC RGB(255, 225, 252) RGBA(255, 225, 252, 1) variable.parameter
#FFC583 RGB(255, 197, 131) RGBA(255, 197, 131, 1)