Content is a shadcn/ui theme built around a green primary color (#8fa61c) with muted light green accents (#cbcebb). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#8fa61c) on a green-tinted background (#0d0f06).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #0d0f06black |
| Foreground | #0f1203black | #f8f8f6whitesmoke |
| Card | #fcfdf7snow | #111307black |
| Card foreground | #0b0d02black | #fafbf9snow |
| Popover | #fcfdf7snow | #111307black |
| Popover foreground | #0b0d02black | #fafbf9snow |
| Primary | #8fa61colivedrab | #8fa61colivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #dbdcd6gainsboro | #1c1e15black |
| Secondary foreground | #43453bdarkslategray | #bbc0a5silver |
| Muted | #f5f7eewhitesmoke | #101108black |
| Muted foreground | #4a4a4adarkslategray | #b5b5b5silver |
| Accent | #cbcebbsilver | #2d311cdarkslategray |
| Accent foreground | #303224darkslategray | #cbd0aesilver |
| Destructive | #a71701darkred | #fe2706orangered |
| Destructive foreground | #ffe0dbmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8fa61colivedrab | #8fa61colivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.72:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 8.11:1 | AAA |
| Destructive | 6.10:1 | AA |
| Text on background | 18.15:1 | AAA |
| Text on card | 18.11:1 | AAA |
| Primary button | 7.61:1 | AAA |
| Secondary button | 8.98:1 | AAA |
| Muted text | 9.25:1 | AAA |
| Accent | 8.43:1 | AAA |
| Destructive | 3.81:1 | AA Large |
Paste this into your globals.css to use Content in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 114.139);
--foreground: oklch(0.173 0.031 116.538);
--muted: oklch(0.972 0.012 114.293);
--muted-foreground: oklch(0.409 0 190.305);
--popover: oklch(0.991 0.008 114.213);
--popover-foreground: oklch(0.154 0.027 115.697);
--card: oklch(0.991 0.008 114.213);
--card-foreground: oklch(0.154 0.027 115.697);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.683 0.153 119.433);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.891 0.008 114.24);
--secondary-foreground: oklch(0.385 0.017 114.882);
--accent: oklch(0.843 0.026 114.632);
--accent-foreground: oklch(0.311 0.024 115.496);
--destructive: oklch(0.467 0.18 31.359);
--destructive-foreground: oklch(0.931 0.035 28.166);
--ring: oklch(0.683 0.153 119.433);
--chart-1: oklch(0.683 0.153 119.433);
--chart-2: oklch(0.891 0.008 114.24);
--chart-3: oklch(0.843 0.026 114.632);
--chart-4: oklch(0.913 0.007 114.201);
--chart-5: oklch(0.691 0.157 119.601);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.163 0.02 115.8);
--foreground: oklch(0.98 0.003 114.124);
--muted: oklch(0.174 0.018 115.901);
--muted-foreground: oklch(0.773 0 180);
--popover: oklch(0.179 0.023 116.304);
--popover-foreground: oklch(0.986 0.002 114.104);
--card: oklch(0.179 0.023 116.304);
--card-foreground: oklch(0.986 0.002 114.104);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.683 0.153 119.433);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.23 0.016 115.376);
--secondary-foreground: oklch(0.796 0.036 114.905);
--accent: oklch(0.302 0.035 116.256);
--accent-foreground: oklch(0.846 0.047 115.092);
--destructive: oklch(0.637 0.246 30.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.683 0.153 119.433);
--chart-1: oklch(0.683 0.153 119.433);
--chart-2: oklch(0.23 0.016 115.376);
--chart-3: oklch(0.302 0.035 116.256);
--chart-4: oklch(0.266 0.02 115.481);
--chart-5: oklch(0.691 0.157 119.601);
}