Octavo is a shadcn/ui theme built around a light purple primary color (#f2d3f8) with light green accents (#d9f8d3). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the light purple primary (#f2d3f8) on a neutral background (#060307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #060307black |
| Foreground | #0b030dblack | #f8f7f8whitesmoke |
| Card | #fdfcfdwhite | #060307black |
| Card foreground | #0b030dblack | #f8f7f8whitesmoke |
| Popover | #fdfcfdwhite | #060307black |
| Popover foreground | #0b030dblack | #f8f7f8whitesmoke |
| Primary | #f2d3f8lavender | #f2d3f8lavender |
| Primary foreground | #711683purple | #711683purple |
| Secondary | #d9f8d3gainsboro | #d9f8d3gainsboro |
| Secondary foreground | #0d2c07black | #0d2c07black |
| Muted | #eff7edhoneydew | #0a1208black |
| Muted foreground | #3e483cdarkslategray | #b9c3b7silver |
| Accent | #d9f8d3gainsboro | #d9f8d3gainsboro |
| Accent foreground | #0d2c07black | #0d2c07black |
| Destructive | #d93c0dorangered | #e7400dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2d3f8lavender | #f2d3f8lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 13.24:1 | AAA |
| Muted text | 8.74:1 | AAA |
| Accent | 13.24:1 | AAA |
| Destructive | 4.56:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 13.24:1 | AAA |
| Muted text | 10.50:1 | AAA |
| Accent | 13.24:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Octavo in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 320.536);
--foreground: oklch(0.12 0.033 322.306);
--muted: oklch(0.968 0.015 140.507);
--muted-foreground: oklch(0.39 0.024 140.44);
--popover: oklch(0.991 0.003 320.536);
--popover-foreground: oklch(0.12 0.033 322.306);
--card: oklch(0.991 0.003 320.536);
--card-foreground: oklch(0.12 0.033 322.306);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.904 0.058 320.628);
--primary-foreground: oklch(0.408 0.176 320.059);
--secondary: oklch(0.947 0.057 140.44);
--secondary-foreground: oklch(0.259 0.07 140.473);
--accent: oklch(0.947 0.057 140.44);
--accent-foreground: oklch(0.259 0.07 140.473);
--destructive: oklch(0.587 0.2 35.082);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.058 320.628);
--chart-1: oklch(0.904 0.058 320.628);
--chart-2: oklch(0.947 0.057 140.44);
--chart-3: oklch(0.947 0.057 140.44);
--chart-4: oklch(0.962 0.04 140.467);
--chart-5: oklch(0.903 0.061 320.632);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.016 321.798);
--foreground: oklch(0.976 0.003 320.536);
--muted: oklch(0.168 0.023 140.04);
--muted-foreground: oklch(0.805 0.02 140.493);
--popover: oklch(0.109 0.016 321.798);
--popover-foreground: oklch(0.976 0.003 320.536);
--card: oklch(0.109 0.016 321.798);
--card-foreground: oklch(0.976 0.003 320.536);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.904 0.058 320.628);
--primary-foreground: oklch(0.408 0.176 320.059);
--secondary: oklch(0.947 0.057 140.44);
--secondary-foreground: oklch(0.259 0.07 140.473);
--accent: oklch(0.947 0.057 140.44);
--accent-foreground: oklch(0.259 0.07 140.473);
--destructive: oklch(0.616 0.21 35.014);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.058 320.628);
--chart-1: oklch(0.904 0.058 320.628);
--chart-2: oklch(0.947 0.057 140.44);
--chart-3: oklch(0.947 0.057 140.44);
--chart-4: oklch(0.962 0.04 140.467);
--chart-5: oklch(0.903 0.061 320.632);
}