Diam is a shadcn/ui theme built around a light green primary color (#f5f6ea) with light indigo accents (#ebeaf6). The light mode uses a neutral background (#fcfcf7). Dark mode keeps the light green primary (#f5f6ea) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf7snow | #000000black |
| Foreground | #0c0d02black | #fbfbf9snow |
| Card | #fcfcf7snow | #000000black |
| Card foreground | #0c0d02black | #fbfbf9snow |
| Popover | #fcfcf7snow | #000000black |
| Popover foreground | #0c0d02black | #fbfbf9snow |
| Primary | #f5f6ealinen | #f5f6ealinen |
| Primary foreground | #2f3216darkslategray | #2f3216darkslategray |
| Secondary | #ebeaf6lavender | #ebeaf6lavender |
| Secondary foreground | #3b3579darkslateblue | #3b3579darkslateblue |
| Muted | #cfcde5lightgrey | #1c1a32midnightblue |
| Muted foreground | #3e3d48darkslategray | #b8b7c2silver |
| Accent | #ebeaf6lavender | #ebeaf6lavender |
| Accent foreground | #3b3579darkslateblue | #3b3579darkslateblue |
| Destructive | #db4206orangered | #f94f0borangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f5f6ealinen | #f5f6ealinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 12.08:1 | AAA |
| Secondary button | 8.92:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 8.92:1 | AAA |
| Destructive | 4.38:1 | AA Large |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 12.08:1 | AAA |
| Secondary button | 8.92:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 8.92:1 | AAA |
| Destructive | 3.42:1 | AA Large |
Paste this into your globals.css to use Diam in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.007 110.373);
--foreground: oklch(0.156 0.028 112.551);
--muted: oklch(0.856 0.034 289.493);
--muted-foreground: oklch(0.365 0.018 289.292);
--popover: oklch(0.991 0.007 110.373);
--popover-foreground: oklch(0.156 0.028 112.551);
--card: oklch(0.991 0.007 110.373);
--card-foreground: oklch(0.156 0.028 112.551);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.968 0.016 110.55);
--primary-foreground: oklch(0.306 0.045 112.95);
--secondary: oklch(0.94 0.016 289.925);
--secondary-foreground: oklch(0.373 0.112 283.333);
--accent: oklch(0.94 0.016 289.925);
--accent-foreground: oklch(0.373 0.112 283.333);
--destructive: oklch(0.596 0.198 36.873);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.016 110.55);
--chart-1: oklch(0.968 0.016 110.55);
--chart-2: oklch(0.94 0.016 289.925);
--chart-3: oklch(0.94 0.016 289.925);
--chart-4: oklch(0.97 0.008 290.093);
--chart-5: oklch(0.969 0.017 110.573);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.002 110.29);
--muted: oklch(0.234 0.046 286.022);
--muted-foreground: oklch(0.785 0.015 289.887);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.002 110.29);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.002 110.29);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.968 0.016 110.55);
--primary-foreground: oklch(0.306 0.045 112.95);
--secondary: oklch(0.94 0.016 289.925);
--secondary-foreground: oklch(0.373 0.112 283.333);
--accent: oklch(0.94 0.016 289.925);
--accent-foreground: oklch(0.373 0.112 283.333);
--destructive: oklch(0.659 0.216 37.176);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.968 0.016 110.55);
--chart-1: oklch(0.968 0.016 110.55);
--chart-2: oklch(0.94 0.016 289.925);
--chart-3: oklch(0.94 0.016 289.925);
--chart-4: oklch(0.97 0.008 290.093);
--chart-5: oklch(0.969 0.017 110.573);
}