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
Schwalbe Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#131519 RGB(19, 21, 25) RGBA(19, 21, 25, 1) editor.foreground
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.lineHighlightBackground
#242629 RGB(36, 38, 41) RGBA(36, 38, 41, 1) editor.selectionBackground
#264F78 RGB(38, 79, 120) RGBA(38, 79, 120, 1) editorCursor.foreground
#A7A7A7 RGB(167, 167, 167) RGBA(167, 167, 167, 1) editorIndentGuide.activeBackground
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) sideBar.background
#181B20 RGB(24, 27, 32) RGBA(24, 27, 32, 1) sideBar.foreground
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 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
#6D6F72 RGB(109, 111, 114) RGBA(109, 111, 114, 1) comment.block
#6D6F72 RGB(109, 111, 114) RGBA(109, 111, 114, 1) comment.block.documentation
#6D6F72 RGB(109, 111, 114) RGBA(109, 111, 114, 1) comment.line
#6D6F72 RGB(109, 111, 114) RGBA(109, 111, 114, 1) constant
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.character
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.character.escape
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.numeric
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.numeric.integer
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.numeric.float
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.numeric.hex
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.numeric.octal
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.other
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.other.placeholder
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.regexp
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) constant.rgb-value
#A1FFE0 RGB(161, 255, 224) RGBA(161, 255, 224, 1) entity
#42FFC2 RGB(66, 255, 194) RGBA(66, 255, 194, 1) entity.name
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.class
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.function
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.method
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.namespace
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.section
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.selector
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.tag
#57B2FF RGB(87, 178, 255) RGBA(87, 178, 255, 1) entity.name.type
#42FFC2 RGB(66, 255, 194) RGBA(66, 255, 194, 1) entity.name.type.enum
#42FFC2 RGB(66, 255, 194) RGBA(66, 255, 194, 1) entity.name.type.interface
#42FFC2 RGB(66, 255, 194) RGBA(66, 255, 194, 1) entity.name.type.struct
#42FFC2 RGB(66, 255, 194) RGBA(66, 255, 194, 1) entity.other
#66E5FF RGB(102, 229, 255) RGBA(102, 229, 255, 1) entity.other.attribute-name
#66E5FF RGB(102, 229, 255) RGBA(102, 229, 255, 1) entity.other.inherited-class
#66E5FF RGB(102, 229, 255) RGBA(102, 229, 255, 1) keyword
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) keyword.control
#FF8CCC RGB(255, 140, 204) RGBA(255, 140, 204, 1) keyword.control.flow
#FF8CCC RGB(255, 140, 204) RGBA(255, 140, 204, 1) keyword.operator
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) keyword.operator.new
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) keyword.operator.assignment
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) keyword.operator.arithmetic
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) keyword.operator.logical
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) keyword.other
#FF7085 RGB(255, 112, 133) RGBA(255, 112, 133, 1) punctuation.definition.bracket
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) punctuation.definition.comment
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) punctuation.definition.string.begin
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) punctuation.definition.string.end
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) punctuation.separator
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) punctuation.separator.continuation
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) punctuation.terminator
#ABC9FF RGB(171, 201, 255) RGBA(171, 201, 255, 1) storage
#FFB273 RGB(255, 178, 115) RGBA(255, 178, 115, 1) storage.modifier
#FF7085 RGB(255, 112, 133) RGBA(255, 112, 133, 1) storage.type
#8FFFDB RGB(143, 255, 219) RGBA(143, 255, 219, 1) string
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.interpolated
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.other
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.quoted
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.quoted.double
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.quoted.other
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.quoted.single
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.quoted.triple
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.regexp
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.template
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) string.unquoted
#FFEDA1 RGB(255, 237, 161) RGBA(255, 237, 161, 1) variable
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.function
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.language
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.name
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.other
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.other.constant
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.other.property
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.other.readwrite
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1) variable.parameter
#C8C9CB RGB(200, 201, 203) RGBA(200, 201, 203, 1)