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 Prism
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editor.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) editor.lineHighlightBackground
#333435 RGB(51, 52, 53) RGBA(51, 52, 53, 1) editor.selectionBackground
#5A647E RGB(90, 100, 126) RGBA(90, 100, 126, 1) editorCursor.foreground
#D9D9D9 RGB(217, 217, 217) RGBA(217, 217, 217, 1) editorWhitespace.foreground
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 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
#728375 RGB(114, 131, 117) RGBA(114, 131, 117, 1) comment.block
#728375 RGB(114, 131, 117) RGBA(114, 131, 117, 1) comment.block.documentation
#728375 RGB(114, 131, 117) RGBA(114, 131, 117, 1) comment.line
#728375 RGB(114, 131, 117) RGBA(114, 131, 117, 1) constant
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) constant.character
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) constant.character.escape
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) constant.numeric
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) constant.numeric.integer
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) constant.numeric.float
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) constant.numeric.hex
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) constant.numeric.octal
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) constant.other
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) constant.other.placeholder
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) constant.regexp
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) constant.rgb-value
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) entity
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) entity.name
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.class
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.function
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.method
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.namespace
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.section
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.selector
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.tag
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) entity.name.type
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.type.enum
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.type.interface
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.name.type.struct
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) entity.other
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) entity.other.attribute-name
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) invalid
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) invalid.deprecated
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) invalid.illegal
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) keyword.control
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) keyword.control.flow
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) keyword.operator
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) keyword.operator.new
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) keyword.operator.assignment
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) keyword.operator.arithmetic
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) keyword.operator.logical
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) keyword.other
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) markup
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) markup.deleted
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) markup.inline.raw
#E9B96D RGB(233, 185, 109) RGBA(233, 185, 109, 1) markup.inserted
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) meta
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) meta.class
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) meta.function
#E9B96D RGB(233, 185, 109) RGBA(233, 185, 109, 1) meta.function-call
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) meta.tag
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) storage
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) storage.modifier
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) storage.type
#CC7833 RGB(204, 120, 51) RGBA(204, 120, 51, 1) string
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.interpolated
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.other
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.quoted
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.quoted.double
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.quoted.other
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.quoted.single
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.quoted.triple
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.regexp
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.template
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) string.unquoted
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) support
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) support.constant
#80C874 RGB(128, 200, 116) RGBA(128, 200, 116, 1) support.function
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) support.type
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) support.type.primitive
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) support.type.property-name
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1) variable
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.language
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) variable.other
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) variable.other.constant
#EC5E82 RGB(236, 94, 130) RGBA(236, 94, 130, 1) variable.other.property
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) variable.other.readwrite
#AE81FF RGB(174, 129, 255) RGBA(174, 129, 255, 1) variable.parameter
#76AED8 RGB(118, 174, 216) RGBA(118, 174, 216, 1)