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
yosoygroottheme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) activityBar.border
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) activityBar.foreground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) activityBarBadge.background
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.background
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) editor.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editorBracketHighlight.foreground1
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) editorBracketHighlight.foreground2
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) editorBracketHighlight.foreground3
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) editorBracketHighlight.foreground4
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) editorBracketMatch.border
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) editorGroupHeader.tabsBackground
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) editorGroupHeader.tabsBorder
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) menu.background
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) menu.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) menu.selectionBackground
#040D31 RGB(4, 13, 49) RGBA(4, 13, 49, 1) menu.selectionForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) menu.separatorBackground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) menubar.selectionBackground
#040D31 RGB(4, 13, 49) RGBA(4, 13, 49, 1) menubar.selectionBorder
#FFB22480 RGB(255, 178, 36) RGBA(255, 178, 36, 0.502) menubar.selectionForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) panel.background
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) panel.border
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) panelTitle.activeForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) panelTitle.inactiveForeground
#FFB22480 RGB(255, 178, 36) RGBA(255, 178, 36, 0.502) sideBar.background
#040D31 RGB(4, 13, 49) RGBA(4, 13, 49, 1) sideBar.border
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) sideBarSectionHeader.background
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) sideBarSectionHeader.foreground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) sideBarTitle.foreground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) statusBar.background
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) statusBar.border
#FFB22480 RGB(255, 178, 36) RGBA(255, 178, 36, 0.502) statusBar.debuggingBackground
#CC3300 RGB(204, 51, 0) RGBA(204, 51, 0, 1) statusBar.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) statusBar.noFolderBackground
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) tab.activeBackground
#020A2A RGB(2, 10, 42) RGBA(2, 10, 42, 1) tab.activeForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) tab.inactiveBackground
#040D31 RGB(4, 13, 49) RGBA(4, 13, 49, 1) tab.inactiveForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) titleBar.activeBackground
#040D31 RGB(4, 13, 49) RGBA(4, 13, 49, 1) titleBar.activeForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) titleBar.border
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) titleBar.inactiveBackground
#040D31 RGB(4, 13, 49) RGBA(4, 13, 49, 1) titleBar.inactiveForeground
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 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
#6C7986 RGB(108, 121, 134) RGBA(108, 121, 134, 1) comment.block
#6C7986 RGB(108, 121, 134) RGBA(108, 121, 134, 1) comment.block.documentation
#6C7986 RGB(108, 121, 134) RGBA(108, 121, 134, 1) comment.line
#6C7986 RGB(108, 121, 134) RGBA(108, 121, 134, 1) constant
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) constant.numeric
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) constant.numeric.integer
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) constant.numeric.float
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) constant.numeric.hex
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) constant.numeric.octal
#FFD580 RGB(255, 213, 128) RGBA(255, 213, 128, 1) constant.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) constant.other.placeholder
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.class
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.function
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.method
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.namespace
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.section
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.selector
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.tag
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.type
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.type.enum
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.type.interface
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) entity.name.type.struct
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) keyword
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.new
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.assignment
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.arithmetic
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.operator.logical
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) keyword.other
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) meta
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) meta.function-call
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) meta.tag
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.definition.bracket
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.definition.comment
#6C7986 RGB(108, 121, 134) RGBA(108, 121, 134, 1) punctuation.definition.string.begin
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.definition.string.end
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.separator
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.separator.continuation
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) punctuation.terminator
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) storage
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage.modifier
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage.type
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.interpolated
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.double
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.single
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.triple
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.regexp
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.template
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.unquoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) support.class
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) support.function
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) support.type
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) support.type.primitive
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) support.type.property-name
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) variable
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.function
#FFB224 RGB(255, 178, 36) RGBA(255, 178, 36, 1) variable.language
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.name
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.other
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.other.constant
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.other.property
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.other.readwrite
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.parameter
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1)