Perception is a shadcn/ui theme built around a vivid green primary color (#6cf91a) with muted light green accents (#c8d0c2). The light mode uses a neutral background (#fcfefb). Dark mode keeps the vivid green primary (#6cf91a) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #050703black |
| Foreground | #060d02black | #fafbf9snow |
| Card | #f9fdf7mintcream | #070b04black |
| Card foreground | #040902black | #fcfdfcwhite |
| Popover | #f9fdf7mintcream | #070b04black |
| Popover foreground | #040902black | #fcfdfcwhite |
| Primary | #6cf91alawngreen | #6cf91alawngreen |
| Primary foreground | #1b4602darkgreen | #1b4602darkgreen |
| Secondary | #d5d9d3lightgrey | #21231fblack |
| Secondary foreground | #3c4139darkslategray | #b9bfb5silver |
| Muted | #d8e8cfgainsboro | #203017black |
| Muted foreground | #4d5946darkolivegreen | #adb9a6darkgray |
| Accent | #c8d0c2silver | #36412fdarkslategray |
| Accent foreground | #2f372adarkslategray | #cfd8calightgrey |
| Destructive | #dc2209firebrick | #f5260aorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6cf91alawngreen | #6cf91alawngreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.54:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.33:1 | AAA |
| Muted text | 5.76:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.90:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 8.41:1 | AAA |
| Muted text | 6.83:1 | AA |
| Accent | 7.33:1 | AAA |
| Destructive | 4.07:1 | AA Large |
Paste this into your globals.css to use Perception in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.005 133.635);
--foreground: oklch(0.147 0.029 132.04);
--muted: oklch(0.912 0.037 133.868);
--muted-foreground: oklch(0.446 0.034 134.105);
--popover: oklch(0.989 0.009 133.665);
--popover-foreground: oklch(0.127 0.025 131.764);
--card: oklch(0.989 0.009 133.665);
--card-foreground: oklch(0.127 0.025 131.764);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.869 0.263 138.069);
--primary-foreground: oklch(0.348 0.105 137.394);
--secondary: oklch(0.881 0.009 133.667);
--secondary-foreground: oklch(0.369 0.016 133.884);
--accent: oklch(0.848 0.021 133.764);
--accent-foreground: oklch(0.324 0.024 134.1);
--destructive: oklch(0.574 0.22 30.774);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.869 0.263 138.069);
--chart-1: oklch(0.869 0.263 138.069);
--chart-2: oklch(0.881 0.009 133.667);
--chart-3: oklch(0.848 0.021 133.764);
--chart-4: oklch(0.904 0.007 133.654);
--chart-5: oklch(0.878 0.268 138.232);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.016 132.392);
--foreground: oklch(0.986 0.002 133.621);
--muted: oklch(0.288 0.048 134.884);
--muted-foreground: oklch(0.772 0.03 133.85);
--popover: oklch(0.141 0.019 132.44);
--popover-foreground: oklch(0.993 0.001 133.613);
--card: oklch(0.141 0.019 132.44);
--card-foreground: oklch(0.993 0.001 133.613);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.869 0.263 138.069);
--primary-foreground: oklch(0.348 0.105 137.394);
--secondary: oklch(0.253 0.01 133.846);
--secondary-foreground: oklch(0.797 0.015 133.724);
--accent: oklch(0.36 0.034 134.235);
--accent-foreground: oklch(0.872 0.022 133.767);
--destructive: oklch(0.62 0.239 30.735);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.869 0.263 138.069);
--chart-1: oklch(0.869 0.263 138.069);
--chart-2: oklch(0.253 0.01 133.846);
--chart-3: oklch(0.36 0.034 134.235);
--chart-4: oklch(0.286 0.011 133.86);
--chart-5: oklch(0.878 0.268 138.232);
}