Cultured is a shadcn/ui theme built around a near-white primary color (#fbfefc) with near-white accents (#fefcfb). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the near-white primary (#fbfefc) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #000000black |
| Foreground | #000000black | #fcfdfcwhite |
| Card | #fbfdfcwhite | #000000black |
| Card foreground | #000000black | #fcfdfcwhite |
| Popover | #fbfdfcwhite | #000000black |
| Popover foreground | #000000black | #fcfdfcwhite |
| Primary | #fbfefcwhite | #fbfefcwhite |
| Primary foreground | #124f1fdarkgreen | #124f1fdarkgreen |
| Secondary | #fcfbfewhite | #fcfbfewhite |
| Secondary foreground | #4025a2darkslateblue | #4025a2darkslateblue |
| Muted | #e1dfe7gainsboro | #1a1820black |
| Muted foreground | #3f3e41darkslategray | #bfbec1silver |
| Accent | #fefcfbsnow | #fefcfbsnow |
| Accent foreground | #a24025sienna | #a24025sienna |
| Destructive | #bc280bfirebrick | #f35030tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fbfefcwhite | #fbfefcwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.62:1 | AAA |
| Text on card | 20.62:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 10.14:1 | AAA |
| Muted text | 8.02:1 | AAA |
| Accent | 6.21:1 | AA |
| Destructive | 6.08:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 9.55:1 | AAA |
| Secondary button | 10.14:1 | AAA |
| Muted text | 9.51:1 | AAA |
| Accent | 6.21:1 | AA |
| Destructive | 3.49:1 | AA Large |
Paste this into your globals.css to use Cultured in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.003 152.572);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.012 296.099);
--muted-foreground: oklch(0.367 0.004 296.114);
--popover: oklch(0.993 0.003 152.572);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.003 152.572);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.994 0.005 152.542);
--primary-foreground: oklch(0.377 0.099 146.96);
--secondary: oklch(0.989 0.004 296.251);
--secondary-foreground: oklch(0.389 0.186 283.474);
--accent: oklch(0.991 0.003 36.002);
--accent-foreground: oklch(0.501 0.137 36.186);
--destructive: oklch(0.519 0.187 32.475);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.005 152.542);
--chart-1: oklch(0.994 0.005 152.542);
--chart-2: oklch(0.989 0.004 296.251);
--chart-3: oklch(0.991 0.003 36.002);
--chart-4: oklch(1.022 0.008 116.482);
--chart-5: oklch(0.994 0.005 152.539);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.003 152.575);
--muted: oklch(0.214 0.017 294.897);
--muted-foreground: oklch(0.803 0.004 296.249);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.003 152.575);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.003 152.575);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.994 0.005 152.542);
--primary-foreground: oklch(0.377 0.099 146.96);
--secondary: oklch(0.989 0.004 296.251);
--secondary-foreground: oklch(0.389 0.186 283.474);
--accent: oklch(0.991 0.003 36.002);
--accent-foreground: oklch(0.501 0.137 36.186);
--destructive: oklch(0.653 0.204 33.191);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.994 0.005 152.542);
--chart-1: oklch(0.994 0.005 152.542);
--chart-2: oklch(0.989 0.004 296.251);
--chart-3: oklch(0.991 0.003 36.002);
--chart-4: oklch(1.022 0.008 116.482);
--chart-5: oklch(0.994 0.005 152.539);
}