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
Dark Purple - Webstorm
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) activityBar.border
#20202B RGB(32, 32, 43) RGBA(32, 32, 43, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#1D1D26 RGB(29, 29, 38) RGBA(29, 29, 38, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.selectionBackground
#214283 RGB(33, 66, 131) RGBA(33, 66, 131, 1) editor.wordHighlightBackground
#546E7A55 RGB(84, 110, 122) RGBA(84, 110, 122, 0.333) editorCodeLens.foreground
#546E7A9F RGB(84, 110, 122) RGBA(84, 110, 122, 0.624) editorGroupHeader.tabsBackground
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) editorGutter.background
#20202B RGB(32, 32, 43) RGBA(32, 32, 43, 1) editorIndentGuide.activeBackground
#BBBBBBA4 RGB(187, 187, 187) RGBA(187, 187, 187, 0.643) list.activeSelectionBackground
#713A91 RGB(113, 58, 145) RGBA(113, 58, 145, 1) list.focusBackground
#713A91 RGB(113, 58, 145) RGBA(113, 58, 145, 1) menu.background
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) menu.selectionBackground
#713A91 RGB(113, 58, 145) RGBA(113, 58, 145, 1) menubar.selectionBackground
#713A91 RGB(113, 58, 145) RGBA(113, 58, 145, 1) menubar.selectionForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) progressBar.background
#713A91 RGB(113, 58, 145) RGBA(113, 58, 145, 1) sideBar.background
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) tab.activeBackground
#343445 RGB(52, 52, 69) RGBA(52, 52, 69, 1) tab.activeBorder
#713A91 RGB(113, 58, 145) RGBA(113, 58, 145, 1) tab.inactiveBackground
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) titleBar.activeBackground
#2C2C3B RGB(44, 44, 59) RGBA(44, 44, 59, 1) titleBar.border
#20202B RGB(32, 32, 43) RGBA(32, 32, 43, 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
#676773 RGB(103, 103, 115) RGBA(103, 103, 115, 1) comment.block
#676773 RGB(103, 103, 115) RGBA(103, 103, 115, 1) comment.block.documentation
#676773 RGB(103, 103, 115) RGBA(103, 103, 115, 1) comment.line
#676773 RGB(103, 103, 115) RGBA(103, 103, 115, 1) constant
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.character
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) constant.character.escape
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) constant.numeric
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.integer
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.float
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.hex
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.numeric.octal
#6987BB RGB(105, 135, 187) RGBA(105, 135, 187, 1) constant.other
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.other.placeholder
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) entity
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) entity.name
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.class
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.function
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) entity.name.method
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.namespace
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.section
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.selector
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.tag
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) entity.name.type
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.type.enum
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.type.interface
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.name.type.struct
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) entity.other
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) entity.other.attribute-name
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) entity.other.inherited-class
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 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
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) keyword.control
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) keyword.control.flow
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) keyword.operator
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) keyword.operator.new
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) keyword.operator.assignment
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) keyword.operator.arithmetic
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) keyword.operator.logical
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) keyword.other
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) markup
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) markup.changed
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) markup.inline.raw
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) meta
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) meta.function-call
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) meta.tag
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) punctuation.definition.bracket
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) punctuation.definition.comment
#676773 RGB(103, 103, 115) RGBA(103, 103, 115, 1) punctuation.definition.string.begin
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) punctuation.definition.string.end
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) punctuation.separator
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) punctuation.separator.continuation
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) punctuation.terminator
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) storage
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) storage.modifier
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) storage.type
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) string
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.interpolated
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.other
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.quoted
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.quoted.double
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.quoted.other
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.quoted.single
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.quoted.triple
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.regexp
#DFD940 RGB(223, 217, 64) RGBA(223, 217, 64, 1) string.template
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) string.unquoted
#62A362 RGB(98, 163, 98) RGBA(98, 163, 98, 1) support
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) support.class
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) support.constant
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) support.function
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) support.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support.type
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) support.type.primitive
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) support.type.property-name
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) support.variable
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) variable
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) variable.function
#C7A65D RGB(199, 166, 93) RGBA(199, 166, 93, 1) variable.language
#E0957B RGB(224, 149, 123) RGBA(224, 149, 123, 1) variable.name
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) variable.other
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) variable.other.constant
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) variable.other.property
#93A6F5 RGB(147, 166, 245) RGBA(147, 166, 245, 1) variable.other.readwrite
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1) variable.parameter
#C9C9D1 RGB(201, 201, 209) RGBA(201, 201, 209, 1)