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
Dracula For Rust Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#212122 RGB(33, 33, 34) RGBA(33, 33, 34, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.lineHighlightBackground
#2A2A2B RGB(42, 42, 43) RGBA(42, 42, 43, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) sideBar.background
#1E1E1F RGB(30, 30, 31) RGBA(30, 30, 31, 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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.character
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.character.escape
#DF3A08 RGB(223, 58, 8) RGBA(223, 58, 8, 1) constant.numeric
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric.integer
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric.float
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric.hex
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric.octal
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) entity
#5FBBE6E5 RGB(95, 187, 230) RGBA(95, 187, 230, 0.898) entity.name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.function
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.method
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.namespace
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.section
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.selector
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.tag
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 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
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) invalid
#F11237 RGB(241, 18, 55) RGBA(241, 18, 55, 1) invalid.deprecated
#F11237 RGB(241, 18, 55) RGBA(241, 18, 55, 1) invalid.illegal
#F11237 RGB(241, 18, 55) RGBA(241, 18, 55, 1) keyword
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) keyword.operator.new
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) keyword.operator.assignment
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) keyword.operator.arithmetic
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) keyword.operator.logical
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) keyword.other
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 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
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.inline.raw
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.inserted
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.italic
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.underline.link
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) meta
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) meta.function
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) meta.function-call
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) meta.tag
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.definition.bracket
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.definition.comment
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.definition.string.begin
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.definition.string.end
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.separator
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.separator.continuation
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.terminator
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) storage
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) storage.modifier
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) storage.type
#BDB9C0 RGB(189, 185, 192) RGBA(189, 185, 192, 1) string
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.interpolated
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.other
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.double
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.other
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.single
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.triple
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.regexp
#DF3A08 RGB(223, 58, 8) RGBA(223, 58, 8, 1) string.template
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.unquoted
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) support
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) support.function
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.function
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) variable.language
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) variable.name
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.constant
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.property
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.readwrite
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.parameter
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1)