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
Dark C++ Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#1E201A RGB(30, 32, 26) RGBA(30, 32, 26, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) editorError.foreground
#B8082EAF RGB(184, 8, 46) RGBA(184, 8, 46, 0.686) editorWarning.foreground
#FF8800AF RGB(255, 136, 0) RGBA(255, 136, 0, 0.686) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#791515 RGB(121, 21, 21) RGBA(121, 21, 21, 1) statusBar.foreground
#F2F3F5 RGB(242, 243, 245) RGBA(242, 243, 245, 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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) constant.numeric
#D85FA7 RGB(216, 95, 167) RGBA(216, 95, 167, 1) constant.numeric.integer
#D85FA7 RGB(216, 95, 167) RGBA(216, 95, 167, 1) constant.numeric.float
#D85FA7 RGB(216, 95, 167) RGBA(216, 95, 167, 1) constant.numeric.hex
#D85FA7 RGB(216, 95, 167) RGBA(216, 95, 167, 1) constant.numeric.octal
#D85FA7 RGB(216, 95, 167) RGBA(216, 95, 167, 1) constant.other
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.other.placeholder
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) entity
#287DDD RGB(40, 125, 221) RGBA(40, 125, 221, 1) entity.name
#287DDD RGB(40, 125, 221) RGBA(40, 125, 221, 1) entity.name.class
#E9C70A RGB(233, 199, 10) RGBA(233, 199, 10, 1) entity.name.function
#D37D04 RGB(211, 125, 4) RGBA(211, 125, 4, 1) entity.name.namespace
#CED128 RGB(206, 209, 40) RGBA(206, 209, 40, 1) entity.name.tag
#287DDD RGB(40, 125, 221) RGBA(40, 125, 221, 1) entity.name.type
#E9C70A RGB(233, 199, 10) RGBA(233, 199, 10, 1) entity.name.type.enum
#E9C70A RGB(233, 199, 10) RGBA(233, 199, 10, 1) entity.name.type.interface
#E9C70A RGB(233, 199, 10) RGBA(233, 199, 10, 1) entity.name.type.struct
#E9C70A RGB(233, 199, 10) RGBA(233, 199, 10, 1) entity.other
#54A5A5 RGB(84, 165, 165) RGBA(84, 165, 165, 1) entity.other.attribute-name
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.other.inherited-class
#FF6D90 RGB(255, 109, 144) RGBA(255, 109, 144, 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
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) keyword.control
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) keyword.control.flow
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) keyword.operator
#E6E5E2 RGB(230, 229, 226) RGBA(230, 229, 226, 1) keyword.operator.new
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) keyword.operator.assignment
#E6E5E2 RGB(230, 229, 226) RGBA(230, 229, 226, 1) keyword.operator.arithmetic
#E6E5E2 RGB(230, 229, 226) RGBA(230, 229, 226, 1) keyword.operator.logical
#E6E5E2 RGB(230, 229, 226) RGBA(230, 229, 226, 1) keyword.other
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) markup
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) markup.changed
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) markup.deleted
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) markup.heading
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) markup.inserted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.quote
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.raw
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) markup.underline
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) markup.underline.link
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) meta
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) meta.preprocessor
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) punctuation.definition.comment
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.separator
#E6E5E2 RGB(230, 229, 226) RGBA(230, 229, 226, 1) storage
#FF6D90 RGB(255, 109, 144) RGBA(255, 109, 144, 1) storage.modifier
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) storage.type
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) string
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.interpolated
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.other
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.quoted
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.quoted.double
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.quoted.other
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.quoted.single
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.quoted.triple
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.regexp
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.template
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) string.unquoted
#E44038 RGB(228, 64, 56) RGBA(228, 64, 56, 1) support
#D47035 RGB(212, 112, 53) RGBA(212, 112, 53, 1) support.class
#E9C70A RGB(233, 199, 10) RGBA(233, 199, 10, 1) support.constant
#D47035 RGB(212, 112, 53) RGBA(212, 112, 53, 1) support.function
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) support.type
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type.property-name
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) variable
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) variable.language
#F32973 RGB(243, 41, 115) RGBA(243, 41, 115, 1) variable.other
#20A1B3 RGB(32, 161, 179) RGBA(32, 161, 179, 1) variable.other.constant
#20A1B3 RGB(32, 161, 179) RGBA(32, 161, 179, 1) variable.other.property
#2EB436 RGB(46, 180, 54) RGBA(46, 180, 54, 1) variable.other.readwrite
#20A1B3 RGB(32, 161, 179) RGBA(32, 161, 179, 1) variable.parameter
#408080 RGB(64, 128, 128) RGBA(64, 128, 128, 1)