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
Nordic Vibes
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#101010 RGB(16, 16, 16) RGBA(16, 16, 16, 1) activityBarBadge.background
#0E68B2 RGB(14, 104, 178) RGBA(14, 104, 178, 1) button.background
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) button.foreground
#1B1B1B RGB(27, 27, 27) RGBA(27, 27, 27, 1) editor.background
#0A0A0B RGB(10, 10, 11) RGBA(10, 10, 11, 1) editor.foreground
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) focusBorder
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) foreground
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) icon.foreground
#4A9644 RGB(74, 150, 68) RGBA(74, 150, 68, 1) sideBar.background
#101010 RGB(16, 16, 16) RGBA(16, 16, 16, 1) sideBar.dropBackground
#BEACAC RGB(190, 172, 172) RGBA(190, 172, 172, 1) sideBar.foreground
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) sideBarSectionHeader.background
#71E6BF RGB(113, 230, 191) RGBA(113, 230, 191, 1) sideBarSectionHeader.border
#04583C RGB(4, 88, 60) RGBA(4, 88, 60, 1) sideBarSectionHeader.foreground
#0A0A0B RGB(10, 10, 11) RGBA(10, 10, 11, 1) sideBarTitle.foreground
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) tab.activeBackground
#030303 RGB(3, 3, 3) RGBA(3, 3, 3, 1) tab.activeBorder
#5CDEB2 RGB(92, 222, 178) RGBA(92, 222, 178, 1) tab.activeForeground
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) tab.inactiveBackground
#2D2D2D RGB(45, 45, 45) RGBA(45, 45, 45, 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
#335F73 RGB(51, 95, 115) RGBA(51, 95, 115, 1) comment.block
#335F73 RGB(51, 95, 115) RGBA(51, 95, 115, 1) comment.block.documentation
#335F73 RGB(51, 95, 115) RGBA(51, 95, 115, 1) comment.line
#335F73 RGB(51, 95, 115) RGBA(51, 95, 115, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) constant.numeric.integer
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) constant.numeric.float
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) constant.numeric.hex
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) constant.numeric.octal
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#1BFFB3 RGB(27, 255, 179) RGBA(27, 255, 179, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#B9FFCC RGB(185, 255, 204) RGBA(185, 255, 204, 1) entity.other.attribute-name
#E5CC9E RGB(229, 204, 158) RGBA(229, 204, 158, 1) entity.other.inherited-class
#11BC4D RGB(17, 188, 77) RGBA(17, 188, 77, 1) invalid
#3F1A20 RGB(63, 26, 32) RGBA(63, 26, 32, 1) invalid.deprecated
#3F1A20 RGB(63, 26, 32) RGBA(63, 26, 32, 1) invalid.illegal
#3F1A20 RGB(63, 26, 32) RGBA(63, 26, 32, 1) keyword
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) keyword.operator.new
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) keyword.operator.assignment
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) keyword.operator.arithmetic
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) keyword.operator.logical
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) keyword.other
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#722AA2 RGB(114, 42, 162) RGBA(114, 42, 162, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#11BC4D RGB(17, 188, 77) RGBA(17, 188, 77, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) meta.tag
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.bracket
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.comment
#335F73 RGB(51, 95, 115) RGBA(51, 95, 115, 1) punctuation.definition.string.begin
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.string.end
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator.continuation
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.terminator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) storage.modifier
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) storage.type
#AA99EB RGB(170, 153, 235) RGBA(170, 153, 235, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#917747 RGB(145, 119, 71) RGBA(145, 119, 71, 1) support.constant
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1) support.function
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) support.other
#917747 RGB(145, 119, 71) RGBA(145, 119, 71, 1) support.type
#E4EFF4 RGB(228, 239, 244) RGBA(228, 239, 244, 1) support.type.primitive
#E4EFF4 RGB(228, 239, 244) RGBA(228, 239, 244, 1) support.type.property-name
#11BC4D RGB(17, 188, 77) RGBA(17, 188, 77, 1) variable
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) variable.function
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) variable.language
#B88D95 RGB(184, 141, 149) RGBA(184, 141, 149, 1) variable.name
#7CDEBE RGB(124, 222, 190) RGBA(124, 222, 190, 1) variable.other
#95C8FB RGB(149, 200, 251) RGBA(149, 200, 251, 1) variable.other.constant
#95C8FB RGB(149, 200, 251) RGBA(149, 200, 251, 1) variable.other.property
#95C8FB RGB(149, 200, 251) RGBA(149, 200, 251, 1) variable.other.readwrite
#95C8FB RGB(149, 200, 251) RGBA(149, 200, 251, 1) variable.parameter
#59BFE8 RGB(89, 191, 232) RGBA(89, 191, 232, 1)