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
Stereokai Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#3D3D3D55 RGB(61, 61, 61) RGBA(61, 61, 61, 0.333) editor.selectionBackground
#474747 RGB(71, 71, 71) RGBA(71, 71, 71, 1) editorCursor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorWhitespace.foreground
#3B3A32 RGB(59, 58, 50) RGBA(59, 58, 50, 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
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) comment.block
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) comment.block.documentation
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) comment.line
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) constant
#529BFF RGB(82, 155, 255) RGBA(82, 155, 255, 1) constant.character
#529BFF RGB(82, 155, 255) RGBA(82, 155, 255, 1) constant.character.escape
#529BFF RGB(82, 155, 255) RGBA(82, 155, 255, 1) constant.numeric
#FB4D53 RGB(251, 77, 83) RGBA(251, 77, 83, 1) constant.numeric.integer
#FB4D53 RGB(251, 77, 83) RGBA(251, 77, 83, 1) constant.numeric.float
#FB4D53 RGB(251, 77, 83) RGBA(251, 77, 83, 1) constant.numeric.hex
#FB4D53 RGB(251, 77, 83) RGBA(251, 77, 83, 1) constant.numeric.octal
#FB4D53 RGB(251, 77, 83) RGBA(251, 77, 83, 1) constant.other
#529BFF RGB(82, 155, 255) RGBA(82, 155, 255, 1) constant.other.placeholder
#529BFF RGB(82, 155, 255) RGBA(82, 155, 255, 1) entity
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name.class
#D81DC3 RGB(216, 29, 195) RGBA(216, 29, 195, 1) entity.name.function
#CFCF19 RGB(207, 207, 25) RGBA(207, 207, 25, 1) entity.name.tag
#2AD2F7 RGB(42, 210, 247) RGBA(42, 210, 247, 1) entity.other
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.attribute-name
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.inherited-class
#D81DC3 RGB(216, 29, 195) RGBA(216, 29, 195, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.control
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.control.flow
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.operator
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.operator.new
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.operator.assignment
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.operator.arithmetic
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.operator.logical
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) keyword.other
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) markup
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.bold
#74FF79 RGB(116, 255, 121) RGBA(116, 255, 121, 1) markup.changed
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.deleted
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.heading
#F63BA3 RGB(246, 59, 163) RGBA(246, 59, 163, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.italic
#74FF79 RGB(116, 255, 121) RGBA(116, 255, 121, 1) markup.list
#2AD2F7 RGB(42, 210, 247) RGBA(42, 210, 247, 1) markup.list.unnumbered
#2AD2F7 RGB(42, 210, 247) RGBA(42, 210, 247, 1) markup.quote
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.raw
#CFCF19 RGB(207, 207, 25) RGBA(207, 207, 25, 1) markup.underline
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.underline.link
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) storage
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.modifier
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.type
#49CCED RGB(73, 204, 237) RGBA(73, 204, 237, 1) string
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.interpolated
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.other
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.quoted
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.quoted.double
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.quoted.other
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.quoted.single
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.quoted.triple
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.regexp
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.template
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) string.unquoted
#BCF558 RGB(188, 245, 88) RGBA(188, 245, 88, 1) support
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.language
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1)