Theme builder
Choose an accent for light and dark, set the grid unit, check the contrast and copy the CSS.
Studio invoice
OpenAmount due
CHF 840.00
Due
Studio invoice
OpenAmount due
CHF 840.00
Due
Text contrast
WCAG AA requires 4.5:1 for normal text. A button label switches to black when white falls below that threshold.
| Check | Light | Dark |
|---|---|---|
| Button label on accent | 4.63:1 · Pass | 6.58:1 · Pass |
| Accent text on background | 4.63:1 · Pass | 6.58:1 · Pass |
Copy the theme
Load after Alpina’s stylesheet. Set data-al-theme to light, dark or auto on your container.