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
tinydark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#060606 RGB(6, 6, 6) RGBA(6, 6, 6, 1) editor.foreground
#9E7B61 RGB(158, 123, 97) RGBA(158, 123, 97, 1) editor.lineHighlightBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.lineHighlightBorder
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.rangeHighlightBorder
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editor.selectionHighlightBorder
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editor.wordHighlightBorder
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editorIndentGuide.background
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) editorRuler.foreground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#060606 RGB(6, 6, 6) RGBA(6, 6, 6, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.foreground
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) statusBar.noFolderBackground
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 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
#767177 RGB(118, 113, 119) RGBA(118, 113, 119, 1) comment.block
#767177 RGB(118, 113, 119) RGBA(118, 113, 119, 1) comment.block.documentation
#767177 RGB(118, 113, 119) RGBA(118, 113, 119, 1) comment.line
#767177 RGB(118, 113, 119) RGBA(118, 113, 119, 1) constant
#98619F RGB(152, 97, 159) RGBA(152, 97, 159, 1) constant.character
#98619F RGB(152, 97, 159) RGBA(152, 97, 159, 1) constant.character.escape
#DDF2A4 RGB(221, 242, 164) RGBA(221, 242, 164, 1) constant.numeric
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) constant.numeric.integer
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) constant.numeric.float
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) constant.numeric.hex
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) constant.numeric.octal
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) constant.other
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) constant.other.placeholder
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) constant.regexp
#98619F RGB(152, 97, 159) RGBA(152, 97, 159, 1) constant.rgb-value
#98619F RGB(152, 97, 159) RGBA(152, 97, 159, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#E17B37 RGB(225, 123, 55) RGBA(225, 123, 55, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#B35439 RGB(179, 84, 57) RGBA(179, 84, 57, 1) entity.other.attribute-name
#FFB04F RGB(255, 176, 79) RGBA(255, 176, 79, 1) invalid
#E7D09F RGB(231, 208, 159) RGBA(231, 208, 159, 1) invalid.deprecated
#E7D09F RGB(231, 208, 159) RGBA(231, 208, 159, 1) keyword
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) keyword.control
#BC7845 RGB(188, 120, 69) RGBA(188, 120, 69, 1) keyword.control.flow
#BC7845 RGB(188, 120, 69) RGBA(188, 120, 69, 1) keyword.operator
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) keyword.operator.new
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) keyword.operator.assignment
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) keyword.operator.arithmetic
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) keyword.operator.logical
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) keyword.other
#7CA563 RGB(124, 165, 99) RGBA(124, 165, 99, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 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
#98619F RGB(152, 97, 159) RGBA(152, 97, 159, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 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
#B7755A RGB(183, 117, 90) RGBA(183, 117, 90, 1) meta.function
#B3935C RGB(179, 147, 92) RGBA(179, 147, 92, 1) meta.function-call
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) meta.tag
#E17B37 RGB(225, 123, 55) RGBA(225, 123, 55, 1) punctuation.definition.comment
#767177 RGB(118, 113, 119) RGBA(118, 113, 119, 1) punctuation.definition.string.begin
#E1C799 RGB(225, 199, 153) RGBA(225, 199, 153, 1) punctuation.definition.string.end
#E1C799 RGB(225, 199, 153) RGBA(225, 199, 153, 1) punctuation.separator
#B3935C RGB(179, 147, 92) RGBA(179, 147, 92, 1) punctuation.terminator
#B3935C RGB(179, 147, 92) RGBA(179, 147, 92, 1) storage
#B3935C RGB(179, 147, 92) RGBA(179, 147, 92, 1) storage.modifier
#B3935C RGB(179, 147, 92) RGBA(179, 147, 92, 1) storage.type
#B3935C RGB(179, 147, 92) RGBA(179, 147, 92, 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
#DDF2A4 RGB(221, 242, 164) RGBA(221, 242, 164, 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
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#9B703F RGB(155, 112, 63) RGBA(155, 112, 63, 1) support.constant
#DDAA71 RGB(221, 170, 113) RGBA(221, 170, 113, 1) support.function
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) support.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support.type
#9B703F RGB(155, 112, 63) RGBA(155, 112, 63, 1) support.type.primitive
#9B703F RGB(155, 112, 63) RGBA(155, 112, 63, 1) support.type.property-name
#A17159 RGB(161, 113, 89) RGBA(161, 113, 89, 1) support.variable
#B66046 RGB(182, 96, 70) RGBA(182, 96, 70, 1) variable
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.function
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1) variable.language
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.name
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.other
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.other.constant
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.other.property
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.other.readwrite
#758AA6 RGB(117, 138, 166) RGBA(117, 138, 166, 1) variable.parameter
#C3BE98 RGB(195, 190, 152) RGBA(195, 190, 152, 1)