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
Atom One Light
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
#A0A1A7 RGB(160, 161, 167) RGBA(160, 161, 167, 1) comment.block
#A0A1A7 RGB(160, 161, 167) RGBA(160, 161, 167, 1) comment.block.documentation
#A0A1A7 RGB(160, 161, 167) RGBA(160, 161, 167, 1) comment.line
#A0A1A7 RGB(160, 161, 167) RGBA(160, 161, 167, 1) constant
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.character
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.character.escape
#0184BC RGB(1, 132, 188) RGBA(1, 132, 188, 1) constant.numeric
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.numeric.integer
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.numeric.float
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.numeric.hex
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.numeric.octal
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.other
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.other.placeholder
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.regexp
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) constant.rgb-value
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) entity
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name.class
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) entity.name.function
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name.method
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name.namespace
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name.section
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name.selector
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.name.tag
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) entity.name.type
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) entity.name.type.enum
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) entity.name.type.interface
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) entity.name.type.struct
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) entity.other
#4078F2 RGB(64, 120, 242) RGBA(64, 120, 242, 1) entity.other.attribute-name
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) entity.other.inherited-class
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) invalid
RED — — invalid.deprecated
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) invalid.illegal
RED — — keyword
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) keyword.control
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) keyword.control.flow
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) keyword.operator
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.operator.new
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) keyword.operator.assignment
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.operator.arithmetic
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.operator.logical
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.other
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) markup
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) markup.bold
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) markup.changed
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) markup.deleted
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) markup.heading
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) markup.inserted
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) markup.italic
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) markup.quote
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) markup.raw
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) meta
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) meta.class
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) meta.selector
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) meta.tag
#383A42 RGB(56, 58, 66) RGBA(56, 58, 66, 1) punctuation.definition.bracket
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.definition.comment
#A0A1A7 RGB(160, 161, 167) RGBA(160, 161, 167, 1) punctuation.definition.string.begin
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.definition.string.end
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.separator
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) punctuation.separator.continuation
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) punctuation.terminator
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) storage
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) storage.modifier
#A626A4 RGB(166, 38, 164) RGBA(166, 38, 164, 1) storage.type
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) string
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.interpolated
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.other
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.quoted
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.quoted.double
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.quoted.other
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.quoted.single
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.quoted.triple
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.regexp
#0184BC RGB(1, 132, 188) RGBA(1, 132, 188, 1) string.template
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) string.unquoted
#50A14F RGB(80, 161, 79) RGBA(80, 161, 79, 1) support
#383A42 RGB(56, 58, 66) RGBA(56, 58, 66, 1) support.class
#C18401 RGB(193, 132, 1) RGBA(193, 132, 1, 1) support.constant
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1) support.function
#0184BC RGB(1, 132, 188) RGBA(1, 132, 188, 1) support.type
#0184BC RGB(1, 132, 188) RGBA(1, 132, 188, 1) support.type.primitive
#0184BC RGB(1, 132, 188) RGBA(1, 132, 188, 1) support.type.property-name
#383A42 RGB(56, 58, 66) RGBA(56, 58, 66, 1) support.variable
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.function
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.language
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.name
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.other
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.other.constant
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.other.property
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.other.readwrite
#E45649 RGB(228, 86, 73) RGBA(228, 86, 73, 1) variable.parameter
#986801 RGB(152, 104, 1) RGBA(152, 104, 1, 1)