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
Darcula theme for Elixir
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.foreground
#DFE2E5 RGB(223, 226, 229) RGBA(223, 226, 229, 1) editor.lineHighlightBackground
#323232 RGB(50, 50, 50) RGBA(50, 50, 50, 1) editor.selectionBackground
#1A414D RGB(26, 65, 77) RGBA(26, 65, 77, 1) editorCursor.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) editorWhitespace.foreground
#3B3A32 RGB(59, 58, 50) RGBA(59, 58, 50, 1) gitDecoration.deletedResourceForeground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) gitDecoration.modifiedResourceForeground
#87CEFA RGB(135, 206, 250) RGBA(135, 206, 250, 1) gitDecoration.untrackedResourceForeground
#FF6666 RGB(255, 102, 102) RGBA(255, 102, 102, 1) statusBar.background
#303030 RGB(48, 48, 48) RGBA(48, 48, 48, 1) statusBar.debuggingBackground
#511F1F RGB(81, 31, 31) RGBA(81, 31, 31, 1) statusBar.noFolderBackground
#222225 RGB(34, 34, 37) RGBA(34, 34, 37, 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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.character
#6D9CBE RGB(109, 156, 190) RGBA(109, 156, 190, 1) constant.character.escape
#96B5B4 RGB(150, 181, 180) RGBA(150, 181, 180, 1) constant.numeric
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.integer
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.float
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.hex
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.numeric.octal
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.other
#6D9CBE RGB(109, 156, 190) RGBA(109, 156, 190, 1) constant.other.placeholder
#6D9CBE RGB(109, 156, 190) RGBA(109, 156, 190, 1) constant.regexp
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) constant.rgb-value
#6897BB RGB(104, 151, 187) RGBA(104, 151, 187, 1) entity
#E6DA00 RGB(230, 218, 0) RGBA(230, 218, 0, 1) entity.name
#E6DA00 RGB(230, 218, 0) RGBA(230, 218, 0, 1) entity.name.class
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) entity.name.function
#FFC765 RGB(255, 199, 101) RGBA(255, 199, 101, 1) entity.name.section
#BF93B5 RGB(191, 147, 181) RGBA(191, 147, 181, 1) entity.name.tag
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) entity.name.type
#E6DA00 RGB(230, 218, 0) RGBA(230, 218, 0, 1) entity.other
#8AB8A2 RGB(138, 184, 162) RGBA(138, 184, 162, 1) entity.other.attribute-name
#8AB8A2 RGB(138, 184, 162) RGBA(138, 184, 162, 1) entity.other.inherited-class
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) invalid
#D0C39B RGB(208, 195, 155) RGBA(208, 195, 155, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#CE7827 RGB(206, 120, 39) RGBA(206, 120, 39, 1) keyword.control
#CE7827 RGB(206, 120, 39) RGBA(206, 120, 39, 1) keyword.control.flow
#CE7827 RGB(206, 120, 39) RGBA(206, 120, 39, 1) keyword.operator
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.new
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.assignment
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.arithmetic
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.logical
#C0B27D RGB(192, 178, 125) RGBA(192, 178, 125, 1) keyword.other
#CE7827 RGB(206, 120, 39) RGBA(206, 120, 39, 1) markup
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) markup.bold
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) markup.italic
#B4B378 RGB(180, 179, 120) RGBA(180, 179, 120, 1) markup.list
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) markup.list.numbered
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) markup.list.unnumbered
#ABABAB RGB(171, 171, 171) RGBA(171, 171, 171, 1) markup.quote
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) markup.raw
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) meta
#82A66D RGB(130, 166, 109) RGBA(130, 166, 109, 1) meta.block
#ACB5B5 RGB(172, 181, 181) RGBA(172, 181, 181, 1) meta.class
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) meta.function-call
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) meta.selector
#E8BF6A RGB(232, 191, 106) RGBA(232, 191, 106, 1) meta.tag
#AB6767 RGB(171, 103, 103) RGBA(171, 103, 103, 1) meta.type.annotation
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) meta.type
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) punctuation.definition.bracket
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) punctuation.definition.comment
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.definition.string.begin
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) punctuation.definition.string.end
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) punctuation.separator
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) punctuation.separator.continuation
#A9B7C7 RGB(169, 183, 199) RGBA(169, 183, 199, 1) punctuation.terminator
#CC7832 RGB(204, 120, 50) RGBA(204, 120, 50, 1) storage
#9FB3C2 RGB(159, 179, 194) RGBA(159, 179, 194, 1) storage.modifier
#9FB3C2 RGB(159, 179, 194) RGBA(159, 179, 194, 1) storage.type
#E1A170 RGB(225, 161, 112) RGBA(225, 161, 112, 1) string
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.interpolated
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.other
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.quoted
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.quoted.double
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) string.quoted.other
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.quoted.single
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.quoted.triple
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.regexp
#96B5B4 RGB(150, 181, 180) RGBA(150, 181, 180, 1) string.template
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) string.unquoted
#6B8657 RGB(107, 134, 87) RGBA(107, 134, 87, 1) support
#6A8759 RGB(106, 135, 89) RGBA(106, 135, 89, 1) support.class
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) support.constant
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) support.function
#FFC765 RGB(255, 199, 101) RGBA(255, 199, 101, 1) support.type
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) support.type.primitive
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) support.type.property-name
#C7AF3F RGB(199, 175, 63) RGBA(199, 175, 63, 1) variable
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.function
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.language
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.name
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.constant
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.other.property
#759F9E RGB(117, 159, 158) RGBA(117, 159, 158, 1) variable.other.readwrite
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1) variable.parameter
#9876AA RGB(152, 118, 170) RGBA(152, 118, 170, 1)