Toilet is a shadcn/ui theme built around a near-black primary color (#030302) with near-black accents (#030203). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#030302) on a neutral background (#050703).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050703black |
| Foreground | #070c04black | #f7faf5whitesmoke |
| Card | #fcfcfcsnow | #070a05black |
| Card foreground | #050802black | #fafcf8snow |
| Popover | #ffffffwhite | #050703black |
| Popover foreground | #070c04black | #f7faf5whitesmoke |
| Primary | #030302black | #030302black |
| Primary foreground | #9aab8cdarkseagreen | #9aab8cdarkseagreen |
| Secondary | #020303black | #020303black |
| Secondary foreground | #8c9aabdarkgray | #8c9aabdarkgray |
| Muted | #dbdee1gainsboro | #1e2124black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #030203black | #030203black |
| Accent foreground | #ab8c9arosybrown | #ab8c9arosybrown |
| Destructive | #d94602orangered | #fd5508orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030302black | #030302black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.71:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 4.43:1 | AA Large |
| Accent | 6.85:1 | AA |
| Destructive | 4.34:1 | AA Large |
| Text on background | 19.23:1 | AAA |
| Text on card | 19.26:1 | AAA |
| Primary button | 8.43:1 | AAA |
| Secondary button | 7.21:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 6.85:1 | AA |
| Destructive | 3.24:1 | AA Large |
Paste this into your globals.css to use Toilet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.144 0.021 128.774);
--muted: oklch(0.898 0.006 251.504);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.144 0.021 128.774);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.018 128.636);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.094 0.005 129.396);
--primary-foreground: oklch(0.721 0.049 130.486);
--secondary: oklch(0.091 0.003 249.202);
--secondary-foreground: oklch(0.682 0.03 251.778);
--accent: oklch(0.09 0.004 346.838);
--accent-foreground: oklch(0.673 0.043 348.575);
--destructive: oklch(0.598 0.193 38.409);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.005 129.396);
--chart-1: oklch(0.094 0.005 129.396);
--chart-2: oklch(0.091 0.003 249.202);
--chart-3: oklch(0.09 0.004 346.838);
--chart-4: oklch(0.144 0.005 250.542);
--chart-5: oklch(0.095 0.005 129.326);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.011 129.035);
--foreground: oklch(0.982 0.008 129.867);
--muted: oklch(0.246 0.008 251.701);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.122 0.011 129.035);
--popover-foreground: oklch(0.982 0.008 129.867);
--card: oklch(0.14 0.013 129.035);
--card-foreground: oklch(0.988 0.005 129.839);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.094 0.005 129.396);
--primary-foreground: oklch(0.721 0.049 130.486);
--secondary: oklch(0.091 0.003 249.202);
--secondary-foreground: oklch(0.682 0.03 251.778);
--accent: oklch(0.09 0.004 346.838);
--accent-foreground: oklch(0.673 0.043 348.575);
--destructive: oklch(0.672 0.215 38.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.094 0.005 129.396);
--chart-1: oklch(0.094 0.005 129.396);
--chart-2: oklch(0.091 0.003 249.202);
--chart-3: oklch(0.09 0.004 346.838);
--chart-4: oklch(0.144 0.005 250.542);
--chart-5: oklch(0.095 0.005 129.326);
}