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
a-stranger-theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#03000580 RGB(3, 0, 5) RGBA(3, 0, 5, 0.502) activityBar.border
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) activityBar.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) editor.background
#05000780 RGB(5, 0, 7) RGBA(5, 0, 7, 0.502) editor.findMatchBackground
#E4980080 RGB(228, 152, 0) RGBA(228, 152, 0, 0.502) editor.findMatchBorder
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editor.findMatchHighlightBackground
#FFC34C40 RGB(255, 195, 76) RGBA(255, 195, 76, 0.251) editor.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) editor.selectionBackground
#2B174AE8 RGB(43, 23, 74) RGBA(43, 23, 74, 0.91) editor.selectionHighlightBackground
#4A4A0040 RGB(74, 74, 0) RGBA(74, 74, 0, 0.251) editor.selectionHighlightBorder
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editor.wordHighlightBackground
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) editor.wordHighlightBorder
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editorBracketHighlight.foreground1
#EB0000 RGB(235, 0, 0) RGBA(235, 0, 0, 1) editorBracketHighlight.foreground2
#B80000 RGB(184, 0, 0) RGBA(184, 0, 0, 1) editorBracketHighlight.foreground3
#B80000 RGB(184, 0, 0) RGBA(184, 0, 0, 1) editorBracketHighlight.foreground4
#B80000 RGB(184, 0, 0) RGBA(184, 0, 0, 1) editorBracketHighlight.foreground5
#B80000 RGB(184, 0, 0) RGBA(184, 0, 0, 1) editorBracketHighlight.foreground6
#B80000 RGB(184, 0, 0) RGBA(184, 0, 0, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editorCursor.foreground
#EF0000 RGB(239, 0, 0) RGBA(239, 0, 0, 1) editorGroup.border
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editorLineNumber.activeForeground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) editorLineNumber.foreground
#4A4A00 RGB(74, 74, 0) RGBA(74, 74, 0, 1) editorWidget.background
#0A000880 RGB(10, 0, 8) RGBA(10, 0, 8, 0.502) editorWidget.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) list.activeSelectionBackground
#2B174AE8 RGB(43, 23, 74) RGBA(43, 23, 74, 0.91) list.activeSelectionForeground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) list.hoverBackground
#0A000880 RGB(10, 0, 8) RGBA(10, 0, 8, 0.502) list.inactiveSelectionBackground
#2B174AE8 RGB(43, 23, 74) RGBA(43, 23, 74, 0.91) panel.background
#05000780 RGB(5, 0, 7) RGBA(5, 0, 7, 0.502) panel.border
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) panelTitle.activeForeground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) panelTitle.inactiveForeground
#4A4A00 RGB(74, 74, 0) RGBA(74, 74, 0, 1) sideBar.background
#03000580 RGB(3, 0, 5) RGBA(3, 0, 5, 0.502) sideBar.border
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) sideBar.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) sideBarSectionHeader.background
#0A000880 RGB(10, 0, 8) RGBA(10, 0, 8, 0.502) sideBarTitle.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) statusBar.background
#0A000880 RGB(10, 0, 8) RGBA(10, 0, 8, 0.502) statusBar.border
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) statusBar.debuggingBackground
#9100EB80 RGB(145, 0, 235) RGBA(145, 0, 235, 0.502) statusBar.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) statusBar.noFolderBackground
#03000580 RGB(3, 0, 5) RGBA(3, 0, 5, 0.502) tab.activeBorderTop
#D9D9D9 RGB(217, 217, 217) RGBA(217, 217, 217, 1) terminal.background
#05000780 RGB(5, 0, 7) RGBA(5, 0, 7, 0.502) terminal.foreground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) titleBar.activeBackground
#0A000880 RGB(10, 0, 8) RGBA(10, 0, 8, 0.502) titleBar.activeForeground
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) titleBar.border
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) titleBar.inactiveBackground
#03000580 RGB(3, 0, 5) RGBA(3, 0, 5, 0.502) titleBar.inactiveForeground
#4A4A00 RGB(74, 74, 0) RGBA(74, 74, 0, 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
#314B5C RGB(49, 75, 92) RGBA(49, 75, 92, 1) comment.block
#314B5C RGB(49, 75, 92) RGBA(49, 75, 92, 1) comment.block.documentation
#314B5C RGB(49, 75, 92) RGBA(49, 75, 92, 1) comment.line
#314B5C RGB(49, 75, 92) RGBA(49, 75, 92, 1) constant
#A900FE RGB(169, 0, 254) RGBA(169, 0, 254, 1) constant.numeric
#F0F070 RGB(240, 240, 112) RGBA(240, 240, 112, 1) constant.numeric.integer
#F0F070 RGB(240, 240, 112) RGBA(240, 240, 112, 1) constant.numeric.float
#F0F070 RGB(240, 240, 112) RGBA(240, 240, 112, 1) constant.numeric.hex
#F0F070 RGB(240, 240, 112) RGBA(240, 240, 112, 1) constant.numeric.octal
#F0F070 RGB(240, 240, 112) RGBA(240, 240, 112, 1) entity
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) entity.name
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) entity.name.function
#9800E4 RGB(152, 0, 228) RGBA(152, 0, 228, 1) entity.name.type
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) entity.name.type.enum
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) entity.name.type.interface
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) entity.name.type.struct
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) keyword
#C6C6C6 RGB(198, 198, 198) RGBA(198, 198, 198, 1) keyword.control
#FFC34C RGB(255, 195, 76) RGBA(255, 195, 76, 1) keyword.control.flow
#FFC34C RGB(255, 195, 76) RGBA(255, 195, 76, 1) keyword.operator
#C6C6C6 RGB(198, 198, 198) RGBA(198, 198, 198, 1) keyword.operator.assignment
#C6C6C6 RGB(198, 198, 198) RGBA(198, 198, 198, 1) keyword.operator.arithmetic
#C6C6C6 RGB(198, 198, 198) RGBA(198, 198, 198, 1) meta
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) punctuation.definition.string.begin
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) punctuation.definition.string.end
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) storage
#9800E4 RGB(152, 0, 228) RGBA(152, 0, 228, 1) storage.type
#9800E4 RGB(152, 0, 228) RGBA(152, 0, 228, 1) string
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.interpolated
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.other
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.quoted
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.quoted.double
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.quoted.other
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.quoted.single
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.quoted.triple
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.regexp
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.template
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) string.unquoted
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) support
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) support.type
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) support.type.primitive
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) support.type.property-name
#00A9CB RGB(0, 169, 203) RGBA(0, 169, 203, 1) variable
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) variable.other
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) variable.other.readwrite
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1) variable.parameter
#E49800 RGB(228, 152, 0) RGBA(228, 152, 0, 1)