> ## Documentation Index
> Fetch the complete documentation index at: https://docs.calit.now/llms.txt
> Use this file to discover all available pages before exploring further.

# Style the button

> Match your site without changing Calit's internal markup.

The component inherits typography and exposes styling hooks through its shadow DOM.

```css theme={null}
cal-it {
  --cal-it-accent: #1241d2;
  --cal-it-on-accent: #fff;
  --cal-it-radius: 999px;
}

cal-it::part(button) { font-family: inherit; }
cal-it::part(menu) { border-radius: .75rem; }
cal-it::part(option):hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  cal-it { --cal-it-accent: #dfff58; --cal-it-on-accent: #101831; }
}
```

| Hook | Purpose |
| - | - |
| `--cal-it-accent`, `--cal-it-on-accent` | Trigger background and text color. |
| `--cal-it-radius` | Base radius used by the button and menu. |
| `::part(button)`, `::part(menu)` | Target the trigger or dropdown. |
| `::part(option)`, `::part(error)` | Target built-in choices or the validation message. |

Ordinary site selectors can style your own slotted links. Don't rely on the names of private shadow DOM classes. Verify your result in light and dark mode with a keyboard: Tab reaches controls, Enter or Space opens the button, Arrow Down moves into the menu, and Escape closes it. Preserve visible focus and legible contrast for hover and focus too.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.