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
summercode colors
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#528BFF RGB(82, 139, 255) RGBA(82, 139, 255, 1) editor.background
#1E1E2F RGB(30, 30, 47) RGBA(30, 30, 47, 1) editor.foreground
#DCDFE4 RGB(220, 223, 228) RGBA(220, 223, 228, 1) sideBarTitle.foreground
#A0A4B8 RGB(160, 164, 184) RGBA(160, 164, 184, 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
#6C7580 RGB(108, 117, 128) RGBA(108, 117, 128, 1) comment.block
#6C7580 RGB(108, 117, 128) RGBA(108, 117, 128, 1) comment.block.documentation
#6C7580 RGB(108, 117, 128) RGBA(108, 117, 128, 1) comment.line
#6C7580 RGB(108, 117, 128) RGBA(108, 117, 128, 1) constant
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) constant.character
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) constant.character.escape
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) constant.numeric
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) constant.numeric.integer
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) constant.numeric.float
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) constant.numeric.hex
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) constant.numeric.octal
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) constant.other
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) constant.other.placeholder
#DCDFE4 RGB(220, 223, 228) RGBA(220, 223, 228, 1) entity
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.class
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.function
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity.name.method
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.namespace
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.section
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.selector
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.tag
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) entity.name.type
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.type.enum
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.type.interface
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.name.type.struct
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.other
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.other.attribute-name
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) entity.other.inherited-class
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) invalid
#FF6F91 RGB(255, 111, 145) RGBA(255, 111, 145, 1) invalid.deprecated
#FF6F91 RGB(255, 111, 145) RGBA(255, 111, 145, 1) invalid.illegal
#FF6F91 RGB(255, 111, 145) RGBA(255, 111, 145, 1) keyword
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) keyword.control
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.control.flow
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.operator
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) keyword.operator.new
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) keyword.operator.assignment
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) keyword.operator.arithmetic
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) keyword.operator.logical
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) keyword.other
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) markup
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) markup.changed
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) markup.deleted
#FF6F91 RGB(255, 111, 145) RGBA(255, 111, 145, 1) markup.heading
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) markup.inserted
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) meta
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) meta.function-call
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) meta.tag
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.bracket
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.comment
#6C7580 RGB(108, 117, 128) RGBA(108, 117, 128, 1) punctuation.definition.string.begin
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.string.end
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.separator
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.separator.continuation
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.terminator
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) storage
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) storage.modifier
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) storage.type
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) string
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.interpolated
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.other
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.quoted
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.quoted.double
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.quoted.other
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.quoted.single
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.quoted.triple
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.regexp
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) string.template
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) string.unquoted
#50FA7B RGB(80, 250, 123) RGBA(80, 250, 123, 1) support
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.class
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) support.constant
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1) support.function
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.other
#F1FA8C RGB(241, 250, 140) RGBA(241, 250, 140, 1) support.type
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.primitive
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) support.type.property-name
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable
#DCDFE4 RGB(220, 223, 228) RGBA(220, 223, 228, 1) variable.function
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable.language
#BD93F9 RGB(189, 147, 249) RGBA(189, 147, 249, 1) variable.name
#DCDFE4 RGB(220, 223, 228) RGBA(220, 223, 228, 1) variable.other
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.other.constant
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.other.property
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) variable.other.readwrite
#FF79C6 RGB(255, 121, 198) RGBA(255, 121, 198, 1) variable.parameter
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1)