Curvy is a shadcn/ui theme built around a vivid violet primary color (#6e15b2) with vivid purple accents (#b215a8). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid violet primary (#6e15b2) on a neutral background (#060208).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #060208black |
| Foreground | #0b0311black | #faf8fcghostwhite |
| Card | #faf7fdghostwhite | #08030cblack |
| Card foreground | #08020dblack | #fdfbfdsnow |
| Popover | #faf7fdghostwhite | #08030cblack |
| Popover foreground | #08020dblack | #fdfbfdsnow |
| Primary | #6e15b2rebeccapurple | #6e15b2rebeccapurple |
| Primary foreground | #fdfafesnow | #fdfafesnow |
| Secondary | #1f15b2mediumblue | #1f15b2mediumblue |
| Secondary foreground | #fbfafeghostwhite | #fbfafeghostwhite |
| Muted | #d7d6ebgainsboro | #161429black |
| Muted foreground | #424054darkslategray | #adabbfdarkgray |
| Accent | #b215a8mediumvioletred | #b215a8mediumvioletred |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #8c1a03darkred | #fa3f19orangered |
| Destructive foreground | #fecdc3pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6e15b2rebeccapurple | #6e15b2rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.69:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 11.17:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 5.89:1 | AA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.51:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 8.41:1 | AAA |
| Secondary button | 11.17:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 5.89:1 | AA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Curvy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 311.047);
--foreground: oklch(0.127 0.037 311.133);
--muted: oklch(0.883 0.028 288.867);
--muted-foreground: oklch(0.382 0.033 287.806);
--popover: oklch(0.98 0.008 311.01);
--popover-foreground: oklch(0.114 0.032 312.846);
--card: oklch(0.98 0.008 311.01);
--card-foreground: oklch(0.114 0.032 312.846);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.442 0.218 303.134);
--primary-foreground: oklch(0.989 0.006 311.033);
--secondary: oklch(0.368 0.224 270.018);
--secondary-foreground: oklch(0.988 0.005 289.377);
--accent: oklch(0.535 0.231 331.567);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.416 0.152 32.608);
--destructive-foreground: oklch(0.888 0.057 31.312);
--ring: oklch(0.442 0.218 303.134);
--chart-1: oklch(0.442 0.218 303.134);
--chart-2: oklch(0.368 0.224 270.018);
--chart-3: oklch(0.535 0.231 331.567);
--chart-4: oklch(0.388 0.237 269.821);
--chart-5: oklch(0.444 0.222 302.66);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.024 313.021);
--foreground: oklch(0.982 0.006 311.033);
--muted: oklch(0.206 0.041 285.257);
--muted-foreground: oklch(0.75 0.027 288.783);
--popover: oklch(0.117 0.028 312.678);
--popover-foreground: oklch(0.991 0.003 311.059);
--card: oklch(0.117 0.028 312.678);
--card-foreground: oklch(0.991 0.003 311.059);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.442 0.218 303.134);
--primary-foreground: oklch(0.989 0.006 311.033);
--secondary: oklch(0.368 0.224 270.018);
--secondary-foreground: oklch(0.988 0.005 289.377);
--accent: oklch(0.535 0.231 331.567);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.648 0.228 32.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.442 0.218 303.134);
--chart-1: oklch(0.442 0.218 303.134);
--chart-2: oklch(0.368 0.224 270.018);
--chart-3: oklch(0.535 0.231 331.567);
--chart-4: oklch(0.388 0.237 269.821);
--chart-5: oklch(0.444 0.222 302.66);
}