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
Darcula (JB)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#0000001A RGB(0, 0, 0) RGBA(0, 0, 0, 0.102) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) badge.background
#0000001A RGB(0, 0, 0) RGBA(0, 0, 0, 0.102) editor.activeLineNumber.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) editor.background
#242424 RGB(36, 36, 36) RGBA(36, 36, 36, 1) editor.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) editor.lineHighlightBackground
#FFFFFF0B RGB(255, 255, 255) RGBA(255, 255, 255, 0.043) editor.selectionBackground
#204182CC RGB(32, 65, 130) RGBA(32, 65, 130, 0.8) editorBracketHighlight.foreground1
#C5B8A4 RGB(197, 184, 164) RGBA(197, 184, 164, 1) editorBracketHighlight.foreground2
#A49989 RGB(164, 153, 137) RGBA(164, 153, 137, 1) editorBracketHighlight.foreground3
#958B7C RGB(149, 139, 124) RGBA(149, 139, 124, 1) editorBracketHighlight.foreground4
#827A6D RGB(130, 122, 109) RGBA(130, 122, 109, 1) editorBracketHighlight.foreground5
#6A6358 RGB(106, 99, 88) RGBA(106, 99, 88, 1) editorGutter.background
#FFFFFF02 RGB(255, 255, 255) RGBA(255, 255, 255, 0.008) editorSuggestWidget.background
#303030 RGB(48, 48, 48) RGBA(48, 48, 48, 1) editorSuggestWidget.highlightForeground
#CC6E2F RGB(204, 110, 47) RGBA(204, 110, 47, 1) editorSuggestWidget.selectedBackground
#204182CC RGB(32, 65, 130) RGBA(32, 65, 130, 0.8) sideBar.background
#242424 RGB(36, 36, 36) RGBA(36, 36, 36, 1) sideBar.border
#FFFFFF00 RGB(255, 255, 255) RGBA(255, 255, 255, 0) statusBar.background
#0000001A RGB(0, 0, 0) RGBA(0, 0, 0, 0.102) statusBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) tab.activeBackground
#0000001A RGB(0, 0, 0) RGBA(0, 0, 0, 0.102) tab.activeBorder
#0C7D9D RGB(12, 125, 157) RGBA(12, 125, 157, 1) tab.inactiveBackground
#00000008 RGB(0, 0, 0) RGBA(0, 0, 0, 0.031) titleBar.activeBackground
#0000001A RGB(0, 0, 0) RGBA(0, 0, 0, 0.102) titleBar.activeForeground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) titleBar.inactiveBackground
#00000008 RGB(0, 0, 0) RGBA(0, 0, 0, 0.031)
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
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 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
#629755 RGB(98, 151, 85) RGBA(98, 151, 85, 1) constant
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.character
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.character.escape
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) constant.numeric
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) constant.numeric.integer
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) constant.numeric.float
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) constant.numeric.hex
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) constant.numeric.octal
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) constant.other
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) constant.other.placeholder
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) entity
#F23B7A RGB(242, 59, 122) RGBA(242, 59, 122, 1) entity.name
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.class
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.function
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.name.method
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.namespace
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.section
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.selector
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.tag
#F23B7A RGB(242, 59, 122) RGBA(242, 59, 122, 1) entity.name.type
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.name.type.enum
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.name.type.interface
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.name.type.struct
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) entity.other
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) entity.other.attribute-name
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) entity.other.inherited-class
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) invalid
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.deprecated
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.illegal
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) keyword.control
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) keyword.control.flow
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.operator
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.operator.new
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) keyword.operator.assignment
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword.operator.arithmetic
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword.operator.logical
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) keyword.other
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) markup
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.heading
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) markup.inline.raw
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) markup.quote
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) markup.raw
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) markup.underline
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) markup.underline.link
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) meta
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) meta.function
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) meta.function-call
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) meta.selector
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) meta.type.annotation
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) meta.type
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) punctuation.definition.bracket
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) punctuation.definition.comment
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) punctuation.definition.string.begin
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) punctuation.definition.string.end
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) punctuation.separator
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) punctuation.separator.continuation
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) punctuation.terminator
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) storage
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) storage.modifier
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) storage.type
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) string
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) string.interpolated
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) string.other
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) string.quoted
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.double
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.other
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.single
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.quoted.triple
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) string.unquoted
#287BDE RGB(40, 123, 222) RGBA(40, 123, 222, 1) support
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) support.class
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) support.constant
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) support.function
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) support.other
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) support.type
#8888C6 RGB(136, 136, 198) RGBA(136, 136, 198, 1) support.type.primitive
#7A9EC2 RGB(122, 158, 194) RGBA(122, 158, 194, 1) support.type.property-name
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) support.variable
#B200B2 RGB(178, 0, 178) RGBA(178, 0, 178, 1) variable
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) variable.language
#CC8242 RGB(204, 130, 66) RGBA(204, 130, 66, 1) variable.other
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) variable.other.constant
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) variable.other.property
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.readwrite
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) variable.parameter
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1)