OpenSumi Default Themes
Publisher: opensumiThemes in package: 2
The default OpenSumi themes
The default OpenSumi themes
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.activeBorder | |||
activityBar.activeForeground | |||
activityBar.background | |||
activityBar.border | |||
activityBar.disableForeground | |||
activityBar.dropBackground | |||
activityBar.foreground | |||
activityBar.inactiveForeground | |||
activityBarBadge.background | |||
activityBarBadge.foreground | |||
badge.background | |||
badge.foreground | |||
checkbox.background | |||
checkbox.border | |||
descriptionForeground | |||
diffEditor.insertedTextBackground | |||
editor.background | |||
editor.findMatchHighlightBackground | |||
editorGroup.border | |||
editorGroup.dropBackground | |||
editorGroup.emptyBackground | |||
editorGroupHeader.tabsBackground | |||
editorSuggestWidget.selectedBackground | |||
errorForeground | |||
focusBorder | |||
foreground | |||
gitDecoration.addedResourceForeground | |||
gitDecoration.conflictingResourceForeground | — | — | |
gitDecoration.deletedResourceForeground | |||
gitDecoration.ignoredResourceForeground | |||
gitDecoration.modifiedResourceForeground | |||
gitDecoration.submoduleResourceForeground | |||
gitDecoration.untrackedResourceForeground | |||
icon.foreground | |||
input.background | |||
input.foreground | |||
input.placeholderForeground | |||
inputDropdown.searchMatchForeground | |||
inputIcon.foreground | |||
inputValidation.errorBackground | |||
inputValidation.errorBorder | |||
inputValidation.errorForeground | |||
inputValidation.errorText | |||
inputValidation.warningBackground | |||
inputValidation.warningBorder | |||
inputValidation.warningText | |||
keybinding.background | |||
kt.accentForeground | |||
kt.actionbar.disableForeground | |||
kt.actionbar.foreground | |||
kt.actionbar.selectionBackground | |||
kt.actionbar.selectionBorder | |||
kt.actionbar.separatorBackground | |||
kt.activityBar.dropUpBackground | |||
kt.button.disableBackground | |||
kt.button.disableBorder | |||
kt.button.disableForeground | |||
kt.checkbox.disableBackground | |||
kt.checkbox.disableForeground | |||
kt.checkbox.hoverBorder | |||
kt.checkbox.selectionBackground | |||
kt.checkbox.selectionForeground | |||
kt.dangerButton.background | |||
kt.dangerButton.clickBackground | |||
kt.dangerButton.foreground | |||
kt.dangerButton.hoverBackground | |||
kt.dangerGhostButton.border | |||
kt.dangerGhostButton.clickBorder | |||
kt.dangerGhostButton.clickForeground | |||
kt.dangerGhostButton.foreground | |||
kt.dangerGhostButton.hoverBorder | |||
kt.dangerGhostButton.hoverForeground | |||
kt.defaultButton.background | |||
kt.defaultButton.border | |||
kt.defaultButton.clickBackground | |||
kt.defaultButton.clickBorder | |||
kt.defaultButton.disableBackground | |||
kt.defaultButton.disableBorder | |||
kt.defaultButton.disableForeground | |||
kt.defaultButton.foreground | |||
kt.defaultButton.hoverBackground | |||
kt.defaultButton.hoverBorder | |||
kt.defaultButton.selectionBackground | |||
kt.defaultButton.selectionForeground | |||
kt.dirtyDot.foreground | |||
kt.disableForeground | |||
kt.editorBreadcrumb.borderDown | |||
kt.errorBackground | |||
kt.errorIconForeground | |||
kt.hintBackground | |||
kt.hintIconForeground | |||
kt.icon.clickForeground | |||
kt.icon.disableForeground | |||
kt.icon.foreground | |||
kt.icon.hoverBackground | |||
kt.icon.hoverForeground | |||
kt.icon.secondaryForeground | |||
kt.infoBackground | |||
kt.infoIconForeground | |||
kt.input.border | |||
kt.input.disableBackground | |||
kt.input.disableForeground | |||
kt.input.selectionBackground | |||
kt.linkButton.clickForeground | |||
kt.linkButton.disableForeground | |||
kt.linkButton.foreground | |||
kt.linkButton.hoverForeground | |||
kt.menu.descriptionForeground | |||
kt.menu.disableForeground | |||
kt.menubar.background | |||
kt.menubar.border | |||
kt.menubar.foreground | |||
kt.menubar.separatorBackground | |||
kt.modal.background | |||
kt.modal.foreground | |||
kt.modal.separatorBackground | |||
kt.modalErrorIcon.foreground | |||
kt.modalInfoIcon.foreground | |||
kt.modalSuccessIcon.foreground | |||
kt.modalWarningIcon.foreground | |||
kt.panel.secondaryForeground | |||
kt.panelTab.activeBackground | |||
kt.panelTab.activeForeground | |||
kt.panelTab.border | |||
kt.panelTab.inactiveBackground | |||
kt.panelTab.inactiveForeground | |||
kt.panelTitle.background | |||
kt.popover.background | |||
kt.popover.border | |||
kt.popover.foreground | |||
kt.popover.prominentBackground | |||
kt.primaryButton.background | |||
kt.primaryButton.clickBackground | |||
kt.primaryButton.foreground | |||
kt.primaryButton.hoverBackground | |||
kt.primaryGhostButton.border | |||
kt.primaryGhostButton.clickBorder | |||
kt.primaryGhostButton.clickForeground | |||
kt.primaryGhostButton.foreground | |||
kt.secondaryButton.border | |||
kt.secondaryButton.clickBorder | |||
kt.secondaryButton.clickForeground | |||
kt.secondaryButton.foreground | |||
kt.secondaryButton.hoverBorder | |||
kt.secondaryButton.hoverForeground | |||
kt.select.background | |||
kt.select.border | |||
kt.select.disableBackground | |||
kt.select.disableForeground | |||
kt.select.foreground | |||
kt.select.placeholderForeground | |||
kt.selectDropdown.background | |||
kt.selectDropdown.foreground | |||
kt.selectDropdown.hoverBackground | |||
kt.selectDropdown.selectionBackground | |||
kt.selectOption.activeBorder | |||
kt.statusbar.offline.background | |||
kt.successBackground | |||
kt.successIconForeground | |||
kt.tab.activeBorder | |||
kt.tab.activeForeground | |||
kt.tab.borderDown | |||
kt.tab.inactiveForeground | |||
kt.tree.activeSelectionBackground | |||
kt.tree.activeSelectionForeground | |||
kt.tree.hoverBackground | |||
kt.tree.hoverForeground | |||
kt.tree.inactiveSelectionBackground | |||
kt.tree.inactiveSelectionForeground | |||
kt.warningBackground | |||
kt.warningIconForeground | |||
kt.whiteGhostButton.border | |||
kt.whiteGhostButton.clickBorder | |||
kt.whiteGhostButton.clickForeground | |||
kt.whiteGhostButton.disableBackground | |||
kt.whiteGhostButton.disableBorder | |||
kt.whiteGhostButton.disableForeground | |||
kt.whiteGhostButton.foreground | |||
list.activeSelectionBackground | |||
list.activeSelectionForeground | |||
list.evenItemBackground | |||
list.headerBackground | |||
list.hoverBackground | |||
menu.background | |||
menu.foreground | |||
menu.selectionBackground | |||
menu.selectionForeground | |||
menu.separatorBackground | |||
menubar.selectionBackground | |||
menubar.selectionForeground | |||
message.background | |||
message.foreground | |||
messageErrorIcon.foreground | |||
messageInfoIcon.foreground | |||
messageSuccessIcon.foreground | |||
messageWarningIcon.foreground | |||
notifications.background | |||
notifications.foreground | |||
notificationsErrorIcon.foreground | |||
notificationsInfoIcon.foreground | |||
notificationsWarningIcon.foreground | |||
panel.background | |||
panel.border | |||
panel.foreground | |||
panel.selectionBackground | |||
panel.separatorBackground | |||
panelMenuBadge.background | |||
panelMenuBar.background | |||
panelMenuBarBadge.foreground | |||
panelTabBarActionIcon.Background | |||
panelTabBarError.foreground | |||
panelTitle.activeBorder | |||
panelTitle.activeForeground | |||
panelTitle.hoverForeground | |||
panelTitle.inactiveForeground | |||
selectDropdown.descriptionForeground | |||
selectDropdown.teamForeground | |||
sideBar.background | |||
sideBar.border | |||
sideBar.dropBackground | |||
sideBar.dropUpBackground | |||
sideBarSectionHeader.background | |||
sideBarSectionHeader.foreground | |||
sideBarTitle.foreground | |||
statusBar.background | |||
statusBar.debuggingBackground | |||
statusBar.foreground | |||
statusBar.noFolderBackground | |||
statusBarItem.activeBackground | |||
statusBarItem.hoverBackground | |||
statusBarItem.remoteBackground | |||
tab.activeBackground | |||
tab.activeForeground | |||
tab.border | |||
tab.inactiveBackground | |||
tab.inactiveForeground | |||
tab.unfocusedActiveBackground | |||
tab.unfocusedActiveForeground | |||
tab.unfocusedInactiveForeground | |||
terminal.background | |||
terminal.border | |||
terminal.foreground | |||
terminal.offlineBackground | |||
terminal.offlineForeground | |||
terminal.offlineLinkForeground | |||
terminal.selectionBackground | |||
tooltip.background | |||
tooltip.foreground | |||
widget.shadow |
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 | |||
entity | |||
entity.name | |||
entity.name.class | |||
entity.name.function | |||
entity.name.namespace | |||
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 | |||
meta | |||
meta.preprocessor | |||
meta.return-type | |||
meta.type | |||
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}!`;
}