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
greenery
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) activityBar.border
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) activityBar.foreground
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) activityBarBadge.background
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) editor.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) editor.findMatchBackground
#EBC17A33 RGB(235, 193, 122) RGBA(235, 193, 122, 0.2) editor.findMatchHighlightBackground
#AFDF6333 RGB(175, 223, 99) RGBA(175, 223, 99, 0.2) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.selectionBackground
#83A06C33 RGB(131, 160, 108) RGBA(131, 160, 108, 0.2) editor.wordHighlightBackground
#83A06C33 RGB(131, 160, 108) RGBA(131, 160, 108, 0.2) editorGroupHeader.tabsBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) editorLineNumber.foreground
#41463D RGB(65, 70, 61) RGBA(65, 70, 61, 1) gitDecoration.conflictingResourceForeground
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) gitDecoration.deletedResourceForeground
#BB90D8 RGB(187, 144, 216) RGBA(187, 144, 216, 1) gitDecoration.ignoredResourceForeground
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) gitDecoration.modifiedResourceForeground
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) gitDecoration.untrackedResourceForeground
#769BAA RGB(118, 155, 170) RGBA(118, 155, 170, 1) sideBar.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) sideBarSectionHeader.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) sideBarTitle.foreground
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) statusBar.background
#4C5C3F RGB(76, 92, 63) RGBA(76, 92, 63, 1) statusBar.debuggingBackground
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) statusBar.debuggingForeground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) statusBar.noFolderBackground
#4C5C3F RGB(76, 92, 63) RGBA(76, 92, 63, 1) tab.activeBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.activeBorder
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) tab.border
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) tab.hoverBackground
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) tab.inactiveBackground
#1C1D1C RGB(28, 29, 28) RGBA(28, 29, 28, 1) titleBar.activeBackground
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 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
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) comment.block
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) comment.block.documentation
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) comment.line
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) constant
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) constant.character
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) constant.character.escape
#9AC2BE RGB(154, 194, 190) RGBA(154, 194, 190, 1) constant.numeric
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) constant.numeric.integer
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) constant.numeric.float
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) constant.numeric.hex
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) constant.numeric.octal
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) constant.other
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) constant.other.placeholder
#E1F3E7 RGB(225, 243, 231) RGBA(225, 243, 231, 1) entity
#8EAC74 RGB(142, 172, 116) RGBA(142, 172, 116, 1) entity.name
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.class
#B06698 RGB(176, 102, 152) RGBA(176, 102, 152, 1) entity.name.function
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) entity.name.method
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.namespace
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.section
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.selector
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.tag
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.type
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.type.enum
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.type.interface
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.name.type.struct
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) entity.other
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) entity.other.attribute-name
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) entity.other.inherited-class
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) invalid
#F7442D RGB(247, 68, 45) RGBA(247, 68, 45, 1) invalid.deprecated
#F7442D RGB(247, 68, 45) RGBA(247, 68, 45, 1) invalid.illegal
#F7442D RGB(247, 68, 45) RGBA(247, 68, 45, 1) keyword
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) keyword.control
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) keyword.control.flow
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) keyword.operator
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) keyword.operator.new
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) keyword.operator.assignment
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) keyword.operator.arithmetic
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) keyword.operator.logical
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) keyword.other
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) markup
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) markup.bold
#9AC2BE RGB(154, 194, 190) RGBA(154, 194, 190, 1) markup.changed
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) markup.heading
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) markup.inserted
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) markup.italic
#9AC2BE RGB(154, 194, 190) RGBA(154, 194, 190, 1) markup.underline
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) markup.underline.link
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) meta
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) meta.class
#B06698 RGB(176, 102, 152) RGBA(176, 102, 152, 1) meta.function
#769BAA RGB(118, 155, 170) RGBA(118, 155, 170, 1) meta.function-call
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) meta.tag
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) punctuation.definition.bracket
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) punctuation.definition.comment
#4E5350 RGB(78, 83, 80) RGBA(78, 83, 80, 1) punctuation.definition.string.begin
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) punctuation.definition.string.end
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) punctuation.separator
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) punctuation.separator.continuation
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) punctuation.terminator
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) storage
#667C55 RGB(102, 124, 85) RGBA(102, 124, 85, 1) storage.modifier
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) storage.type
#83A06C RGB(131, 160, 108) RGBA(131, 160, 108, 1) string
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.interpolated
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.other
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.quoted
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.quoted.double
#AFCAAF RGB(175, 202, 175) RGBA(175, 202, 175, 1) string.quoted.other
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.quoted.single
#AFCAAF RGB(175, 202, 175) RGBA(175, 202, 175, 1) string.quoted.triple
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.regexp
#9AC2BE RGB(154, 194, 190) RGBA(154, 194, 190, 1) string.template
#ADC586 RGB(173, 197, 134) RGBA(173, 197, 134, 1) string.unquoted
#E1F3E7 RGB(225, 243, 231) RGBA(225, 243, 231, 1) support
#9AC2BE RGB(154, 194, 190) RGBA(154, 194, 190, 1) support.class
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) support.constant
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) support.function
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) support.other
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) support.type
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) support.type.primitive
#C78547 RGB(199, 133, 71) RGBA(199, 133, 71, 1) support.type.property-name
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) variable
#E1F3E7 RGB(225, 243, 231) RGBA(225, 243, 231, 1) variable.function
#EBC17A RGB(235, 193, 122) RGBA(235, 193, 122, 1) variable.language
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.name
#E1F3E7 RGB(225, 243, 231) RGBA(225, 243, 231, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#E1F3E7 RGB(225, 243, 231) RGBA(225, 243, 231, 1) variable.parameter
#769BAA RGB(118, 155, 170) RGBA(118, 155, 170, 1)