Yawning is a shadcn/ui theme built around a deep green primary color (#1a220b) with muted light green accents (#d5d8cf). The light mode uses a neutral background (#fdfdfb). Dark mode keeps the deep green primary (#1a220b) on a green-tinted background (#090c04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdfbsnow | #090c04black |
| Foreground | #0f1504black | #f8faf5whitesmoke |
| Card | #fdfdfbsnow | #090c04black |
| Card foreground | #0f1504black | #f8faf5whitesmoke |
| Popover | #fdfdfbsnow | #090c04black |
| Popover foreground | #0f1504black | #f8faf5whitesmoke |
| Primary | #1a220bblack | #1a220bblack |
| Primary foreground | #90bb3eyellowgreen | #90bb3eyellowgreen |
| Secondary | #d5d8cflightgrey | #2b2f23darkslategray |
| Secondary foreground | #3d4134darkslategray | #c5cbb9silver |
| Muted | #f1f4ecwhitesmoke | #10130bblack |
| Muted foreground | #53574cdarkolivegreen | #afb3a8darkgray |
| Accent | #d5d8cflightgrey | #2b2f23darkslategray |
| Accent foreground | #3d4134darkslategray | #c5cbb9silver |
| Destructive | #871d08darkred | #f2401corangered |
| Destructive foreground | #fccec5pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1a220bblack | #1a220bblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.31:1 | AAA |
| Text on card | 18.31:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.79:1 | AAA |
| Primary button | 7.29:1 | AAA |
| Secondary button | 8.24:1 | AAA |
| Muted text | 8.75:1 | AAA |
| Accent | 8.24:1 | AAA |
| Destructive | 3.80:1 | AA Large |
Paste this into your globals.css to use Yawning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 122.258);
--foreground: oklch(0.186 0.035 124.633);
--muted: oklch(0.962 0.011 122.392);
--muted-foreground: oklch(0.451 0.019 122.876);
--popover: oklch(0.994 0.003 122.258);
--popover-foreground: oklch(0.186 0.035 124.633);
--card: oklch(0.994 0.003 122.258);
--card-foreground: oklch(0.186 0.035 124.633);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.239 0.041 125.337);
--primary-foreground: oklch(0.737 0.159 126.616);
--secondary: oklch(0.878 0.013 122.453);
--secondary-foreground: oklch(0.367 0.022 123.183);
--accent: oklch(0.878 0.013 122.453);
--accent-foreground: oklch(0.367 0.022 123.183);
--destructive: oklch(0.409 0.144 32.738);
--destructive-foreground: oklch(0.889 0.053 31.281);
--ring: oklch(0.239 0.041 125.337);
--chart-1: oklch(0.239 0.041 125.337);
--chart-2: oklch(0.878 0.013 122.453);
--chart-3: oklch(0.878 0.013 122.453);
--chart-4: oklch(0.9 0.011 122.405);
--chart-5: oklch(0.241 0.043 125.509);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.02 122.021);
--foreground: oklch(0.982 0.007 122.33);
--muted: oklch(0.182 0.016 123.663);
--muted-foreground: oklch(0.761 0.017 122.557);
--popover: oklch(0.146 0.02 122.021);
--popover-foreground: oklch(0.982 0.007 122.33);
--card: oklch(0.146 0.02 122.021);
--card-foreground: oklch(0.982 0.007 122.33);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.239 0.041 125.337);
--primary-foreground: oklch(0.737 0.159 126.616);
--secondary: oklch(0.297 0.022 123.419);
--secondary-foreground: oklch(0.832 0.026 122.708);
--accent: oklch(0.297 0.022 123.419);
--accent-foreground: oklch(0.832 0.026 122.708);
--destructive: oklch(0.634 0.219 32.866);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.239 0.041 125.337);
--chart-1: oklch(0.239 0.041 125.337);
--chart-2: oklch(0.297 0.022 123.419);
--chart-3: oklch(0.297 0.022 123.419);
--chart-4: oklch(0.33 0.026 123.467);
--chart-5: oklch(0.241 0.043 125.509);
}