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
Xcode Syntax Civic
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
#51C34F RGB(81, 195, 79) RGBA(81, 195, 79, 1) comment.block
#51C34F RGB(81, 195, 79) RGBA(81, 195, 79, 1) comment.block.documentation
#51C34F RGB(81, 195, 79) RGBA(81, 195, 79, 1) comment.line
#51C34F RGB(81, 195, 79) RGBA(81, 195, 79, 1) constant
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) constant.character
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) constant.character.escape
#8486BA RGB(132, 134, 186) RGBA(132, 134, 186, 1) constant.numeric
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) constant.numeric.integer
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) constant.numeric.float
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) constant.numeric.hex
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) constant.numeric.octal
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) constant.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) constant.other.placeholder
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) entity
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) entity.name
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.class
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.function
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.method
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.namespace
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.section
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.selector
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.tag
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) entity.name.type
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.type.enum
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.type.interface
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.name.type.struct
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.other
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) entity.other.attribute-name
#8F84EC RGB(143, 132, 236) RGBA(143, 132, 236, 1) entity.other.inherited-class
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 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
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) keyword.operator.new
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) keyword.operator.assignment
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) keyword.operator.arithmetic
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) keyword.operator.logical
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) keyword.other
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) markup
#BDBDBD62 RGB(189, 189, 189) RGBA(189, 189, 189, 0.384) markup.bold
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 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
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) markup.quote
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) markup.raw
#45BB3E RGB(69, 187, 62) RGBA(69, 187, 62, 1) markup.underline
#8F84EC RGB(143, 132, 236) RGBA(143, 132, 236, 1) markup.underline.link
#8F84EC RGB(143, 132, 236) RGBA(143, 132, 236, 1) meta
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) meta.function
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) meta.function-call
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) meta.tag
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) punctuation.definition.comment
#51C34F RGB(81, 195, 79) RGBA(81, 195, 79, 1) punctuation.definition.string.begin
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) punctuation.definition.string.end
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) punctuation.separator
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) punctuation.terminator
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) storage
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) storage.modifier
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) storage.type
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) string
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.interpolated
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.other
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.quoted
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.quoted.double
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.quoted.other
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.quoted.single
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.quoted.triple
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.regexp
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) string.template
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) string.unquoted
#EC3D37 RGB(236, 61, 55) RGBA(236, 61, 55, 1) support
#34C9C6 RGB(52, 201, 198) RGBA(52, 201, 198, 1) support.class
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) support.constant
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) support.function
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) support.other
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) support.type
#8F84EC RGB(143, 132, 236) RGBA(143, 132, 236, 1) support.type.primitive
#8F84EC RGB(143, 132, 236) RGBA(143, 132, 236, 1) support.type.property-name
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) support.variable
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) variable
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) variable.function
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) variable.language
#E12DA0 RGB(225, 45, 160) RGBA(225, 45, 160, 1) variable.other
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) variable.other.property
#53B3B1 RGB(83, 179, 177) RGBA(83, 179, 177, 1) variable.other.readwrite
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1) variable.parameter
#E7E8EB RGB(231, 232, 235) RGBA(231, 232, 235, 1)