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
PootieTangPilled
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) editorBracketHighlight.foreground1
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) editorBracketHighlight.foreground2
#59D96F RGB(89, 217, 111) RGBA(89, 217, 111, 1) editorBracketHighlight.foreground3
#4CB85E RGB(76, 184, 94) RGBA(76, 184, 94, 1) editorBracketHighlight.foreground4
#3D944C RGB(61, 148, 76) RGBA(61, 148, 76, 1) editorBracketHighlight.foreground5
#2E703A RGB(46, 112, 58) RGBA(46, 112, 58, 1) editorBracketHighlight.foreground6
#204C27 RGB(32, 76, 39) RGBA(32, 76, 39, 1) editorBracketHighlight.unexpectedBracket.foreground
#7A7A7A RGB(122, 122, 122) RGBA(122, 122, 122, 1) editorBracketPairGuide.background1
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) editorBracketPairGuide.background2
#59D96F RGB(89, 217, 111) RGBA(89, 217, 111, 1) editorBracketPairGuide.background3
#4CB85E RGB(76, 184, 94) RGBA(76, 184, 94, 1) editorBracketPairGuide.background4
#3D944C RGB(61, 148, 76) RGBA(61, 148, 76, 1) editorBracketPairGuide.background5
#2E703A RGB(46, 112, 58) RGBA(46, 112, 58, 1) editorBracketPairGuide.background6
#204C27 RGB(32, 76, 39) RGBA(32, 76, 39, 1) editorCodeLens.foreground
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) interactive.activeCodeBorder
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) interactive.inactiveCodeBorder
#132E18 RGB(19, 46, 24) RGBA(19, 46, 24, 1) notebook.cellBorderColor
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) notebook.focusedCellBorder
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) notebook.inactiveFocusedCellBorder
#132E18 RGB(19, 46, 24) RGBA(19, 46, 24, 1) peekView.border
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) statusBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.border
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) statusBar.debuggingBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.debuggingBorder
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) statusBar.debuggingForeground
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) statusBar.foreground
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) statusBar.noFolderBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.noFolderBorder
#1D4725 RGB(29, 71, 37) RGBA(29, 71, 37, 1) statusBar.noFolderForeground
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) statusBarItem.errorBackground
#7A7A7A RGB(122, 122, 122) RGBA(122, 122, 122, 1) statusBarItem.remoteBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBarItem.remoteForeground
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) statusBarItem.warningBackground
#7A7A7A RGB(122, 122, 122) RGBA(122, 122, 122, 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
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) comment.block
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) comment.block.documentation
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) comment.line
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.character
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.character.escape
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.numeric
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.numeric.integer
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.numeric.float
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.numeric.hex
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.numeric.octal
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.other
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.other.placeholder
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.regexp
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) constant.rgb-value
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name.class
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name.function
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) entity.name.method
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name.namespace
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name.section
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name.selector
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.name.tag
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) entity.name.type
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) entity.name.type.enum
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) entity.name.type.interface
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) entity.name.type.struct
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) entity.other
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) entity.other.attribute-name
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) entity.other.inherited-class
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) invalid
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) invalid.deprecated
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) invalid.illegal
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) keyword
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) keyword.control
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) keyword.control.flow
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) keyword.operator
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) keyword.operator.new
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) keyword.operator.assignment
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) keyword.operator.arithmetic
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) keyword.operator.logical
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) keyword.other
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) markup
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) markup.bold
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) markup.heading
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) markup.inline.raw
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) markup.italic
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) markup.raw
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) markup.underline
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) markup.underline.link
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) meta
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.block
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.cast
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.class
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.function
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.function-call
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) meta.preprocessor
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.return-type
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.selector
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.tag
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.type.annotation
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) meta.type
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) punctuation.definition.bracket
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) punctuation.definition.comment
#7A7A7A RGB(122, 122, 122) RGBA(122, 122, 122, 1) punctuation.definition.string.begin
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) punctuation.definition.string.end
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) punctuation.separator
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) punctuation.separator.continuation
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) punctuation.terminator
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) storage
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) storage.modifier
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) storage.type
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) string
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.interpolated
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.other
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.quoted
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.quoted.double
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.quoted.other
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.quoted.single
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.quoted.triple
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.regexp
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.template
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) string.unquoted
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.class
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.constant
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.function
#D8FFD8 RGB(216, 255, 216) RGBA(216, 255, 216, 1) support.other
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.type
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.type.primitive
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.type.property-name
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) support.variable
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.function
#69FF83 RGB(105, 255, 131) RGBA(105, 255, 131, 1) variable.language
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.name
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.other
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.other.constant
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.other.property
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.other.readwrite
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1) variable.parameter
#368E44 RGB(54, 142, 68) RGBA(54, 142, 68, 1)