Certainty is a shadcn/ui theme built around a muted green primary color (#bdc2b7) with muted green accents (#b8c2b7). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted green primary (#bdc2b7) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #030302black |
| Foreground | #0e1504black | #fdfdfcwhite |
| Card | #fafcf8snow | #050703black |
| Card foreground | #0b1104black | #ffffffwhite |
| Popover | #fafcf8snow | #050703black |
| Popover foreground | #0b1104black | #ffffffwhite |
| Primary | #bdc2b7silver | #bdc2b7silver |
| Primary foreground | #242721darkslategray | #242721darkslategray |
| Secondary | #c2c1b7silver | #c2c1b7silver |
| Secondary foreground | #272621darkslategray | #272621darkslategray |
| Muted | #e7e6dagainsboro | #252418black |
| Muted foreground | #4c4b3edarkslategray | #c1c0b3silver |
| Accent | #b8c2b7silver | #b8c2b7silver |
| Accent foreground | #212721black | #212721black |
| Destructive | #752001maroon | #fe4501orangered |
| Destructive foreground | #ffc0a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bdc2b7silver | #bdc2b7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.33:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 8.34:1 | AAA |
| Secondary button | 8.40:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 3.47:1 | AA Large |
Paste this into your globals.css to use Certainty in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 126.469);
--foreground: oklch(0.183 0.035 128.25);
--muted: oklch(0.922 0.016 104.257);
--muted-foreground: oklch(0.41 0.021 104.812);
--popover: oklch(0.989 0.006 126.51);
--popover-foreground: oklch(0.166 0.03 127.171);
--card: oklch(0.989 0.006 126.51);
--card-foreground: oklch(0.166 0.03 127.171);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.807 0.016 126.677);
--primary-foreground: oklch(0.266 0.011 126.967);
--secondary: oklch(0.81 0.014 104.262);
--secondary-foreground: oklch(0.268 0.01 104.578);
--accent: oklch(0.803 0.018 143.995);
--accent-foreground: oklch(0.263 0.013 143.835);
--destructive: oklch(0.376 0.124 37.408);
--destructive-foreground: oklch(0.858 0.079 40.868);
--ring: oklch(0.807 0.016 126.677);
--chart-1: oklch(0.807 0.016 126.677);
--chart-2: oklch(0.81 0.014 104.262);
--chart-3: oklch(0.803 0.018 143.995);
--chart-4: oklch(0.832 0.012 104.221);
--chart-5: oklch(0.811 0.021 126.769);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.01 125.8);
--foreground: oklch(0.994 0.002 126.454);
--muted: oklch(0.258 0.021 105.238);
--muted-foreground: oklch(0.806 0.018 104.349);
--popover: oklch(0.123 0.013 125.8);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.123 0.013 125.8);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.807 0.016 126.677);
--primary-foreground: oklch(0.266 0.011 126.967);
--secondary: oklch(0.81 0.014 104.262);
--secondary-foreground: oklch(0.268 0.01 104.578);
--accent: oklch(0.803 0.018 143.995);
--accent-foreground: oklch(0.263 0.013 143.835);
--destructive: oklch(0.658 0.228 35.33);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.807 0.016 126.677);
--chart-1: oklch(0.807 0.016 126.677);
--chart-2: oklch(0.81 0.014 104.262);
--chart-3: oklch(0.803 0.018 143.995);
--chart-4: oklch(0.832 0.012 104.221);
--chart-5: oklch(0.811 0.021 126.769);
}