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
SoftAura Glow
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#12E51D RGB(18, 229, 29) RGBA(18, 229, 29, 1) editor.background
#182028 RGB(24, 32, 40) RGBA(24, 32, 40, 1) editor.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editorWidget.foreground
#BB00FF RGB(187, 0, 255) RGBA(187, 0, 255, 1) icon.foreground
#2BEA09 RGB(43, 234, 9) RGBA(43, 234, 9, 1) sideBar.background
#1820289D RGB(24, 32, 40) RGBA(24, 32, 40, 0.616) sideBar.border
#6446A99D RGB(100, 70, 169) RGBA(100, 70, 169, 0.616) sideBarSectionHeader.background
#3833489D RGB(56, 51, 72) RGBA(56, 51, 72, 0.616) sideBarTitle.foreground
#70F72D RGB(112, 247, 45) RGBA(112, 247, 45, 1) statusBar.background
#383F46 RGB(56, 63, 70) RGBA(56, 63, 70, 1) statusBarItem.hoverForeground
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) statusBarItem.remoteBackground
#EA00FFEC RGB(234, 0, 255) RGBA(234, 0, 255, 0.925) terminal.foreground
#38E116 RGB(56, 225, 22) RGBA(56, 225, 22, 1) terminal.hoverHighlightBackground
#11FF00 RGB(17, 255, 0) RGBA(17, 255, 0, 1) terminalCursor.background
#21DD00 RGB(33, 221, 0) RGBA(33, 221, 0, 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
#FF8C00 RGB(255, 140, 0) RGBA(255, 140, 0, 1) comment.block
#FF8C00 RGB(255, 140, 0) RGBA(255, 140, 0, 1) comment.block.documentation
#FF8C00 RGB(255, 140, 0) RGBA(255, 140, 0, 1) comment.line
#FF8C00 RGB(255, 140, 0) RGBA(255, 140, 0, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) constant.numeric.integer
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) constant.numeric.float
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) constant.numeric.hex
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) constant.numeric.octal
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#66C2FF RGB(102, 194, 255) RGBA(102, 194, 255, 1) entity
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.class
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.function
#00BFFF RGB(0, 191, 255) RGBA(0, 191, 255, 1) entity.name.method
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.namespace
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.section
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.selector
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.tag
#FF1744 RGB(255, 23, 68) RGBA(255, 23, 68, 1) entity.name.type
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.type.enum
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.type.interface
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.name.type.struct
#93EE0A RGB(147, 238, 10) RGBA(147, 238, 10, 1) entity.other
#9FFF30 RGB(159, 255, 48) RGBA(159, 255, 48, 1) entity.other.attribute-name
#F435C4 RGB(244, 53, 196) RGBA(244, 53, 196, 1) entity.other.inherited-class
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 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
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 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
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) keyword.operator.new
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) keyword.operator.assignment
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) keyword.operator.arithmetic
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) keyword.operator.logical
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) keyword.other
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 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
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#BBDB08 RGB(187, 219, 8) RGBA(187, 219, 8, 1) markup.italic
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 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-call
#00BFFF RGB(0, 191, 255) RGBA(0, 191, 255, 1) meta.tag
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) punctuation.definition.bracket
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) punctuation.definition.comment
#FF8C00 RGB(255, 140, 0) RGBA(255, 140, 0, 1) punctuation.definition.string.begin
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) punctuation.definition.string.end
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) punctuation.separator
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) punctuation.separator.continuation
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) punctuation.terminator
#FF6F00 RGB(255, 111, 0) RGBA(255, 111, 0, 1) storage
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) storage.modifier
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) storage.type
#FF4F81 RGB(255, 79, 129) RGBA(255, 79, 129, 1) string
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.interpolated
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.other
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.quoted
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.quoted.double
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.quoted.other
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.quoted.single
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.quoted.triple
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) string.unquoted
#E11CC4 RGB(225, 28, 196) RGBA(225, 28, 196, 1) support
#91E119 RGB(145, 225, 25) RGBA(145, 225, 25, 1) support.class
#16FA29 RGB(22, 250, 41) RGBA(22, 250, 41, 1) support.constant
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1) support.function
#00BFFF RGB(0, 191, 255) RGBA(0, 191, 255, 1) support.other
#16FA29 RGB(22, 250, 41) RGBA(22, 250, 41, 1) support.type
#3EB7E7 RGB(62, 183, 231) RGBA(62, 183, 231, 1) support.type.primitive
#3EB7E7 RGB(62, 183, 231) RGBA(62, 183, 231, 1) support.type.property-name
#2FE8F5 RGB(47, 232, 245) RGBA(47, 232, 245, 1) variable
#66C2FF RGB(102, 194, 255) RGBA(102, 194, 255, 1) variable.function
#00BFFF RGB(0, 191, 255) RGBA(0, 191, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#66C2FF RGB(102, 194, 255) RGBA(102, 194, 255, 1) variable.other
#EEEA1E RGB(238, 234, 30) RGBA(238, 234, 30, 1) variable.other.constant
#EEEA1E RGB(238, 234, 30) RGBA(238, 234, 30, 1) variable.other.property
#EEEA1E RGB(238, 234, 30) RGBA(238, 234, 30, 1) variable.other.readwrite
#EEEA1E RGB(238, 234, 30) RGBA(238, 234, 30, 1) variable.parameter
#B388FF RGB(179, 136, 255) RGBA(179, 136, 255, 1)