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
cleanslate
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#C55C5C RGB(197, 92, 92) RGBA(197, 92, 92, 1) editor.background
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) editor.foreground
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) gitDecoration.addedResourceForeground
#81A584 RGB(129, 165, 132) RGBA(129, 165, 132, 1) gitDecoration.conflictingResourceForeground
#AA93A1 RGB(170, 147, 161) RGBA(170, 147, 161, 1) gitDecoration.deletedResourceForeground
#C55C5C RGB(197, 92, 92) RGBA(197, 92, 92, 1) gitDecoration.ignoredResourceForeground
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) gitDecoration.modifiedResourceForeground
#CEAB6F RGB(206, 171, 111) RGBA(206, 171, 111, 1) gitDecoration.stageDeletedResourceForeground
#C55C5C RGB(197, 92, 92) RGBA(197, 92, 92, 1) gitDecoration.stageModifiedResourceForeground
#CEAB6F RGB(206, 171, 111) RGBA(206, 171, 111, 1) gitDecoration.untrackedResourceForeground
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#81A584 RGB(129, 165, 132) RGBA(129, 165, 132, 1) comment.block
#81A584 RGB(129, 165, 132) RGBA(129, 165, 132, 1) comment.block.documentation
#81A584 RGB(129, 165, 132) RGBA(129, 165, 132, 1) comment.line
#81A584 RGB(129, 165, 132) RGBA(129, 165, 132, 1) constant
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.character
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.character.escape
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.numeric
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.numeric.integer
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.numeric.float
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.numeric.hex
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.numeric.octal
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.other
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.other.placeholder
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.regexp
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.rgb-value
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) entity
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) entity.name
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) entity.name.class
#DFCB94 RGB(223, 203, 148) RGBA(223, 203, 148, 1) entity.name.function
#DFCB94 RGB(223, 203, 148) RGBA(223, 203, 148, 1) entity.name.tag
#8D5576 RGB(141, 85, 118) RGBA(141, 85, 118, 1) entity.name.type
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) entity.name.type.enum
#DFCB94 RGB(223, 203, 148) RGBA(223, 203, 148, 1) entity.name.type.interface
#DFCB94 RGB(223, 203, 148) RGBA(223, 203, 148, 1) entity.other
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) entity.other.attribute-name
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) keyword
#4D4058 RGB(77, 64, 88) RGBA(77, 64, 88, 1) keyword.control
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) keyword.control.flow
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) keyword.operator
#4D4058 RGB(77, 64, 88) RGBA(77, 64, 88, 1) keyword.operator.new
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) keyword.operator.assignment
#4D4058 RGB(77, 64, 88) RGBA(77, 64, 88, 1) keyword.operator.arithmetic
#B3A28D RGB(179, 162, 141) RGBA(179, 162, 141, 1) keyword.operator.logical
#B3A28D RGB(179, 162, 141) RGBA(179, 162, 141, 1) keyword.other
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) markup
#DFCB94 RGB(223, 203, 148) RGBA(223, 203, 148, 1) markup.heading
#DFCB94 RGB(223, 203, 148) RGBA(223, 203, 148, 1) meta
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) meta.function
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) meta.function-call
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) meta.tag
#A3937E RGB(163, 147, 126) RGBA(163, 147, 126, 1) meta.type.annotation
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) meta.type
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) punctuation.definition.bracket
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) punctuation.definition.comment
#81A584 RGB(129, 165, 132) RGBA(129, 165, 132, 1) punctuation.definition.string.begin
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) punctuation.definition.string.end
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) punctuation.separator
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) punctuation.separator.continuation
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) punctuation.terminator
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) storage
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) storage.modifier
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) storage.type
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.interpolated
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.other
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.quoted
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.quoted.double
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.quoted.other
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.quoted.single
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.quoted.triple
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.regexp
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.template
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) string.unquoted
#DB9482 RGB(219, 148, 130) RGBA(219, 148, 130, 1) support
#AA93A1 RGB(170, 147, 161) RGBA(170, 147, 161, 1) support.class
#AA93A1 RGB(170, 147, 161) RGBA(170, 147, 161, 1) support.constant
#C55C5C RGB(197, 92, 92) RGBA(197, 92, 92, 1) support.function
#8EB2CA RGB(142, 178, 202) RGBA(142, 178, 202, 1) support.type
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) support.type.primitive
#B1A6C2 RGB(177, 166, 194) RGBA(177, 166, 194, 1) support.type.property-name
#CEAB6F RGB(206, 171, 111) RGBA(206, 171, 111, 1) variable
#8D5576 RGB(141, 85, 118) RGBA(141, 85, 118, 1) variable.language
#8D5576 RGB(141, 85, 118) RGBA(141, 85, 118, 1) variable.other
#A3937E RGB(163, 147, 126) RGBA(163, 147, 126, 1) variable.other.constant
#A3937E RGB(163, 147, 126) RGBA(163, 147, 126, 1) variable.other.property
#A3937E RGB(163, 147, 126) RGBA(163, 147, 126, 1) variable.other.readwrite
#A3937E RGB(163, 147, 126) RGBA(163, 147, 126, 1) variable.parameter
#CEAB6F RGB(206, 171, 111) RGBA(206, 171, 111, 1)