Yawning is a shadcn/ui theme built around a muted red primary color (#ae9189) with muted yellow accents (#aea489). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted red primary (#ae9189) on a neutral background (#040202).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #040202black |
| Foreground | #150804black | #ffffffwhite |
| Card | #fefcfbsnow | #040202black |
| Card foreground | #150804black | #ffffffwhite |
| Popover | #fefcfbsnow | #040202black |
| Popover foreground | #150804black | #ffffffwhite |
| Primary | #ae9189rosybrown | #ae9189rosybrown |
| Primary foreground | #030202black | #030202black |
| Secondary | #ae8993rosybrown | #ae8993rosybrown |
| Secondary foreground | #030202black | #030202black |
| Muted | #e9d8ddgainsboro | #27161bblack |
| Muted foreground | #675f62dimgray | #a0989adarkgray |
| Accent | #aea489rosybrown | #aea489rosybrown |
| Accent foreground | #030302black | #030302black |
| Destructive | #b50a08firebrick | #eb0e0ared |
| Destructive foreground | #fef1f0seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ae9189rosybrown | #ae9189rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 4.50:1 | AA |
| Accent | 8.31:1 | AAA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.71:1 | AAA |
| Text on card | 20.71:1 | AAA |
| Primary button | 7.11:1 | AAA |
| Secondary button | 6.70:1 | AA |
| Muted text | 6.12:1 | AA |
| Accent | 8.31:1 | AAA |
| Destructive | 4.56:1 | AA |
Paste this into your globals.css to use Yawning in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 36.005);
--foreground: oklch(0.154 0.026 40.71);
--muted: oklch(0.897 0.021 358.366);
--muted-foreground: oklch(0.495 0.011 358.328);
--popover: oklch(0.992 0.002 36.005);
--popover-foreground: oklch(0.154 0.026 40.71);
--card: oklch(0.992 0.002 36.005);
--card-foreground: oklch(0.154 0.026 40.71);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.681 0.038 35.953);
--primary-foreground: oklch(0.091 0.004 37.961);
--secondary: oklch(0.668 0.048 359.706);
--secondary-foreground: oklch(0.089 0.005 357.649);
--accent: oklch(0.72 0.04 89.014);
--accent-foreground: oklch(0.094 0.004 90.782);
--destructive: oklch(0.489 0.196 29.03);
--destructive-foreground: oklch(0.968 0.015 18.601);
--ring: oklch(0.681 0.038 35.953);
--chart-1: oklch(0.681 0.038 35.953);
--chart-2: oklch(0.668 0.048 359.706);
--chart-3: oklch(0.72 0.04 89.014);
--chart-4: oklch(0.694 0.044 359.467);
--chart-5: oklch(0.68 0.044 35.966);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.089 0.008 40.702);
--foreground: oklch(1 0 180);
--muted: oklch(0.225 0.03 1.375);
--muted-foreground: oklch(0.686 0.01 358.124);
--popover: oklch(0.089 0.008 40.702);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.089 0.008 40.702);
--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.681 0.038 35.953);
--primary-foreground: oklch(0.091 0.004 37.961);
--secondary: oklch(0.668 0.048 359.706);
--secondary-foreground: oklch(0.089 0.005 357.649);
--accent: oklch(0.72 0.04 89.014);
--accent-foreground: oklch(0.094 0.004 90.782);
--destructive: oklch(0.593 0.239 29.097);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.681 0.038 35.953);
--chart-1: oklch(0.681 0.038 35.953);
--chart-2: oklch(0.668 0.048 359.706);
--chart-3: oklch(0.72 0.04 89.014);
--chart-4: oklch(0.694 0.044 359.467);
--chart-5: oklch(0.68 0.044 35.966);
}