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
Laravel
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#FBFBFB RGB(251, 251, 251) RGBA(251, 251, 251, 1) activityBar.foreground
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) activityBarBadge.background
#E3F1F6 RGB(227, 241, 246) RGBA(227, 241, 246, 1) activityBarBadge.foreground
#090909 RGB(9, 9, 9) RGBA(9, 9, 9, 1) editor.background
#FBFBFB RGB(251, 251, 251) RGBA(251, 251, 251, 1) editor.foreground
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) editor.inactiveSelectionBackground
#E7E8F2 RGB(231, 232, 242) RGBA(231, 232, 242, 1) editor.selectionBackground
#E7E8F2 RGB(231, 232, 242) RGBA(231, 232, 242, 1) editor.selectionHighlightBackground
#E7E8F2 RGB(231, 232, 242) RGBA(231, 232, 242, 1) editorIndentGuide.background
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) editorLineNumber.activeForeground
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) editorLineNumber.foreground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) list.activeSelectionBackground
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) list.focusOutline
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) sideBar.background
#FBFBFB RGB(251, 251, 251) RGBA(251, 251, 251, 1) sideBar.border
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) sideBarSectionHeader.background
#E3F1F6 RGB(227, 241, 246) RGBA(227, 241, 246, 1) statusBar.background
#FBFBFB RGB(251, 251, 251) RGBA(251, 251, 251, 1) statusBar.debuggingBackground
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) statusBar.foreground
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 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
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) comment.block
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) comment.block.documentation
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) comment.line
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) constant
#0782B1 RGB(7, 130, 177) RGBA(7, 130, 177, 1) constant.character
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) constant.character.escape
#0782B1 RGB(7, 130, 177) RGBA(7, 130, 177, 1) constant.numeric
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) constant.numeric.integer
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) constant.numeric.float
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) constant.numeric.hex
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) constant.numeric.octal
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) constant.other
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) constant.other.placeholder
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) entity
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) entity.name
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.class
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.function
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.method
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.namespace
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.section
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.selector
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.tag
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) entity.name.type
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.type.enum
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.type.interface
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.name.type.struct
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) entity.other
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) entity.other.attribute-name
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) entity.other.inherited-class
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) invalid
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) invalid.deprecated
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) invalid.illegal
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) keyword
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.control
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.control.flow
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.operator
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.operator.new
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.operator.assignment
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.operator.arithmetic
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.operator.logical
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) keyword.other
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) markup
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) markup.changed
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) markup.heading
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) markup.inserted
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) meta
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) meta.function-call
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) meta.tag
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) punctuation.definition.bracket
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) punctuation.definition.comment
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) punctuation.definition.string.begin
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) punctuation.definition.string.end
#669900 RGB(102, 153, 0) RGBA(102, 153, 0, 1) punctuation.separator
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) punctuation.separator.continuation
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) punctuation.terminator
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) storage
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) storage.modifier
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) storage.type
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.interpolated
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.other
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.quoted
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.quoted.double
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.quoted.other
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.quoted.single
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.quoted.triple
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.regexp
#0782B1 RGB(7, 130, 177) RGBA(7, 130, 177, 1) string.template
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) string.unquoted
#055472 RGB(5, 84, 114) RGBA(5, 84, 114, 1) support
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) support.class
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) support.constant
#981D15 RGB(152, 29, 21) RGBA(152, 29, 21, 1) support.function
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) support.other
#93939E RGB(147, 147, 158) RGBA(147, 147, 158, 1) support.type
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) support.type.primitive
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) support.type.property-name
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) variable
#0782B1 RGB(7, 130, 177) RGBA(7, 130, 177, 1) variable.function
#CA473F RGB(202, 71, 63) RGBA(202, 71, 63, 1) variable.language
#0782B1 RGB(7, 130, 177) RGBA(7, 130, 177, 1) variable.other
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) variable.other.constant
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) variable.other.property
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1) variable.other.readwrite
#090910 RGB(9, 9, 16) RGBA(9, 9, 16, 1)