Meaning is a shadcn/ui theme built around a muted deep green primary color (#0b0c08) with muted light green accents (#c9d5b8). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#0b0c08) on a green-tinted background (#080b04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080b04black |
| Foreground | #060803black | #fdfdfcwhite |
| Card | #ffffffwhite | #080b04black |
| Card foreground | #060803black | #fdfdfcwhite |
| Popover | #ffffffwhite | #080b04black |
| Popover foreground | #060803black | #fdfdfcwhite |
| Primary | #0b0c08black | #0b0c08black |
| Primary foreground | #a6b691darkseagreen | #a6b691darkseagreen |
| Secondary | #dfe4d8gainsboro | #22261cblack |
| Secondary foreground | #475138darkolivegreen | #bcc5afsilver |
| Muted | #dbe6ccgainsboro | #283319darkslategray |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #c9d5b8silver | #353f27darkslategray |
| Accent foreground | #303a22darkslategray | #ced8c0lightgrey |
| Destructive | #c32513firebrick | #e93925orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0b0c08black | #0b0c08black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 9.07:1 | AAA |
| Secondary button | 6.47:1 | AA |
| Muted text | 6.82:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 5.84:1 | AA |
| Text on background | 19.45:1 | AAA |
| Text on card | 19.45:1 | AAA |
| Primary button | 9.07:1 | AAA |
| Secondary button | 8.58:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 7.49:1 | AAA |
| Destructive | 4.13:1 | AA Large |
Paste this into your globals.css to use Meaning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.126 0.017 124.339);
--muted: oklch(0.909 0.037 125.61);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.126 0.017 124.339);
--card: oklch(1 0 180);
--card-foreground: oklch(0.126 0.017 124.339);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.152 0.009 125.463);
--primary-foreground: oklch(0.753 0.054 126.065);
--secondary: oklch(0.911 0.017 125.302);
--secondary-foreground: oklch(0.419 0.042 126.494);
--accent: oklch(0.857 0.042 125.728);
--accent-foreground: oklch(0.331 0.042 126.95);
--destructive: oklch(0.529 0.195 30.518);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.152 0.009 125.463);
--chart-1: oklch(0.152 0.009 125.463);
--chart-2: oklch(0.911 0.017 125.302);
--chart-3: oklch(0.857 0.042 125.728);
--chart-4: oklch(0.932 0.013 125.237);
--chart-5: oklch(0.153 0.011 125.506);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.018 124.499);
--foreground: oklch(0.994 0.002 125.075);
--muted: oklch(0.304 0.046 127.4);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.144 0.018 124.499);
--popover-foreground: oklch(0.994 0.002 125.075);
--card: oklch(0.144 0.018 124.499);
--card-foreground: oklch(0.994 0.002 125.075);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.152 0.009 125.463);
--primary-foreground: oklch(0.753 0.054 126.065);
--secondary: oklch(0.262 0.02 126.148);
--secondary-foreground: oklch(0.811 0.032 125.597);
--accent: oklch(0.352 0.042 126.85);
--accent-foreground: oklch(0.869 0.035 125.608);
--destructive: oklch(0.614 0.215 30.408);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.152 0.009 125.463);
--chart-1: oklch(0.152 0.009 125.463);
--chart-2: oklch(0.262 0.02 126.148);
--chart-3: oklch(0.352 0.042 126.85);
--chart-4: oklch(0.297 0.024 126.21);
--chart-5: oklch(0.153 0.011 125.506);
}