modus_operandi
Publisher: Mihail DolghintevThemes in package: 1
Emacs modus operandi
Emacs modus operandi
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 |
|---|---|---|---|
activityBar.activeBackground | |||
activityBar.activeBorder | |||
activityBar.activeFocusBorder | |||
activityBar.background | |||
activityBar.border | |||
activityBar.foreground | |||
activityBar.inactiveForeground | |||
activityBarBadge.background | |||
activityBarBadge.foreground | |||
activityBarTop.activeBackground | |||
activityBarTop.background | |||
button.border | |||
commandCenter.debuggingBackground | |||
contrastActiveBorder | |||
contrastBorder | |||
debugIcon.breakpointForeground | |||
debugTokenExpression.name | |||
debugToolBar.border | |||
diffEditor.border | |||
diffEditor.insertedTextBorder | |||
diffEditor.removedTextBorder | |||
diffEditorGutter.insertedLineBackground | |||
diffEditorGutter.removedLineBackground | |||
diffEditorOverview.insertedForeground | |||
diffEditorOverview.removedForeground | |||
dropdown.listBackground | |||
editor.background | |||
editor.findMatchBackground | |||
editor.findMatchBorder | |||
editor.findMatchForeground | |||
editor.findMatchHighlightBackground | |||
editor.findMatchHighlightBorder | |||
editor.findMatchHighlightForeground | |||
editor.findRangeHighlightBorder | |||
editor.foreground | |||
editor.hoverHighlightBackground | |||
editor.lineHighlightBackground | |||
editor.rangeHighlightBorder | |||
editor.selectionBackground | |||
editor.selectionForeground | |||
editor.selectionHighlightBackground | |||
editor.selectionHighlightBorder | |||
editor.snippetFinalTabstopHighlightBackground | |||
editor.snippetTabstopHighlightBorder | |||
editor.symbolHighlightBorder | |||
editor.wordHighlightBackground | |||
editor.wordHighlightBorder | |||
editor.wordHighlightStrongBorder | |||
editor.wordHighlightTextBorder | |||
editorCursor.foreground | |||
editorError.background | |||
editorError.border | |||
editorGhostText.background | |||
editorGhostText.border | |||
editorGroup.dropIntoPromptBorder | |||
editorGroup.emptyBackground | |||
editorGroup.focusedEmptyBorder | |||
editorGroupHeader.border | |||
editorGroupHeader.tabsBorder | |||
editorHint.border | |||
editorIndentGuide.activeBackground1 | |||
editorIndentGuide.background1 | |||
editorInfo.background | |||
editorInfo.border | |||
editorLineNumber.activeForeground | |||
editorLineNumber.dimmedForeground | |||
editorLineNumber.foreground | |||
editorOverviewRuler.background | |||
editorStickyScroll.border | |||
editorSuggestWidget.selectedIconForeground | |||
editorUnicodeHighlight.background | |||
editorUnnecessaryCode.border | |||
editorWarning.background | |||
editorWarning.border | |||
editorWhitespace.foreground | |||
editorWidget.resizeBorder | |||
inputValidation.errorForeground | |||
inputValidation.infoForeground | |||
inputValidation.warningForeground | |||
list.activeSelectionIconForeground | |||
list.filterMatchBorder | |||
list.focusAndSelectionOutline | |||
list.focusBackground | |||
list.focusForeground | |||
list.hoverForeground | |||
list.inactiveFocusBackground | |||
list.inactiveFocusOutline | |||
list.inactiveSelectionForeground | |||
list.inactiveSelectionIconForeground | |||
menu.border | |||
menu.selectionBorder | |||
menubar.selectionBorder | |||
merge.border | |||
minimap.background | |||
notebook.cellHoverBackground | |||
notebook.focusedCellBackground | |||
notebook.inactiveSelectedCellBorder | |||
notebook.outputContainerBackgroundColor | |||
notebook.outputContainerBorderColor | |||
notificationCenter.border | |||
notificationCenterHeader.foreground | |||
notificationToast.border | |||
outputView.background | |||
outputViewStickyScroll.background | |||
panelSectionHeader.border | |||
panelSectionHeader.foreground | |||
panelStickyScroll.border | |||
panelTitle.border | |||
peekViewEditor.matchHighlightBorder | |||
quickInputList.focusIconForeground | |||
radio.inactiveBackground | |||
radio.inactiveForeground | |||
searchEditor.findMatchBorder | |||
selection.background | |||
sideBar.border | |||
sideBar.foreground | |||
sideBarActivityBarTop.border | |||
sideBarSectionHeader.border | |||
sideBarSectionHeader.foreground | |||
sideBarStickyScroll.border | |||
sideBarTitle.border | |||
sideBarTitle.foreground | |||
statusBar.background | |||
statusBar.border | |||
statusBar.debuggingBackground | |||
statusBar.debuggingForeground | |||
statusBar.foreground | |||
statusBar.noFolderBackground | |||
statusBar.noFolderBorder | |||
statusBar.noFolderForeground | |||
tab.activeBorder | |||
tab.activeBorderTop | |||
tab.hoverBackground | |||
tab.hoverBorder | |||
tab.hoverForeground | |||
tab.selectedBorderTop | |||
tab.unfocusedActiveBorder | |||
tab.unfocusedActiveBorderTop | |||
tab.unfocusedHoverBackground | |||
tab.unfocusedHoverBorder | |||
tab.unfocusedHoverForeground | |||
terminal.background | |||
terminal.findMatchBorder | |||
terminal.findMatchHighlightBorder | |||
terminal.selectionForeground | |||
terminal.tab.activeBorder | |||
terminalCursor.background | |||
terminalCursor.foreground | |||
terminalStickyScroll.background | |||
terminalStickyScroll.border | |||
testing.message.error.lineBackground | |||
testing.message.info.lineBackground | |||
titleBar.border | |||
toolbar.hoverOutline | |||
widget.border | |||
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.numeric | |||
constant.numeric.integer | |||
constant.numeric.float | |||
constant.numeric.hex | |||
constant.numeric.octal | |||
entity | |||
entity.name | |||
entity.name.function | |||
entity.name.type | |||
entity.name.type.enum | |||
entity.name.type.interface | |||
entity.name.type.struct | |||
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.heading | |||
markup.inline.raw | |||
markup.italic | |||
meta | |||
punctuation.definition.bracket | |||
punctuation.definition.comment | |||
punctuation.definition.string.begin | |||
punctuation.definition.string.end | |||
punctuation.separator | |||
punctuation.separator.continuation | |||
punctuation.terminator | |||
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.function | |||
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}!`;
}