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
clari-codes-theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#B94367 RGB(185, 67, 103) RGBA(185, 67, 103, 1) activityBarBadge.background
#10929B RGB(16, 146, 155) RGBA(16, 146, 155, 1) button.background
#B94367 RGB(185, 67, 103) RGBA(185, 67, 103, 1) editor.background
#1D1F20 RGB(29, 31, 32) RGBA(29, 31, 32, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.selectionBackground
#27DEEB5B RGB(39, 222, 235) RGBA(39, 222, 235, 0.357) editorRuler.foreground
#9E1158 RGB(158, 17, 88) RGBA(158, 17, 88, 1) list.activeSelectionBackground
#B9436691 RGB(185, 67, 102) RGBA(185, 67, 102, 0.569) sideBarTitle.foreground
#B94367 RGB(185, 67, 103) RGBA(185, 67, 103, 1) statusBar.background
#C76985 RGB(199, 105, 133) RGBA(199, 105, 133, 1) statusBar.debuggingBackground
#9E143D RGB(158, 20, 61) RGBA(158, 20, 61, 1) textLink.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) textLink.foreground
#D3849E RGB(211, 132, 158) RGBA(211, 132, 158, 1) titleBar.activeBackground
#232227 RGB(35, 34, 39) RGBA(35, 34, 39, 1) titleBar.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 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
#A09E9E RGB(160, 158, 158) RGBA(160, 158, 158, 1) comment.block
#A09E9E RGB(160, 158, 158) RGBA(160, 158, 158, 1) comment.block.documentation
#A09E9E RGB(160, 158, 158) RGBA(160, 158, 158, 1) comment.line
#A09E9E RGB(160, 158, 158) RGBA(160, 158, 158, 1) constant
#DDC9A4 RGB(221, 201, 164) RGBA(221, 201, 164, 1) constant.character
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) constant.numeric.integer
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) constant.numeric.float
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) constant.numeric.hex
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) constant.numeric.octal
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) constant.other
#DDC9A4 RGB(221, 201, 164) RGBA(221, 201, 164, 1) constant.other.placeholder
#E2DEA6 RGB(226, 222, 166) RGBA(226, 222, 166, 1) entity
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.class
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.function
#F0C4B3 RGB(240, 196, 179) RGBA(240, 196, 179, 1) entity.name.method
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.namespace
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.section
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.selector
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.tag
#C7ABDB RGB(199, 171, 219) RGBA(199, 171, 219, 1) entity.name.type
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.type.enum
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.type.interface
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.name.type.struct
#C0D4A2 RGB(192, 212, 162) RGBA(192, 212, 162, 1) entity.other
#E4CDA3 RGB(228, 205, 163) RGBA(228, 205, 163, 1) entity.other.attribute-name
#E4CDA3 RGB(228, 205, 163) RGBA(228, 205, 163, 1) entity.other.inherited-class
#D86E8E RGB(216, 110, 142) RGBA(216, 110, 142, 1) invalid
#8D2839 RGB(141, 40, 57) RGBA(141, 40, 57, 1) invalid.deprecated
#8D2839 RGB(141, 40, 57) RGBA(141, 40, 57, 1) invalid.illegal
#8D2839 RGB(141, 40, 57) RGBA(141, 40, 57, 1) keyword
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) keyword.control
#A2B3D8 RGB(162, 179, 216) RGBA(162, 179, 216, 1) keyword.control.flow
#A2B3D8 RGB(162, 179, 216) RGBA(162, 179, 216, 1) keyword.operator
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) keyword.operator.new
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) keyword.operator.assignment
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) keyword.operator.arithmetic
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) keyword.operator.logical
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) keyword.other
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) markup.changed
#788CC7 RGB(120, 140, 199) RGBA(120, 140, 199, 1) markup.deleted
#D83F58 RGB(216, 63, 88) RGBA(216, 63, 88, 1) markup.heading
#D86E8E RGB(216, 110, 142) RGBA(216, 110, 142, 1) markup.inline.raw
#B89BCC RGB(184, 155, 204) RGBA(184, 155, 204, 1) markup.inserted
#BDDA92 RGB(189, 218, 146) RGBA(189, 218, 146, 1) markup.italic
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#E0B1A3 RGB(224, 177, 163) RGBA(224, 177, 163, 1) markup.underline.link
#E0B1A3 RGB(224, 177, 163) RGBA(224, 177, 163, 1) meta
#355A77 RGB(53, 90, 119) RGBA(53, 90, 119, 1) meta.function-call
#F0C4B3 RGB(240, 196, 179) RGBA(240, 196, 179, 1) meta.tag
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) punctuation.definition.bracket
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) punctuation.definition.comment
#A09E9E RGB(160, 158, 158) RGBA(160, 158, 158, 1) punctuation.definition.string.begin
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) punctuation.definition.string.end
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) punctuation.separator
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) punctuation.separator.continuation
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) punctuation.terminator
#E2B8C6 RGB(226, 184, 198) RGBA(226, 184, 198, 1) storage
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) storage.modifier
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) storage.type
#8BC6DD RGB(139, 198, 221) RGBA(139, 198, 221, 1) string
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.interpolated
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.other
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.quoted
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.quoted.double
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.quoted.other
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.quoted.single
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.quoted.triple
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.regexp
#94CEE6 RGB(148, 206, 230) RGBA(148, 206, 230, 1) string.template
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) string.unquoted
#CEAFB0 RGB(206, 175, 176) RGBA(206, 175, 176, 1) support
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.class
#9EC29D RGB(158, 194, 157) RGBA(158, 194, 157, 1) support.constant
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1) support.function
#F0C4B3 RGB(240, 196, 179) RGBA(240, 196, 179, 1) support.other
#9DD6A2 RGB(157, 214, 162) RGBA(157, 214, 162, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#CEBBF1 RGB(206, 187, 241) RGBA(206, 187, 241, 1) variable
#E2DEA6 RGB(226, 222, 166) RGBA(226, 222, 166, 1) variable.function
#F0C4B3 RGB(240, 196, 179) RGBA(240, 196, 179, 1) variable.language
#B5CFDF RGB(181, 207, 223) RGBA(181, 207, 223, 1) variable.name
#E2DEA6 RGB(226, 222, 166) RGBA(226, 222, 166, 1) variable.other
#C398C9 RGB(195, 152, 201) RGBA(195, 152, 201, 1) variable.other.constant
#C398C9 RGB(195, 152, 201) RGBA(195, 152, 201, 1) variable.other.property
#C398C9 RGB(195, 152, 201) RGBA(195, 152, 201, 1) variable.other.readwrite
#C398C9 RGB(195, 152, 201) RGBA(195, 152, 201, 1) variable.parameter
#CEC787 RGB(206, 199, 135) RGBA(206, 199, 135, 1)