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 Neon (Muted Brackets)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#272822 RGB(39, 40, 34) RGBA(39, 40, 34, 1) editor.findMatchHighlightBackground
#FFE79255 RGB(255, 231, 146) RGBA(255, 231, 146, 0.333) editor.foreground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editor.inactiveSelectionBackground
#49483E80 RGB(73, 72, 62) RGBA(73, 72, 62, 0.502) editor.lineHighlightBackground
#3E3D32 RGB(62, 61, 50) RGBA(62, 61, 50, 1) editor.selectionBackground
#49483E RGB(73, 72, 62) RGBA(73, 72, 62, 1) editorBracketHighlight.foreground1
#6F6F56 RGB(111, 111, 86) RGBA(111, 111, 86, 1) editorBracketHighlight.foreground2
#B04C70 RGB(176, 76, 112) RGBA(176, 76, 112, 1) editorBracketHighlight.foreground3
#8C663A RGB(140, 102, 58) RGBA(140, 102, 58, 1) editorBracketHighlight.foreground4
#746F40 RGB(116, 111, 64) RGBA(116, 111, 64, 1) editorBracketHighlight.foreground5
#62743C RGB(98, 116, 60) RGBA(98, 116, 60, 1) editorBracketHighlight.foreground6
#3F7680 RGB(63, 118, 128) RGBA(63, 118, 128, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) editorBracketMatch.background
#272822 RGB(39, 40, 34) RGBA(39, 40, 34, 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
#B04C70F0 RGB(176, 76, 112) RGBA(176, 76, 112, 0.941) editorIndentGuide.background1
#6F6F5630 RGB(111, 111, 86) RGBA(111, 111, 86, 0.188) editorLineNumber.activeForeground
#F8F8F2 RGB(248, 248, 242) RGBA(248, 248, 242, 1) editorLineNumber.foreground
#90908A RGB(144, 144, 138) RGBA(144, 144, 138, 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
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) comment.block
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) comment.block.documentation
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) comment.line
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) constant
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.character
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.character.escape
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.integer
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.float
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.hex
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.numeric.octal
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.other
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) constant.other.placeholder
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 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
#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
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 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.heading
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) markup.inline.raw
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.italic
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.list
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.list.numbered
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.list.unnumbered
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.quote
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) markup.raw
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.underline
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) markup.underline.link
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) meta
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) punctuation.definition.string.begin
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) punctuation.definition.string.end
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) punctuation.separator
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 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
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.interpolated
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.other
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.quoted
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.quoted.double
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.quoted.other
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.quoted.single
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.quoted.triple
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.regexp
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.template
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) string.unquoted
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) support
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 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
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) variable.parameter
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1)