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
lubuntu theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#151D29 RGB(21, 29, 41) RGBA(21, 29, 41, 1) activityBarBadge.background
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) badge.background
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) badge.foreground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) editor.background
#151D29 RGB(21, 29, 41) RGBA(21, 29, 41, 1) editor.foreground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) editor.selectionBackground
#93C4FD35 RGB(147, 196, 253) RGBA(147, 196, 253, 0.208) editorCodeLens.foreground
#93C4FD35 RGB(147, 196, 253) RGBA(147, 196, 253, 0.208) editorGutter.addedBackground
#19F9D8 RGB(25, 249, 216) RGBA(25, 249, 216, 1) editorWhitespace.foreground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) foreground
#6FC1FF RGB(111, 193, 255) RGBA(111, 193, 255, 1) list.focusBackground
#151D29 RGB(21, 29, 41) RGBA(21, 29, 41, 1) list.focusForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) list.highlightForeground
#6FC1FF RGB(111, 193, 255) RGBA(111, 193, 255, 1) list.hoverBackground
#151D29 RGB(21, 29, 41) RGBA(21, 29, 41, 1) list.hoverForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) list.inactiveSelectionBackground
#151D29 RGB(21, 29, 41) RGBA(21, 29, 41, 1) list.inactiveSelectionForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) scrollbar.shadow
#222223 RGB(34, 34, 35) RGBA(34, 34, 35, 1) scrollbarSlider.activeBackground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) scrollbarSlider.background
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) scrollbarSlider.hoverBackground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) sideBar.background
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) sideBar.border
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) sideBar.foreground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) sideBarTitle.foreground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) statusBar.background
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) statusBar.foreground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) tab.activeBackground
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) tab.activeBorder
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) tab.activeForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) tab.inactiveBackground
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) tab.inactiveForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) terminal.ansiBlue
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) terminal.ansiBrightBlack
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) terminal.ansiBrightBlue
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) terminalCursor.background
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) terminalCursor.foreground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) titleBar.activeBackground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) titleBar.activeForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) titleBar.inactiveBackground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) titleBar.inactiveForeground
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 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
#646464 RGB(100, 100, 100) RGBA(100, 100, 100, 1) comment.block
#646464 RGB(100, 100, 100) RGBA(100, 100, 100, 1) comment.block.documentation
#646464 RGB(100, 100, 100) RGBA(100, 100, 100, 1) comment.line
#646464 RGB(100, 100, 100) RGBA(100, 100, 100, 1) constant
#F8FAFC RGB(248, 250, 252) RGBA(248, 250, 252, 1) constant.character
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) constant.character.escape
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) constant.numeric
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) constant.numeric.integer
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) constant.numeric.float
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) constant.numeric.hex
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) constant.numeric.octal
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) constant.other
#F8FAFC RGB(248, 250, 252) RGBA(248, 250, 252, 1) constant.other.placeholder
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) entity
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.class
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.function
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) entity.name.method
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.namespace
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.section
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.selector
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.tag
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) entity.name.type
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.type.enum
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.type.interface
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.name.type.struct
#E2EBF0 RGB(226, 235, 240) RGBA(226, 235, 240, 1) entity.other
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) entity.other.attribute-name
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) entity.other.inherited-class
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) invalid
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) invalid.deprecated
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) invalid.illegal
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) keyword
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) keyword.control
#516797 RGB(81, 103, 151) RGBA(81, 103, 151, 1) keyword.control.flow
#516797 RGB(81, 103, 151) RGBA(81, 103, 151, 1) keyword.operator
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) keyword.operator.new
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) keyword.operator.assignment
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) keyword.operator.arithmetic
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) keyword.operator.logical
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) keyword.other
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) markup
#E6F2FE RGB(230, 242, 254) RGBA(230, 242, 254, 1) markup.bold
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) markup.changed
#FCFCFD RGB(252, 252, 253) RGBA(252, 252, 253, 1) markup.deleted
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) markup.heading
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) markup.inline.raw
#60ASFA — — markup.inserted
#F1F5F9 RGB(241, 245, 249) RGBA(241, 245, 249, 1) markup.italic
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) markup.raw
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) markup.underline
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) markup.underline.link
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) meta
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) meta.function-call
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) meta.tag
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) punctuation.definition.bracket
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) punctuation.definition.comment
#646464 RGB(100, 100, 100) RGBA(100, 100, 100, 1) punctuation.definition.string.begin
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) punctuation.definition.string.end
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) punctuation.separator
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) punctuation.separator.continuation
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) punctuation.terminator
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) storage
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) storage.modifier
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) storage.type
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.interpolated
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.other
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.quoted
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.quoted.double
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.quoted.other
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.quoted.single
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.quoted.triple
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.regexp
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) string.template
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) string.unquoted
#93C5FD RGB(147, 197, 253) RGBA(147, 197, 253, 1) support
#F1F5F9 RGB(241, 245, 249) RGBA(241, 245, 249, 1) support.class
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) support.constant
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) support.function
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) support.other
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) support.type
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) support.type.primitive
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) support.type.property-name
#F5FAFF RGB(245, 250, 255) RGBA(245, 250, 255, 1) variable
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) variable.function
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1) variable.language
#516797 RGB(81, 103, 151) RGBA(81, 103, 151, 1) variable.name
#60A5FA RGB(96, 165, 250) RGBA(96, 165, 250, 1) variable.other
#3B82F6 RGB(59, 130, 246) RGBA(59, 130, 246, 1) variable.other.constant
#3B82F6 RGB(59, 130, 246) RGBA(59, 130, 246, 1) variable.other.property
#3B82F6 RGB(59, 130, 246) RGBA(59, 130, 246, 1) variable.other.readwrite
#3B82F6 RGB(59, 130, 246) RGBA(59, 130, 246, 1) variable.parameter
#E2E8F0 RGB(226, 232, 240) RGBA(226, 232, 240, 1)