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
Seti Modified
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
#455F69 RGB(69, 95, 105) RGBA(69, 95, 105, 1) comment.block
#455F69 RGB(69, 95, 105) RGBA(69, 95, 105, 1) comment.block.documentation
#455F69 RGB(69, 95, 105) RGBA(69, 95, 105, 1) comment.line
#455F69 RGB(69, 95, 105) RGBA(69, 95, 105, 1) constant
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.character
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.character.escape
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.numeric
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) constant.numeric.integer
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) constant.numeric.float
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) constant.numeric.hex
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) constant.numeric.octal
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) constant.other
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.other.placeholder
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.regexp
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.rgb-value
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) entity
#1CFF7B RGB(28, 255, 123) RGBA(28, 255, 123, 1) entity.name
#1CFF7B RGB(28, 255, 123) RGBA(28, 255, 123, 1) entity.name.function
#02AEFF RGB(2, 174, 255) RGBA(2, 174, 255, 1) entity.name.tag
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) entity.name.type
#02AEFF RGB(2, 174, 255) RGBA(2, 174, 255, 1) entity.name.type.interface
#02AEFF RGB(2, 174, 255) RGBA(2, 174, 255, 1) entity.other
#9FD0D8 RGB(159, 208, 216) RGBA(159, 208, 216, 1) entity.other.attribute-name
#FF5699 RGB(255, 86, 153) RGBA(255, 86, 153, 1) entity.other.inherited-class
#80FCFF RGB(128, 252, 255) RGBA(128, 252, 255, 1) invalid
#D3F0F5 RGB(211, 240, 245) RGBA(211, 240, 245, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#D3F0F5 RGB(211, 240, 245) RGBA(211, 240, 245, 1) keyword
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) keyword.control
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) keyword.control.flow
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) keyword.operator
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) keyword.operator.new
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) keyword.operator.assignment
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) keyword.operator.arithmetic
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) keyword.operator.logical
#1CFF7B RGB(28, 255, 123) RGBA(28, 255, 123, 1) keyword.other
#009FFF RGB(0, 159, 255) RGBA(0, 159, 255, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.bold
#13FFA3 RGB(19, 255, 163) RGBA(19, 255, 163, 1) markup.changed
#FBF704 RGB(251, 247, 4) RGBA(251, 247, 4, 1) markup.deleted
#F90504 RGB(249, 5, 4) RGBA(249, 5, 4, 1) markup.heading
#FDA100 RGB(253, 161, 0) RGBA(253, 161, 0, 1) markup.inserted
#21E209 RGB(33, 226, 9) RGBA(33, 226, 9, 1) markup.italic
#13FFA390 RGB(19, 255, 163) RGBA(19, 255, 163, 0.565) markup.list
#99CCCC RGB(153, 204, 204) RGBA(153, 204, 204, 1) markup.list.numbered
#99CCCC RGB(153, 204, 204) RGBA(153, 204, 204, 1) markup.list.unnumbered
#99CCCC RGB(153, 204, 204) RGBA(153, 204, 204, 1) markup.raw
#9FD0D8 RGB(159, 208, 216) RGBA(159, 208, 216, 1) markup.underline
#13FFA3 RGB(19, 255, 163) RGBA(19, 255, 163, 1) markup.underline.link
#13FFA3 RGB(19, 255, 163) RGBA(19, 255, 163, 1) meta
#D8F6FF RGB(216, 246, 255) RGBA(216, 246, 255, 1) meta.class
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) meta.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) meta.function-call
#10FF02 RGB(16, 255, 2) RGBA(16, 255, 2, 1) meta.selector
#FCCC2C RGB(252, 204, 44) RGBA(252, 204, 44, 1) meta.tag
#54B5DD RGB(84, 181, 221) RGBA(84, 181, 221, 1) punctuation.definition.bracket
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) punctuation.definition.comment
#455F69 RGB(69, 95, 105) RGBA(69, 95, 105, 1) punctuation.definition.string.begin
#02AEFF RGB(2, 174, 255) RGBA(2, 174, 255, 1) punctuation.definition.string.end
#02AEFF RGB(2, 174, 255) RGBA(2, 174, 255, 1) punctuation.separator
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) punctuation.separator.continuation
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) punctuation.terminator
#858D8A RGB(133, 141, 138) RGBA(133, 141, 138, 1) storage
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) storage.modifier
#276AFF RGB(39, 106, 255) RGBA(39, 106, 255, 1) storage.type
#FFD200 RGB(255, 210, 0) RGBA(255, 210, 0, 1) string
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.interpolated
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.other
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.quoted
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.quoted.double
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.quoted.other
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.quoted.single
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.quoted.triple
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.regexp
#95A5A6 RGB(149, 165, 166) RGBA(149, 165, 166, 1) string.template
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) string.unquoted
#66828E RGB(102, 130, 142) RGBA(102, 130, 142, 1) support
#AE08FF RGB(174, 8, 255) RGBA(174, 8, 255, 1) support.class
#A074C4 RGB(160, 116, 196) RGBA(160, 116, 196, 1) support.constant
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) support.function
#CD3F45 RGB(205, 63, 69) RGBA(205, 63, 69, 1) support.type
#FF1190 RGB(255, 17, 144) RGBA(255, 17, 144, 1) support.type.primitive
#FF1190 RGB(255, 17, 144) RGBA(255, 17, 144, 1) support.type.property-name
#FF1190 RGB(255, 17, 144) RGBA(255, 17, 144, 1) support.variable
#0A4AFF RGB(10, 74, 255) RGBA(10, 74, 255, 1) variable
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1) variable.function
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1) variable.language
#1CFF7B RGB(28, 255, 123) RGBA(28, 255, 123, 1) variable.name
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1) variable.other
#F0516F RGB(240, 81, 111) RGBA(240, 81, 111, 1) variable.other.constant
#FFA325 RGB(255, 163, 37) RGBA(255, 163, 37, 1) variable.other.property
#AA00AA RGB(170, 0, 170) RGBA(170, 0, 170, 1) variable.other.readwrite
#F0516F RGB(240, 81, 111) RGBA(240, 81, 111, 1) variable.parameter
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1)