Ladybug is a shadcn/ui theme built around a light violet primary color (#f1edf7) with light green accents (#edf7f1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#f1edf7) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #0b0416black | #fcfcfdwhite |
| Card | #ffffffwhite | #020203black |
| Card foreground | #0b0416black | #fcfcfdwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #0b0416black | #fcfcfdwhite |
| Primary | #f1edf7whitesmoke | #f1edf7whitesmoke |
| Primary foreground | #53357edarkslateblue | #53357edarkslateblue |
| Secondary | #f7f1edlinen | #f7f1edlinen |
| Secondary foreground | #362417black | #362417black |
| Muted | #eee7e2linen | #1d1611black |
| Muted foreground | #565452dimgray | #adaba9darkgray |
| Accent | #edf7f1honeydew | #edf7f1honeydew |
| Accent foreground | #173624darkslategray | #173624darkslategray |
| Destructive | #6c0b04maroon | #f8473atomato |
| Destructive foreground | #fcaca6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1edf7whitesmoke | #f1edf7whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.13:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 13.24:1 | AAA |
| Muted text | 6.16:1 | AA |
| Accent | 12.10:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 8.36:1 | AAA |
| Secondary button | 13.24:1 | AAA |
| Muted text | 7.81:1 | AAA |
| Accent | 12.10:1 | AAA |
| Destructive | 3.53:1 | AA Large |
Paste this into your globals.css to use Ladybug in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.043 302.634);
--muted: oklch(0.932 0.01 58.217);
--muted-foreground: oklch(0.447 0.003 58.255);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.133 0.043 302.634);
--card: oklch(1 0 180);
--card-foreground: oklch(0.133 0.043 302.634);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.953 0.015 304.832);
--primary-foreground: oklch(0.401 0.12 300.28);
--secondary: oklch(0.963 0.009 58.235);
--secondary-foreground: oklch(0.278 0.036 56.189);
--accent: oklch(0.968 0.014 160.678);
--accent-foreground: oklch(0.303 0.05 156.087);
--destructive: oklch(0.341 0.13 30.048);
--destructive-foreground: oklch(0.82 0.095 23.861);
--ring: oklch(0.953 0.015 304.832);
--chart-1: oklch(0.953 0.015 304.832);
--chart-2: oklch(0.963 0.009 58.235);
--chart-3: oklch(0.968 0.014 160.678);
--chart-4: oklch(0.985 0.003 58.313);
--chart-5: oklch(0.952 0.016 304.817);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 305.661);
--foreground: oklch(0.991 0.002 305.023);
--muted: oklch(0.207 0.014 57.371);
--muted-foreground: oklch(0.741 0.003 58.306);
--popover: oklch(0.085 0.01 305.661);
--popover-foreground: oklch(0.991 0.002 305.023);
--card: oklch(0.085 0.01 305.661);
--card-foreground: oklch(0.991 0.002 305.023);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.953 0.015 304.832);
--primary-foreground: oklch(0.401 0.12 300.28);
--secondary: oklch(0.963 0.009 58.235);
--secondary-foreground: oklch(0.278 0.036 56.189);
--accent: oklch(0.968 0.014 160.678);
--accent-foreground: oklch(0.303 0.05 156.087);
--destructive: oklch(0.653 0.215 28.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.953 0.015 304.832);
--chart-1: oklch(0.953 0.015 304.832);
--chart-2: oklch(0.963 0.009 58.235);
--chart-3: oklch(0.968 0.014 160.678);
--chart-4: oklch(0.985 0.003 58.313);
--chart-5: oklch(0.952 0.016 304.817);
}