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
Cosmic Night Ocean
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#0F1523 RGB(15, 21, 35) RGBA(15, 21, 35, 1) activityBar.foreground
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) editor.background
#111827 RGB(17, 24, 39) RGBA(17, 24, 39, 1) editor.foreground
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) editor.lineHighlightBackground
#141C2E RGB(20, 28, 46) RGBA(20, 28, 46, 1) editor.selectionBackground
#1F2D4F RGB(31, 45, 79) RGBA(31, 45, 79, 1) editor.wordHighlightBackground
#1F2D4F RGB(31, 45, 79) RGBA(31, 45, 79, 1) editorGroupHeader.tabsBackground
#0F1523 RGB(15, 21, 35) RGBA(15, 21, 35, 1) sideBar.background
#111827 RGB(17, 24, 39) RGBA(17, 24, 39, 1) sideBar.foreground
#B8C7E2 RGB(184, 199, 226) RGBA(184, 199, 226, 1) statusBar.background
#0F1523 RGB(15, 21, 35) RGBA(15, 21, 35, 1) statusBar.foreground
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) tab.activeBackground
#111827 RGB(17, 24, 39) RGBA(17, 24, 39, 1) tab.inactiveBackground
#0F1523 RGB(15, 21, 35) RGBA(15, 21, 35, 1) titleBar.activeBackground
#0F1523 RGB(15, 21, 35) RGBA(15, 21, 35, 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
#617B9F RGB(97, 123, 159) RGBA(97, 123, 159, 1) comment.block
#617B9F RGB(97, 123, 159) RGBA(97, 123, 159, 1) comment.block.documentation
#617B9F RGB(97, 123, 159) RGBA(97, 123, 159, 1) comment.line
#617B9F RGB(97, 123, 159) RGBA(97, 123, 159, 1) constant
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) constant.character
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.character.escape
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.numeric
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.numeric.integer
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.numeric.float
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.numeric.hex
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.numeric.octal
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) constant.other
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) constant.other.placeholder
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) entity
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) entity.name
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) entity.name.class
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) entity.name.function
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) entity.name.tag
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) entity.name.type
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) entity.name.type.enum
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) entity.name.type.interface
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) entity.name.type.struct
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) entity.other
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) entity.other.attribute-name
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) entity.other.inherited-class
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) keyword
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) keyword.control
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) keyword.control.flow
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) keyword.operator
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) keyword.operator.new
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) keyword.operator.assignment
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) keyword.operator.arithmetic
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) keyword.operator.logical
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) keyword.other
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) markup
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.bold
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.heading
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.inline.raw
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.italic
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.list
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.list.numbered
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.list.unnumbered
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.quote
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.raw
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.underline
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) markup.underline.link
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) meta
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) meta.function
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) meta.function-call
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) meta.tag
#9BCDFF RGB(155, 205, 255) RGBA(155, 205, 255, 1) punctuation.definition.bracket
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) punctuation.definition.comment
#617B9F RGB(97, 123, 159) RGBA(97, 123, 159, 1) punctuation.definition.string.begin
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) punctuation.definition.string.end
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) punctuation.separator
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) punctuation.separator.continuation
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) punctuation.terminator
#8AB4FF RGB(138, 180, 255) RGBA(138, 180, 255, 1) storage
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) storage.modifier
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) storage.type
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) string
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.interpolated
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.other
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.quoted
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.quoted.double
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.quoted.other
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.quoted.single
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.quoted.triple
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.regexp
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.template
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) string.unquoted
#9DFFEB RGB(157, 255, 235) RGBA(157, 255, 235, 1) support
#8BCFFF RGB(139, 207, 255) RGBA(139, 207, 255, 1) support.class
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) support.constant
#7FD4FF RGB(127, 212, 255) RGBA(127, 212, 255, 1) support.function
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) support.type
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) support.type.primitive
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) support.type.property-name
#A3E7FF RGB(163, 231, 255) RGBA(163, 231, 255, 1) variable
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.function
#7CCCDE RGB(124, 204, 222) RGBA(124, 204, 222, 1) variable.language
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.name
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.other
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.other.constant
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.other.property
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.other.readwrite
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1) variable.parameter
#E2E8F3 RGB(226, 232, 243) RGBA(226, 232, 243, 1)