Settings
Starting colors
The colors every other one is worked out from.
Action colors
The colors of buttons and links as they are pressed.
A column of settings beside what they change: a choice at the top, groups that open and close, and a footer to count and reset changes.A block is copied, not installed: take an example's code and the stylesheet at the foot of the page, and rename the site- prefix to your project's own.
Which theme the settings change, then two groups of them, the first open, and a footer that counts the changes and resets them.
The colors every other one is worked out from.
The colors of buttons and links as they are pressed.
Three groups of a page's settings, the first open. Nothing has changed yet, so the reset button is off.
Holds the settings of what sits beside it, such as a theme, a page or a chart: which version the settings change, the settings in groups that open and close, and a footer that says how many have changed and resets them.
Each group opens and closes on its own. Settings change what they set as they are edited, so the panel has no button to send them; the footer counts what changed and resets it. With nothing changed, the reset button is off.
| Key | What it does |
|---|---|
| Tab | Moves focus through the choice, each group's title, the settings of the open groups and the footer. |
| Down ArroworRight Arrow | In the choice, moves the choice to the next item. |
| Up ArroworLeft Arrow | In the choice, moves the choice to the previous item. |
| EnterorSpace | On a group's title, opens the group, or closes it when it is open. |
The settings panel's own layout, its classes under the site- prefix. The components inside it are drawn by the design system's stylesheet.
/* site-settings-panel — Settings panel, a block: a column of settings beside what they change, its choice at the
* top, its groups that open and close, and a footer that counts the changes and resets them. Copy it into your
* project and rename site- to your project's own prefix. The frame is the Card component, outline surface, in its
* panel layout; the segmented control, accordion, fields and inputs are the system's own. The block draws only the
* room inside a group, and hides the line after the last group, where the panel's own divider already runs. */
.site-settings-panel__group {
display: flex;
flex-direction: column;
gap: var(--smbk-space-stack-md);
}
.site-settings-panel__hint {
margin: 0;
}
/* The flat accordion ends every group with a divider; the last one would double the line over the footer. */
.site-settings-panel__groups > :last-child:not(details) {
display: none;
}