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 Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#BDB7F3 RGB(189, 183, 243) RGBA(189, 183, 243, 1) editor.lineHighlightBackground
#2575A333 RGB(37, 117, 163) RGBA(37, 117, 163, 0.2) editor.selectionBackground
#872AF1 RGB(135, 42, 241) RGBA(135, 42, 241, 1) editorCursor.foreground
#03AFFF RGB(3, 175, 255) RGBA(3, 175, 255, 1) editorWhitespace.foreground
#419CD1 RGB(65, 156, 209) RGBA(65, 156, 209, 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
#310404 RGB(49, 4, 4) RGBA(49, 4, 4, 1) comment.block
#310404 RGB(49, 4, 4) RGBA(49, 4, 4, 1) comment.block.documentation
#310404 RGB(49, 4, 4) RGBA(49, 4, 4, 1) comment.line
#310404 RGB(49, 4, 4) RGBA(49, 4, 4, 1) constant
#FFD0FB RGB(255, 208, 251) RGBA(255, 208, 251, 1) constant.character
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.character.escape
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.integer
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.float
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.hex
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.numeric.octal
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.other
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) constant.other.placeholder
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) entity
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.name
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.name.class
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.function
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.type
#FFB2F9 RGB(255, 178, 249) RGBA(255, 178, 249, 1) entity.other
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.attribute-name
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.inherited-class
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 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
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.control
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.control.flow
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.new
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.assignment
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.arithmetic
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.operator.logical
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) keyword.other
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 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
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 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
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) markup.list.numbered
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) markup.list.unnumbered
#FF80F4 RGB(255, 128, 244) RGBA(255, 128, 244, 1) markup.quote
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.raw
#FFEE99 RGB(255, 238, 153) RGBA(255, 238, 153, 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
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 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
#8D2121 RGB(141, 33, 33) RGBA(141, 33, 33, 1) punctuation.definition.string.end
#8D2121 RGB(141, 33, 33) RGBA(141, 33, 33, 1) punctuation.separator
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.modifier
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.interpolated
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.other
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.quoted
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.quoted.double
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.quoted.other
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.quoted.single
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.quoted.triple
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.regexp
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.template
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) string.unquoted
#3E8CC7 RGB(62, 140, 199) RGBA(62, 140, 199, 1) support
#90E7F7 RGB(144, 231, 247) RGBA(144, 231, 247, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.other
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 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
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)