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
Koke Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) activityBar.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) activityBar.inactiveForeground
#16331E RGB(22, 51, 30) RGBA(22, 51, 30, 1) activityBarBadge.background
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) button.background
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) button.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) dropdown.background
#1C3F26 RGB(28, 63, 38) RGBA(28, 63, 38, 1) dropdown.border
#334433 RGB(51, 68, 51) RGBA(51, 68, 51, 1) dropdown.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) editor.background
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) editor.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) editorGroup.border
#334433 RGB(51, 68, 51) RGBA(51, 68, 51, 1) editorGroupHeader.noTabsBackground
#223322 RGB(34, 51, 34) RGBA(34, 51, 34, 1) editorGroupHeader.tabsBackground
#1C3F26 RGB(28, 63, 38) RGBA(28, 63, 38, 1) editorHoverWidget.background
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) editorHoverWidget.border
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) editorHoverWidget.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) editorLineNumber.activeForeground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) editorLineNumber.foreground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) input.background
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) input.border
#334433 RGB(51, 68, 51) RGBA(51, 68, 51, 1) input.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) list.activeSelectionBackground
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) list.hoverBackground
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) list.hoverForeground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) list.inactiveSelectionBackground
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) menu.background
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) menu.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) menu.selectionBackground
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) menu.selectionForeground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) pickerGroup.border
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) pickerGroup.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) quickInput.background
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) quickInput.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) quickInputList.focusBackground
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) quickInputList.focusForeground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) quickInputTitle.background
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) sideBar.background
#1C3F26 RGB(28, 63, 38) RGBA(28, 63, 38, 1) sideBar.border
#334433 RGB(51, 68, 51) RGBA(51, 68, 51, 1) sideBar.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) sideBarTitle.foreground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) tab.activeBackground
#20472E RGB(32, 71, 46) RGBA(32, 71, 46, 1) tab.activeForeground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) tab.border
#334433 RGB(51, 68, 51) RGBA(51, 68, 51, 1) tab.inactiveBackground
#1C3F26 RGB(28, 63, 38) RGBA(28, 63, 38, 1) tab.inactiveForeground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) titleBar.activeBackground
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) titleBar.activeForeground
#EFFFFF RGB(239, 255, 255) RGBA(239, 255, 255, 1) titleBar.inactiveBackground
#2A613C RGB(42, 97, 60) RGBA(42, 97, 60, 1) titleBar.inactiveForeground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 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
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.block
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.block.documentation
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.line
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) constant.numeric.integer
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) constant.numeric.float
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) constant.numeric.hex
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) constant.numeric.octal
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) entity
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.class
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) entity.name.method
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.namespace
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.section
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.selector
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.tag
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) entity.name.type
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.type.enum
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.type.interface
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.name.type.struct
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) entity.other
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) entity.other.attribute-name
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) entity.other.inherited-class
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) invalid
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) invalid.deprecated
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) invalid.illegal
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) keyword
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) keyword.control
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) keyword.control.flow
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) keyword.operator
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) keyword.operator.new
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) keyword.operator.assignment
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) keyword.operator.arithmetic
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) keyword.operator.logical
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) keyword.other
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) markup
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.block
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) meta.function-call
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) meta.tag
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) punctuation.definition.bracket
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) punctuation.definition.comment
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) punctuation.definition.string.begin
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) punctuation.definition.string.end
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) punctuation.separator
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) punctuation.separator.continuation
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) punctuation.terminator
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) storage
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) storage.modifier
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) storage.type
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) support.class
#FFCB68 RGB(255, 203, 104) RGBA(255, 203, 104, 1) support.constant
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1) support.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.other
#FFCB68 RGB(255, 203, 104) RGBA(255, 203, 104, 1) support.type
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) support.type.primitive
#EBA360 RGB(235, 163, 96) RGBA(235, 163, 96, 1) support.type.property-name
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) variable.function
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.language
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) variable.name
#E6EE7E RGB(230, 238, 126) RGBA(230, 238, 126, 1) variable.other
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.other.constant
#ECEA62 RGB(236, 234, 98) RGBA(236, 234, 98, 1) variable.other.property
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.other.readwrite
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.parameter
#F37F7F RGB(243, 127, 127) RGBA(243, 127, 127, 1)