# Appearance Settings

> The Appearance section of a settings page. Light, Dark and System cards each show a miniature app window (System split diagonally), and every preview follows the section live: the accent tints it, density spaces its rows, sidebar side flips it, high contrast darkens it. Plus density cards, a font size slider with a live sample, reduced motion and high contrast switches, and Reset to defaults.

- Slug: `appearance-settings`
- Category: [Settings](https://www.assembli.design/category/settings.md)
- Type: component
- Tags: settings, appearance, theme, dark-mode, accent, density, font-size, preferences
- npm dependencies: @base-ui/react, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/appearance-settings
- Page: https://www.assembli.design/components/appearance-settings

![Appearance Settings preview](https://www.assembli.design/thumbnails/appearance-settings-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `value` | `AppearanceValue` |  |  |
| `defaultValue` | `AppearanceValue` |  |  |
| `onValueChange` | `(value: AppearanceValue) => void` |  | Called on every change. Apply the theme, accent and so on here; the component only previews them. |
| `defaults` | `AppearanceValue` | `DEFAULT_APPEARANCE` | What "Reset to defaults" returns to. |
| `accents` | `AppearanceAccent[]` | `DEFAULT_ACCENTS` |  |
| `fontSizes` | `{ min: number; max: number }` | `{ min: 12, max: 18 }` | Font size range in px. |
| `title` | `React.ReactNode` | `"Appearance"` |  |
| `description` | `React.ReactNode` | `"Make the app yours. Changes apply on this device right awa…` |  |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/appearance-settings/appearance-settings.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/appearance-settings
```

Registry item JSON: https://www.assembli.design/r/appearance-settings.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
