E-Ink Theme
Publisher: 慧Themes in package: 3
E-ink theme for VSCode
E-ink theme for VSCode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
| key | HEX | RGB | RGBA |
|---|---|---|---|
actionBar.toggledBackground | |||
activityBar.activeBackground | |||
activityBar.activeBorder | |||
activityBar.activeFocusBorder | |||
activityBar.background | |||
activityBar.border | |||
activityBar.dropBorder | |||
activityBar.foreground | |||
activityBar.inactiveForeground | |||
activityBarBadge.background | |||
activityBarBadge.foreground | |||
activityBarTop.activeBackground | |||
activityBarTop.activeBorder | |||
activityBarTop.background | |||
activityBarTop.dropBorder | |||
activityBarTop.foreground | |||
activityBarTop.inactiveForeground | |||
badge.background | |||
badge.foreground | |||
breadcrumb.activeSelectionForeground | |||
breadcrumb.focusForeground | |||
breadcrumb.foreground | |||
button.background | |||
button.border | |||
button.foreground | |||
button.hoverBackground | |||
button.separator | |||
checkbox.background | |||
checkbox.border | |||
checkbox.foreground | |||
checkbox.selectBackground | |||
checkbox.selectBorder | |||
contrastActiveBorder | |||
contrastBorder | |||
debugTokenExpression.name | |||
debugToolBar.background | |||
debugToolBar.border | |||
debugView.stateLabelBackground | |||
debugView.stateLabelForeground | |||
debugView.valueChangedHighlight | |||
descriptionForeground | |||
diffEditor.border | |||
diffEditor.insertedTextBackground | |||
diffEditor.insertedTextBorder | |||
diffEditor.removedTextBackground | |||
diffEditor.removedTextBorder | |||
diffEditor.unchangedRegionBackground | |||
diffEditor.unchangedRegionForeground | |||
diffEditorGutter.insertedLineBackground | |||
diffEditorGutter.removedLineBackground | |||
disabledForeground | |||
dropdown.background | |||
dropdown.border | |||
dropdown.foreground | |||
dropdown.listBackground | |||
editor.background | |||
editor.findMatchBorder | |||
editor.findRangeHighlightBackground | |||
editor.findRangeHighlightBorder | |||
editor.focusedStackFrameHighlightBackground | |||
editor.foldPlaceholderForeground | |||
editor.foreground | |||
editor.inactiveSelectionBackground | |||
editor.inlineValuesBackground | |||
editor.inlineValuesForeground | |||
editor.lineHighlightBorder | |||
editor.linkedEditingBackground | |||
editor.selectionBackground | |||
editor.selectionForeground | |||
editor.snippetTabstopHighlightBackground | |||
editor.snippetTabstopHighlightBorder | |||
editor.stackFrameHighlightBackground | |||
editor.symbolHighlightBackground | |||
editor.symbolHighlightBorder | |||
editor.wordHighlightBorder | |||
editor.wordHighlightStrongBorder | |||
editor.wordHighlightTextBorder | |||
editorBracketHighlight.foreground1 | |||
editorBracketHighlight.foreground2 | |||
editorBracketHighlight.foreground3 | |||
editorBracketHighlight.foreground4 | |||
editorBracketHighlight.foreground5 | |||
editorBracketHighlight.foreground6 | |||
editorBracketHighlight.unexpectedBracket.foreground | |||
editorBracketMatch.background | |||
editorBracketMatch.border | |||
editorCodeLens.foreground | |||
editorCursor.background | |||
editorCursor.foreground | |||
editorGroup.border | |||
editorGroup.dropBackground | |||
editorGroup.dropIntoPromptBackground | |||
editorGroup.dropIntoPromptBorder | |||
editorGroup.dropIntoPromptForeground | |||
editorGroup.emptyBackground | |||
editorGroup.focusedEmptyBorder | |||
editorGroupHeader.border | |||
editorGroupHeader.noTabsBackground | |||
editorGroupHeader.tabsBackground | |||
editorGroupHeader.tabsBorder | |||
editorGutter.background | |||
editorGutter.modifiedBackground | |||
editorIndentGuide.activeBackground | |||
editorIndentGuide.background | |||
editorLightBulb.foreground | |||
editorLightBulbAutoFix.foreground | |||
editorLineNumber.activeForeground | |||
editorLineNumber.dimmedForeground | |||
editorLineNumber.foreground | |||
editorLink.activeForeground | |||
editorOverviewRuler.background | |||
editorOverviewRuler.border | |||
editorOverviewRuler.findMatchForeground | |||
editorPane.background | |||
editorRuler.foreground | |||
editorWhitespace.foreground | |||
errorForeground | |||
extensionButton.foreground | |||
extensionButton.hoverBackground | |||
extensionButton.prominentForeground | |||
extensionButton.prominentHoverBackground | |||
extensionButton.separator | |||
focusBorder | |||
foreground | |||
icon.foreground | |||
input.background | |||
input.border | |||
input.foreground | |||
input.placeholderForeground | |||
inputOption.activeBackground | |||
inputOption.activeBorder | |||
inputOption.activeForeground | |||
inputOption.hoverBackground | |||
keybindingLabel.background | |||
keybindingLabel.border | |||
keybindingLabel.bottomBorder | |||
keybindingLabel.foreground | |||
keybindingTable.headerBackground | |||
keybindingTable.rowsBackground | |||
list.activeSelectionBackground | |||
list.activeSelectionForeground | |||
list.activeSelectionIconForeground | |||
list.deemphasizedForeground | |||
list.dropBackground | |||
list.errorForeground | |||
list.filterMatchBackground | |||
list.filterMatchBorder | |||
list.focusAndSelectionOutline | |||
list.focusBackground | |||
list.focusForeground | |||
list.focusHighlightForeground | |||
list.focusOutline | |||
list.highlightForeground | |||
list.hoverBackground | |||
list.hoverForeground | |||
list.inactiveFocusBackground | |||
list.inactiveFocusOutline | |||
list.inactiveSelectionBackground | |||
list.inactiveSelectionForeground | |||
list.inactiveSelectionIconForeground | |||
list.invalidItemForeground | |||
list.warningForeground | |||
listFilterWidget.background | |||
listFilterWidget.noMatchesOutline | |||
listFilterWidget.outline | |||
listFilterWidget.shadow | |||
notificationCenter.border | |||
notificationCenterHeader.background | |||
notificationCenterHeader.foreground | |||
notifications.background | |||
notifications.border | |||
notifications.foreground | |||
notificationToast.border | |||
panel.background | |||
panel.border | |||
panel.dropBorder | |||
panelInput.border | |||
panelTitle.activeBorder | |||
panelTitle.activeForeground | |||
panelTitle.inactiveForeground | |||
profileBadge.background | |||
profileBadge.foreground | |||
progressBar.background | |||
sash.hoverBorder | |||
scrollbar.shadow | |||
scrollbarSlider.activeBackground | |||
scrollbarSlider.background | |||
scrollbarSlider.hoverBackground | |||
search.resultsInfoForeground | |||
selection.background | |||
sideBar.background | |||
sideBar.border | |||
sideBar.dropBackground | |||
sideBar.foreground | |||
sideBarSectionHeader.background | |||
sideBarSectionHeader.border | |||
sideBarSectionHeader.foreground | |||
sideBarTitle.foreground | |||
sideBySideEditor.horizontalBorder | |||
sideBySideEditor.verticalBorder | |||
statusBar.background | |||
statusBar.border | |||
statusBar.debuggingBackground | |||
statusBar.debuggingBorder | |||
statusBar.debuggingForeground | |||
statusBar.foreground | |||
statusBar.noFolderBackground | |||
statusBar.noFolderBorder | |||
statusBar.noFolderForeground | |||
tab.activeBackground | |||
tab.activeBorder | |||
tab.activeBorderTop | |||
tab.activeForeground | |||
tab.activeModifiedBorder | |||
tab.border | |||
tab.hoverBackground | |||
tab.hoverBorder | |||
tab.hoverForeground | |||
tab.inactiveBackground | |||
tab.inactiveForeground | |||
tab.inactiveModifiedBorder | |||
tab.lastPinnedBorder | |||
tab.unfocusedActiveBackground | |||
tab.unfocusedActiveBorder | |||
tab.unfocusedActiveBorderTop | |||
tab.unfocusedActiveForeground | |||
tab.unfocusedActiveModifiedBorder | |||
tab.unfocusedHoverBackground | |||
tab.unfocusedHoverBorder | |||
tab.unfocusedHoverForeground | |||
tab.unfocusedInactiveBackground | |||
tab.unfocusedInactiveForeground | |||
tab.unfocusedInactiveModifiedBorder | |||
terminal.background | |||
terminal.border | |||
terminal.findMatchBackground | |||
terminal.findMatchBorder | |||
terminal.findMatchHighlightBackground | |||
terminal.findMatchHighlightBorder | |||
terminal.foreground | |||
terminal.tab.activeBorder | |||
terminalCursor.background | |||
terminalCursor.foreground | |||
textBlockQuote.background | |||
textBlockQuote.border | |||
textCodeBlock.background | |||
textLink.activeForeground | |||
textLink.foreground | |||
textPreformat.background | |||
textPreformat.foreground | |||
textSeparator.foreground | |||
toolbar.activeBackground | |||
toolbar.hoverBackground | |||
toolbar.hoverOutline | |||
tree.inactiveIndentGuidesStroke | |||
tree.indentGuidesStroke | |||
tree.tableColumnsBorder | |||
tree.tableOddRowsBackground | |||
widget.border | |||
widget.shadow | |||
window.activeBorder | |||
window.inactiveBorder |
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 | |||
comment.block | |||
comment.block.documentation | |||
comment.line | |||
constant | |||
constant.character | |||
constant.character.escape | |||
constant.numeric | |||
constant.numeric.integer | |||
constant.numeric.float | |||
constant.numeric.hex | |||
constant.numeric.octal | |||
constant.other | |||
constant.other.placeholder | |||
constant.regexp | |||
constant.rgb-value | |||
entity | |||
entity.name | |||
entity.name.class | |||
entity.name.function | |||
entity.name.method | |||
entity.name.namespace | |||
entity.name.section | |||
entity.name.selector | |||
entity.name.tag | |||
entity.name.type | |||
entity.name.type.enum | |||
entity.name.type.interface | |||
entity.name.type.struct | |||
entity.other | |||
entity.other.attribute-name | |||
entity.other.inherited-class | |||
invalid | |||
invalid.deprecated | |||
invalid.illegal | |||
keyword | |||
keyword.control | |||
keyword.control.flow | |||
keyword.operator | |||
keyword.operator.new | |||
keyword.operator.assignment | |||
keyword.operator.arithmetic | |||
keyword.operator.logical | |||
keyword.other | |||
markup | |||
markup.bold | |||
markup.changed | |||
markup.deleted | |||
markup.heading | |||
markup.inline.raw | |||
markup.inserted | |||
markup.italic | |||
markup.list | |||
markup.list.numbered | |||
markup.list.unnumbered | |||
markup.other | |||
markup.quote | |||
markup.raw | |||
markup.underline | |||
markup.underline.link | |||
meta | |||
meta.block | |||
meta.cast | |||
meta.class | |||
meta.function | |||
meta.function-call | |||
meta.preprocessor | |||
meta.return-type | |||
meta.selector | |||
meta.tag | |||
meta.type.annotation | |||
meta.type | |||
punctuation.definition.string.begin | |||
punctuation.definition.string.end | |||
punctuation.separator | |||
storage | |||
storage.modifier | |||
storage.type | |||
string | |||
string.interpolated | |||
string.other | |||
string.quoted | |||
string.quoted.double | |||
string.quoted.other | |||
string.quoted.single | |||
string.quoted.triple | |||
string.regexp | |||
string.template | |||
string.unquoted | |||
support | |||
support.class | |||
support.constant | |||
support.function | |||
support.other | |||
support.type | |||
support.type.primitive | |||
support.type.property-name | |||
support.variable | |||
variable | |||
variable.function | |||
variable.language | |||
variable.name | |||
variable.other | |||
variable.other.constant | |||
variable.other.property | |||
variable.other.readwrite | |||
variable.parameter |
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}!`;
}