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: Monokai Neue
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) editor.findMatchHighlightBackground
#FFE792 RGB(255, 231, 146) RGBA(255, 231, 146, 1) editor.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editor.lineHighlightBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) editor.selectionBackground
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) editorBracketHighlight.foreground1
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) editorBracketHighlight.foreground2
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) editorBracketHighlight.foreground3
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) editorBracketHighlight.foreground4
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) editorBracketHighlight.foreground5
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) editorBracketHighlight.foreground6
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) editorBracketMatch.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) editorBracketMatch.border
#F8F8F2A5 RGB(248, 248, 242) RGBA(248, 248, 242, 0.647) editorCursor.foreground
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) editorIndentGuide.activeBackground1
#66D9EFB0 RGB(102, 217, 239) RGBA(102, 217, 239, 0.69) editorIndentGuide.background1
#3E737E30 RGB(62, 115, 126) RGBA(62, 115, 126, 0.188) editorLineNumber.foreground
#7C7865 RGB(124, 120, 101) RGBA(124, 120, 101, 1) editorWhitespace.foreground
#3B3A32 RGB(59, 58, 50) RGBA(59, 58, 50, 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
#77777E RGB(119, 119, 126) RGBA(119, 119, 126, 1) comment.block
#77777E RGB(119, 119, 126) RGBA(119, 119, 126, 1) comment.block.documentation
#77777E RGB(119, 119, 126) RGBA(119, 119, 126, 1) comment.line
#77777E RGB(119, 119, 126) RGBA(119, 119, 126, 1) constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) constant.character
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.character.escape
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.integer
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.float
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.hex
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.octal
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.other
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.other.placeholder
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.regexp
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) constant.rgb-value
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) entity
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) entity.name
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 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.method
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.namespace
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.section
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.selector
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.type
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.type.enum
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.type.interface
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.type.struct
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 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
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.bold
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.changed
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.deleted
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.italic
#E42E70 RGB(228, 46, 112) RGBA(228, 46, 112, 1) markup.quote
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) markup.raw
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.underline
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.underline.link
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) meta.class
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) meta.function-call
#3BC0F0 RGB(59, 192, 240) RGBA(59, 192, 240, 1) meta.preprocessor
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) meta.tag
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) punctuation.definition.comment
#7C7865 RGB(124, 120, 101) RGBA(124, 120, 101, 1) punctuation.definition.string.begin
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.string.end
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.interpolated
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.double
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.single
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.triple
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.regexp
#F6AA11 RGB(246, 170, 17) RGBA(246, 170, 17, 1) string.template
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.unquoted
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) support
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 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.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
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.language
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)