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
simply-blues
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#0C0C0C42 RGB(12, 12, 12) RGBA(12, 12, 12, 0.259) editor.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#FFD180 RGB(255, 209, 128) RGBA(255, 209, 128, 1) comment.block
#FFD180 RGB(255, 209, 128) RGBA(255, 209, 128, 1) comment.block.documentation
#FFD180 RGB(255, 209, 128) RGBA(255, 209, 128, 1) comment.line
#FFD180 RGB(255, 209, 128) RGBA(255, 209, 128, 1) constant
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.character
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.character.escape
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.numeric
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.numeric.integer
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.numeric.float
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.numeric.hex
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.numeric.octal
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.other
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.other.placeholder
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.regexp
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) constant.rgb-value
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) emphasis
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) entity
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.class
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.function
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.method
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.namespace
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.section
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.selector
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.tag
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.type
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.type.enum
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.type.interface
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.name.type.struct
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.other
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) entity.other.attribute-name
#66BB6A RGB(102, 187, 106) RGBA(102, 187, 106, 1) entity.other.inherited-class
#42A5F5 RGB(66, 165, 245) RGBA(66, 165, 245, 1) invalid
#E57373 RGB(229, 115, 115) RGBA(229, 115, 115, 1) invalid.deprecated
#E57373 RGB(229, 115, 115) RGBA(229, 115, 115, 1) invalid.illegal
#E57373 RGB(229, 115, 115) RGBA(229, 115, 115, 1) keyword
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.control
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.control.flow
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.operator
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.operator.new
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.operator.assignment
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.operator.arithmetic
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.operator.logical
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) keyword.other
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) markup
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.bold
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.changed
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.deleted
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.heading
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.inline.raw
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.inserted
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.italic
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.list
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.list.numbered
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.list.unnumbered
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.other
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.quote
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.raw
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.underline
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) markup.underline.link
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) meta
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.block
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.cast
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.class
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.function
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.function-call
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.preprocessor
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.return-type
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.selector
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.tag
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.type.annotation
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) meta.type
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) punctuation.definition.comment
#FFD180 RGB(255, 209, 128) RGBA(255, 209, 128, 1) storage
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) storage.modifier
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) storage.type
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) string
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.interpolated
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.other
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.quoted
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.quoted.double
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.quoted.other
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.quoted.single
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.quoted.triple
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.regexp
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.template
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) string.unquoted
#4DD0E1 RGB(77, 208, 225) RGBA(77, 208, 225, 1) strong
#66BB6A RGB(102, 187, 106) RGBA(102, 187, 106, 1) support
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.class
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.constant
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.function
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.other
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.type
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.type.primitive
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.type.property-name
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) support.variable
#26A69A RGB(38, 166, 154) RGBA(38, 166, 154, 1) variable
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.function
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.language
#B3E5FC RGB(179, 229, 252) RGBA(179, 229, 252, 1) variable.name
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.other
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.other.constant
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.other.property
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.other.readwrite
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1) variable.parameter
#81D4FA RGB(129, 212, 250) RGBA(129, 212, 250, 1)