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
Deep JSON: Jazz Solo Cup (Muted Brackets)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#121719 RGB(18, 23, 25) RGBA(18, 23, 25, 1) editor.findMatchHighlightBackground
#FFE79255 RGB(255, 231, 146) RGBA(255, 231, 146, 0.333) editor.foreground
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) editor.inactiveSelectionBackground
#1C343880 RGB(28, 52, 56) RGBA(28, 52, 56, 0.502) editor.lineHighlightBackground
#1C3438 RGB(28, 52, 56) RGBA(28, 52, 56, 1) editor.selectionBackground
#1C3438 RGB(28, 52, 56) RGBA(28, 52, 56, 1) editorBracketHighlight.foreground1
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) editorBracketHighlight.foreground2
#2C6A6B RGB(44, 106, 107) RGBA(44, 106, 107, 1) editorBracketHighlight.foreground3
#6F529C RGB(111, 82, 156) RGBA(111, 82, 156, 1) editorBracketHighlight.foreground4
#4A58B5 RGB(74, 88, 181) RGBA(74, 88, 181, 1) editorBracketHighlight.foreground5
#306A5F RGB(48, 106, 95) RGBA(48, 106, 95, 1) editorBracketHighlight.foreground6
#4F6086 RGB(79, 96, 134) RGBA(79, 96, 134, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) editorBracketMatch.background
#121719 RGB(18, 23, 25) RGBA(18, 23, 25, 1) editorBracketMatch.border
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) editorCursor.foreground
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) editorIndentGuide.activeBackground1
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) editorIndentGuide.background1
#1C3438 RGB(28, 52, 56) RGBA(28, 52, 56, 1) editorLineNumber.activeForeground
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) editorLineNumber.foreground
#5A6A6C RGB(90, 106, 108) RGBA(90, 106, 108, 1) editorWhitespace.foreground
#0BE9BF40 RGB(11, 233, 191) RGBA(11, 233, 191, 0.251)
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
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) comment.block
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) comment.block.documentation
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) comment.line
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.character
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) constant.character.escape
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) constant.numeric
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) constant.numeric.integer
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) constant.numeric.float
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) constant.numeric.hex
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) constant.numeric.octal
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) constant.other
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) constant.other.placeholder
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) entity
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.class
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) entity.name.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.method
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.namespace
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.section
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.selector
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.tag
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) entity.name.type
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.type.enum
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.type.interface
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.name.type.struct
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) entity.other
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) entity.other.attribute-name
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) entity.other.inherited-class
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 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
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.control
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.control.flow
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.operator
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.operator.new
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.operator.assignment
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.operator.arithmetic
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.operator.logical
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) keyword.other
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) markup
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) markup.bold
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) markup.changed
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) markup.deleted
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) markup.heading
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) markup.inline.raw
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) markup.inserted
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) markup.italic
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) markup.list
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) markup.list.numbered
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) markup.list.unnumbered
#9473FF RGB(148, 115, 255) RGBA(148, 115, 255, 1) markup.quote
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) markup.raw
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) markup.underline
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) markup.underline.link
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) meta
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) punctuation.definition.string.begin
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) punctuation.definition.string.end
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) punctuation.separator
#A094A0 RGB(160, 148, 160) RGBA(160, 148, 160, 1) storage
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) storage.modifier
#FF9BEC RGB(255, 155, 236) RGBA(255, 155, 236, 1) storage.type
#00B1B3 RGB(0, 177, 179) RGBA(0, 177, 179, 1) string
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.interpolated
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.other
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.quoted
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.quoted.double
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.quoted.other
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.quoted.single
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.quoted.triple
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.regexp
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.template
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) string.unquoted
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) support
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) support.class
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) support.constant
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) support.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) support.type.primitive
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) support.type.property-name
#BC9CF0 RGB(188, 156, 240) RGBA(188, 156, 240, 1) variable
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1) variable.parameter
#0BE9BF RGB(11, 233, 191) RGBA(11, 233, 191, 1)