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
barbie-rave
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#FA72DC RGB(250, 114, 220) RGBA(250, 114, 220, 1) activityBar.background
#1A181F RGB(26, 24, 31) RGBA(26, 24, 31, 1) activityBarBadge.background
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) activityBarBadge.foreground
#101018 RGB(16, 16, 24) RGBA(16, 16, 24, 1) editor.background
#101018 RGB(16, 16, 24) RGBA(16, 16, 24, 1) editor.foreground
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) editor.selectionBackground
#EB7B5A40 RGB(235, 123, 90) RGBA(235, 123, 90, 0.251) editor.wordHighlightBackground
#33272920 RGB(51, 39, 41) RGBA(51, 39, 41, 0.125) editorGroup.border
#652EC7 RGB(101, 46, 199) RGBA(101, 46, 199, 1) editorGroupHeader.tabsBackground
#1A181F RGB(26, 24, 31) RGBA(26, 24, 31, 1) sideBar.background
#101018 RGB(16, 16, 24) RGBA(16, 16, 24, 1) sideBar.border
#70FFAC40 RGB(112, 255, 172) RGBA(112, 255, 172, 0.251) sideBar.foreground
#D06BFF RGB(208, 107, 255) RGBA(208, 107, 255, 1) statusBar.background
#F78C6C20 RGB(247, 140, 108) RGBA(247, 140, 108, 0.125) tab.border
#FF62E5 RGB(255, 98, 229) RGBA(255, 98, 229, 1) tab.inactiveBackground
#1A181F RGB(26, 24, 31) RGBA(26, 24, 31, 1) terminal.ansiBlue
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) terminal.ansiGreen
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) terminal.ansiYellow
#F9F940 RGB(249, 249, 64) RGBA(249, 249, 64, 1) terminal.border
#52FEBE RGB(82, 254, 190) RGBA(82, 254, 190, 1) titleBar.activeBackground
#101018 RGB(16, 16, 24) RGBA(16, 16, 24, 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
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) comment.block
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) comment.block.documentation
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) comment.line
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) constant.character.escape
#51FFFA RGB(81, 255, 250) RGBA(81, 255, 250, 1) constant.numeric
#D5FD43 RGB(213, 253, 67) RGBA(213, 253, 67, 1) constant.numeric.integer
#D5FD43 RGB(213, 253, 67) RGBA(213, 253, 67, 1) constant.numeric.float
#D5FD43 RGB(213, 253, 67) RGBA(213, 253, 67, 1) constant.numeric.hex
#D5FD43 RGB(213, 253, 67) RGBA(213, 253, 67, 1) constant.numeric.octal
#D5FD43 RGB(213, 253, 67) RGBA(213, 253, 67, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#4FA6FD RGB(79, 166, 253) RGBA(79, 166, 253, 1) entity
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.class
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.function
#FF62E5 RGB(255, 98, 229) RGBA(255, 98, 229, 1) entity.name.method
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.namespace
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.section
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.selector
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.tag
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) entity.name.type
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.type.enum
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.type.interface
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.name.type.struct
#BB688A RGB(187, 104, 138) RGBA(187, 104, 138, 1) entity.other
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) entity.other.attribute-name
#9CE2E7 RGB(156, 226, 231) RGBA(156, 226, 231, 1) entity.other.inherited-class
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) invalid
#F5325D RGB(245, 50, 93) RGBA(245, 50, 93, 1) invalid.deprecated
#F5325D RGB(245, 50, 93) RGBA(245, 50, 93, 1) invalid.illegal
#F5325D RGB(245, 50, 93) RGBA(245, 50, 93, 1) keyword
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) keyword.control
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) keyword.control.flow
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) keyword.operator
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) keyword.operator.new
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) keyword.operator.assignment
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) keyword.operator.arithmetic
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) keyword.operator.logical
#D5FD43 RGB(213, 253, 67) RGBA(213, 253, 67, 1) keyword.other
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) markup
#DACCFC RGB(218, 204, 252) RGBA(218, 204, 252, 1) markup.bold
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) markup.changed
#D06BFF RGB(208, 107, 255) RGBA(208, 107, 255, 1) markup.deleted
#FF6DA5 RGB(255, 109, 165) RGBA(255, 109, 165, 1) markup.heading
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) markup.inline.raw
#D06BFF RGB(208, 107, 255) RGBA(208, 107, 255, 1) markup.inserted
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) markup.italic
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) markup.raw
#FFE2FF RGB(255, 226, 255) RGBA(255, 226, 255, 1) markup.underline
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) markup.underline.link
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) meta
#101019 RGB(16, 16, 25) RGBA(16, 16, 25, 1) meta.function-call
#FF62E5 RGB(255, 98, 229) RGBA(255, 98, 229, 1) meta.tag
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.definition.bracket
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) punctuation.definition.comment
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) punctuation.definition.string.begin
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) punctuation.definition.string.end
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) punctuation.separator
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) punctuation.separator.continuation
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) punctuation.terminator
#E9CAF7B2 RGB(233, 202, 247) RGBA(233, 202, 247, 0.698) storage
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) storage.modifier
#51FFFA RGB(81, 255, 250) RGBA(81, 255, 250, 1) storage.type
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) string
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) string.interpolated
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) string.other
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) string.quoted
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) string.quoted.double
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) string.quoted.other
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) string.quoted.single
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) string.quoted.triple
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) string.regexp
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) string.template
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) string.unquoted
#F07186 RGB(240, 113, 134) RGBA(240, 113, 134, 1) support
#1C85FF RGB(28, 133, 255) RGBA(28, 133, 255, 1) support.class
#FFE46B RGB(255, 228, 107) RGBA(255, 228, 107, 1) support.constant
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) support.function
#FF62E5 RGB(255, 98, 229) RGBA(255, 98, 229, 1) support.other
#FFE46B RGB(255, 228, 107) RGBA(255, 228, 107, 1) support.type
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) support.type.primitive
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) support.type.property-name
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1) support.variable
#FFB0A2 RGB(255, 176, 162) RGBA(255, 176, 162, 1) variable
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) variable.function
#FF62E5 RGB(255, 98, 229) RGBA(255, 98, 229, 1) variable.language
#D06BFF RGB(208, 107, 255) RGBA(208, 107, 255, 1) variable.other
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) variable.other.constant
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) variable.other.property
#13B8FF RGB(19, 184, 255) RGBA(19, 184, 255, 1) variable.other.readwrite
#4FA6FD RGB(79, 166, 253) RGBA(79, 166, 253, 1) variable.parameter
#7EFB8A RGB(126, 251, 138) RGBA(126, 251, 138, 1)