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
Material Theme for VSCode - Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1E272C RGB(30, 39, 44) RGBA(30, 39, 44, 1) activityBar.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) activityBarBadge.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editor.background
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editor.lineHighlightBackground
#314549 RGB(49, 69, 73) RGBA(49, 69, 73, 1) editor.selectionBackground
#546E7A80 RGB(84, 110, 122) RGBA(84, 110, 122, 0.502) editorCursor.foreground
#FFCC00 RGB(255, 204, 0) RGBA(255, 204, 0, 1) editorGutter.addedBackground
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) editorGutter.background
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) editorGutter.deletedBackground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) editorGutter.modifiedBackground
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) sideBar.background
#1E272C RGB(30, 39, 44) RGBA(30, 39, 44, 1) sideBar.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#1E272C RGB(30, 39, 44) RGBA(30, 39, 44, 1) statusBar.debuggingBackground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) statusBar.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) statusBar.noFolderBackground
#1E272C RGB(30, 39, 44) RGBA(30, 39, 44, 1) tab.activeBackground
#314549 RGB(49, 69, 73) RGBA(49, 69, 73, 1) tab.activeForeground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) tab.inactiveBackground
#1E272C RGB(30, 39, 44) RGBA(30, 39, 44, 1) tab.inactiveForeground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.character
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.character.escape
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.integer
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.float
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.hex
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.octal
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) entity.name
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) entity.name.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name.tag
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) entity.name.type
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type.enum
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type.interface
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type.struct
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other
#E8E8E8 RGB(232, 232, 232) RGBA(232, 232, 232, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#E8E8E8 RGB(232, 232, 232) RGBA(232, 232, 232, 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
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) keyword.control
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.control.flow
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.new
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.assignment
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.arithmetic
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.logical
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.other
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.bold
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.italic
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.underline
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) markup.underline.link
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) meta
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) meta.function-call
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) meta.preprocessor
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) meta.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) punctuation.definition.bracket
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.string.end
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) punctuation.separator.continuation
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) punctuation.terminator
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) storage
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) storage.modifier
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) string
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.interpolated
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.double
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.single
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.triple
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.regexp
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.template
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.unquoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#B59BD1 RGB(181, 155, 209) RGBA(181, 155, 209, 1) support.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) support.other
#D4C570 RGB(212, 197, 112) RGBA(212, 197, 112, 1) support.type
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.type.primitive
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.language
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other.constant
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other.property
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other.readwrite
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.parameter
#F67B56 RGB(246, 123, 86) RGBA(246, 123, 86, 1)