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
CobaltPositron-Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) activityBarBadge.background
#1478DB RGB(20, 120, 219) RGBA(20, 120, 219, 1) editor.background
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorGroupHeader.tabsBackground
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) editorHoverWidget.background
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) editorHoverWidget.border
#1478DB RGB(20, 120, 219) RGBA(20, 120, 219, 1) sideBar.background
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#013664 RGB(1, 54, 100) RGBA(1, 54, 100, 1) tab.activeBackground
#013664 RGB(1, 54, 100) RGBA(1, 54, 100, 1) tab.activeForeground
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) tab.inactiveBackground
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) tab.inactiveForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) textLink.foreground
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) titleBar.activeBackground
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 1) walkThrough.embeddedEditorBackground
#002240 RGB(0, 34, 64) RGBA(0, 34, 64, 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
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) comment.block
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) comment.block.documentation
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) comment.line
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) constant
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) constant.numeric
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) constant.numeric.integer
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) constant.numeric.float
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) constant.numeric.hex
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) constant.numeric.octal
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) constant.other
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) constant.other.placeholder
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) entity
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) entity.name
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.class
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.function
#FFB054 RGB(255, 176, 84) RGBA(255, 176, 84, 1) entity.name.method
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.namespace
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.section
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.selector
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.tag
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) entity.name.type
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.type.enum
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.type.interface
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.name.type.struct
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) entity.other
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) entity.other.attribute-name
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) invalid
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) invalid.deprecated
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) invalid.illegal
#F8F8F8 RGB(248, 248, 248) RGBA(248, 248, 248, 1) keyword
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) keyword.control
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) keyword.control.flow
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) keyword.operator
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) keyword.operator.new
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) keyword.operator.assignment
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) keyword.operator.arithmetic
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) keyword.operator.logical
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) keyword.other
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) markup
#C8E4FD RGB(200, 228, 253) RGBA(200, 228, 253, 1) markup.deleted
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) markup.heading
#C8E4FD RGB(200, 228, 253) RGBA(200, 228, 253, 1) meta
#FFB054 RGB(255, 176, 84) RGBA(255, 176, 84, 1) meta.function-call
#FFB054 RGB(255, 176, 84) RGBA(255, 176, 84, 1) meta.tag
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) punctuation.definition.bracket
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) punctuation.definition.comment
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) punctuation.definition.string.begin
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) punctuation.definition.string.end
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) punctuation.separator
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) punctuation.separator.continuation
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) punctuation.terminator
#BED6FF RGB(190, 214, 255) RGBA(190, 214, 255, 1) storage
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) storage.modifier
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) storage.type
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) string
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.interpolated
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.other
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.quoted
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.quoted.double
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.quoted.other
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.quoted.single
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.quoted.triple
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.regexp
#80FFC2 RGB(128, 255, 194) RGBA(128, 255, 194, 1) string.template
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) string.unquoted
#3AD900 RGB(58, 217, 0) RGBA(58, 217, 0, 1) support
#FF9D00 RGB(255, 157, 0) RGBA(255, 157, 0, 1) support.class
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) support.constant
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1) support.function
#FFB054 RGB(255, 176, 84) RGBA(255, 176, 84, 1) support.other
#80FFBB RGB(128, 255, 187) RGBA(128, 255, 187, 1) support.type
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) support.type.primitive
#FFDD00 RGB(255, 221, 0) RGBA(255, 221, 0, 1) support.type.property-name
#80FFBB RGB(128, 255, 187) RGBA(128, 255, 187, 1) variable
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.function
#FFB054 RGB(255, 176, 84) RGBA(255, 176, 84, 1) variable.language
#FF80E1 RGB(255, 128, 225) RGBA(255, 128, 225, 1) variable.name
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other.constant
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other.property
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other.readwrite
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.parameter
#FF628C RGB(255, 98, 140) RGBA(255, 98, 140, 1)