# ThemeEditor

Supply UI 1.1.0. Other parts.

The look as a theme, three plain choices (a brand colour, the greys, the page) and a few sliders. The page follows live. Inside a <form>, the theme is sent as JSON under `name`; pass the saved value to <ThemeStyle>.

## Options

| Option | Type | Default | What it does |
| --- | --- | --- | --- |
| `className` | `string` |  | More classes on the outer element, for layout around it (margins, grid placement), not to restyle it. |
| `defaultValue` | `unknown` |  | The saved theme (anything `normalizeTheme` accepts). |
| `name` | `string` | `'theme'` | Name of the hidden form field that carries the theme as JSON. |
| `onChange` | `(theme: Theme) => void` |  | Runs with the whole theme each time a choice or a slider changes it. |

## CSS parts

With the CSS in parts (`/ui/css/`), it needs: `components/button.css`, `components/fields.css`, `components/range-slider.css`, `components/table.css`, `components/segmented-control.css`, `components/input-group.css`, `components/calendar.css`, `components/button-group-toggle.css`, `components/carousel-arrows.css`, besides the ones every page loads.

## Other parts: notes

Parts of a bigger component (a `CardBody` of a `Card`, a `DialogTitle` of a `Dialog`) and pieces used inside others. Use them inside their component, as its page shows.
