Unwritten is a shadcn/ui theme built around a muted light teal primary color (#cbddd5) with muted light pink accents (#ddcbd3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light teal primary (#cbddd5) on a neutral background (#020805).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020805black |
| Foreground | #020d08black | #f6f9f7whitesmoke |
| Card | #ffffffwhite | #020805black |
| Card foreground | #020d08black | #f6f9f7whitesmoke |
| Popover | #ffffffwhite | #020805black |
| Popover foreground | #020d08black | #f6f9f7whitesmoke |
| Primary | #cbddd5lightgrey | #cbddd5lightgrey |
| Primary foreground | #2e473cdarkslategray | #2e473cdarkslategray |
| Secondary | #ddcbd3lightgrey | #ddcbd3lightgrey |
| Secondary foreground | #472e39darkslategray | #472e39darkslategray |
| Muted | #e4d8ddgainsboro | #271b21black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #ddcbd3lightgrey | #ddcbd3lightgrey |
| Accent foreground | #472e39darkslategray | #472e39darkslategray |
| Destructive | #741a02maroon | #fb410eorangered |
| Destructive foreground | #febcaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cbddd5lightgrey | #cbddd5lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.74:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 7.86:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 8.36:1 | AAA |
| Accent | 7.86:1 | AAA |
| Destructive | 3.56:1 | AA Large |
Paste this into your globals.css to use Unwritten in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.024 167.209);
--muted: oklch(0.893 0.016 348.29);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.024 167.209);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.024 167.209);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.881 0.022 167.092);
--primary-foreground: oklch(0.374 0.036 164.787);
--secondary: oklch(0.858 0.023 348.534);
--secondary-foreground: oklch(0.336 0.04 350.862);
--accent: oklch(0.858 0.023 348.534);
--accent-foreground: oklch(0.336 0.04 350.862);
--destructive: oklch(0.369 0.127 35.027);
--destructive-foreground: oklch(0.851 0.081 36.038);
--ring: oklch(0.881 0.022 167.092);
--chart-1: oklch(0.881 0.022 167.092);
--chart-2: oklch(0.858 0.023 348.534);
--chart-3: oklch(0.858 0.023 348.534);
--chart-4: oklch(0.883 0.019 348.387);
--chart-5: oklch(0.883 0.026 166.989);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.017 168.049);
--foreground: oklch(0.979 0.003 167.729);
--muted: oklch(0.239 0.022 350.209);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.124 0.017 168.049);
--popover-foreground: oklch(0.979 0.003 167.729);
--card: oklch(0.124 0.017 168.049);
--card-foreground: oklch(0.979 0.003 167.729);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.881 0.022 167.092);
--primary-foreground: oklch(0.374 0.036 164.787);
--secondary: oklch(0.858 0.023 348.534);
--secondary-foreground: oklch(0.336 0.04 350.862);
--accent: oklch(0.858 0.023 348.534);
--accent-foreground: oklch(0.336 0.04 350.862);
--destructive: oklch(0.651 0.228 34.138);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.881 0.022 167.092);
--chart-1: oklch(0.881 0.022 167.092);
--chart-2: oklch(0.858 0.023 348.534);
--chart-3: oklch(0.858 0.023 348.534);
--chart-4: oklch(0.883 0.019 348.387);
--chart-5: oklch(0.883 0.026 166.989);
}