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
Neon Bunny - Original
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) activityBar.background
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.selectionBackground
#444444 RGB(68, 68, 68) RGBA(68, 68, 68, 1) editor.selectionHighlightBackground
#FFFFFF15 RGB(255, 255, 255) RGBA(255, 255, 255, 0.082) editor.wordHighlightStrongBackground
#FFFFFF15 RGB(255, 255, 255) RGBA(255, 255, 255, 0.082) editorGroupHeader.tabsBackground
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editorIndentGuide.activeBackground
#555555 RGB(85, 85, 85) RGBA(85, 85, 85, 1) editorIndentGuide.background
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 1) editorLineNumber.activeForeground
#00FF00 RGB(0, 255, 0) RGBA(0, 255, 0, 1) sideBar.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#21252B RGB(33, 37, 43) RGBA(33, 37, 43, 1) statusBar.foreground
#9DA5B4 RGB(157, 165, 180) RGBA(157, 165, 180, 1) tab.activeBackground
#555555 RGB(85, 85, 85) RGBA(85, 85, 85, 1) tab.hoverBackground
#555555 RGB(85, 85, 85) RGBA(85, 85, 85, 1) tab.inactiveBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 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
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.block
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.block.documentation
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.line
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.character.escape
#FFFFAA RGB(255, 255, 170) RGBA(255, 255, 170, 1) constant.other
#FFB46A RGB(255, 180, 106) RGBA(255, 180, 106, 1) constant.other.placeholder
#FFB46A RGB(255, 180, 106) RGBA(255, 180, 106, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#0AFF04 RGB(10, 255, 4) RGBA(10, 255, 4, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#FF07A2 RGB(255, 7, 162) RGBA(255, 7, 162, 1) entity.other.attribute-name
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) entity.other.inherited-class
#FFB46A RGB(255, 180, 106) RGBA(255, 180, 106, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) keyword.control
#0B93FF RGB(11, 147, 255) RGBA(11, 147, 255, 1) keyword.control.flow
#0B93FF RGB(11, 147, 255) RGBA(11, 147, 255, 1) keyword.operator
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) keyword.operator.new
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) keyword.operator.assignment
#FF6106 RGB(255, 97, 6) RGBA(255, 97, 6, 1) keyword.operator.arithmetic
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) keyword.operator.logical
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) keyword.other
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#FFB46A RGB(255, 180, 106) RGBA(255, 180, 106, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function
#0B93FF RGB(11, 147, 255) RGBA(11, 147, 255, 1) meta.function-call
#0AFF04 RGB(10, 255, 4) RGBA(10, 255, 4, 1) meta.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.definition.bracket
#0B93FF RGB(11, 147, 255) RGBA(11, 147, 255, 1) punctuation.definition.comment
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) punctuation.definition.string.begin
#0B93FF RGB(11, 147, 255) RGBA(11, 147, 255, 1) punctuation.definition.string.end
#0B93FF RGB(11, 147, 255) RGBA(11, 147, 255, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) storage.modifier
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) storage.type
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#FFB46A RGB(255, 180, 106) RGBA(255, 180, 106, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#FEF611 RGB(254, 246, 17) RGBA(254, 246, 17, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#FFE4A6 RGB(255, 228, 166) RGBA(255, 228, 166, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#FF0C77 RGB(255, 12, 119) RGBA(255, 12, 119, 1) support.class
#DF00DF RGB(223, 0, 223) RGBA(223, 0, 223, 1) support.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.function
#0AFF04 RGB(10, 255, 4) RGBA(10, 255, 4, 1) support.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support.type
#FF1190 RGB(255, 17, 144) RGBA(255, 17, 144, 1) support.type.primitive
#FF1190 RGB(255, 17, 144) RGBA(255, 17, 144, 1) support.type.property-name
#FF1190 RGB(255, 17, 144) RGBA(255, 17, 144, 1) variable
#2BB71D RGB(43, 183, 29) RGBA(43, 183, 29, 1) variable.function
#0AFF04 RGB(10, 255, 4) RGBA(10, 255, 4, 1) variable.language
#2492FF RGB(36, 146, 255) RGBA(36, 146, 255, 1) variable.name
#2BB71D RGB(43, 183, 29) RGBA(43, 183, 29, 1) variable.other
#2BB71D RGB(43, 183, 29) RGBA(43, 183, 29, 1) variable.other.constant
#2BB71D RGB(43, 183, 29) RGBA(43, 183, 29, 1) variable.other.property
#A5A8FF RGB(165, 168, 255) RGBA(165, 168, 255, 1) variable.other.readwrite
#2BB71D RGB(43, 183, 29) RGBA(43, 183, 29, 1) variable.parameter
#2BB71D RGB(43, 183, 29) RGBA(43, 183, 29, 1)