Ceramics is a shadcn/ui theme built around a neutral gray primary color (#c7c7c7) with neutral gray accents (#c7c7c7). The light mode uses a neutral background (#fdf6f6). Dark mode keeps the neutral gray primary (#c7c7c7) on a red-tinted background (#0e0606).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f6snow | #0e0606black |
| Foreground | #050101black | #faf4f4whitesmoke |
| Card | #fcf2f2lavenderblush | #120808black |
| Card foreground | #000000black | #fcf8f8snow |
| Popover | #fcf2f2lavenderblush | #120808black |
| Popover foreground | #000000black | #fcf8f8snow |
| Primary | #c7c7c7silver | #c7c7c7silver |
| Primary foreground | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Secondary | #c7c7c7silver | #c7c7c7silver |
| Secondary foreground | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Muted | #f4ececlinen | #130b0bblack |
| Muted foreground | #5d5656dimgray | #a9a2a2darkgray |
| Accent | #c7c7c7silver | #c7c7c7silver |
| Accent foreground | #2e2e2edarkslategray | #2e2e2edarkslategray |
| Destructive | #b44508saddlebrown | #f56d24chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c7c7c7silver | #c7c7c7silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 6.14:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 5.53:1 | AA |
| Text on background | 18.41:1 | AAA |
| Text on card | 18.75:1 | AAA |
| Primary button | 8.02:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 7.73:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 7.08:1 | AAA |
Paste this into your globals.css to use Ceramics in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 17.282);
--foreground: oklch(0.077 0.022 23.785);
--muted: oklch(0.949 0.008 17.302);
--muted-foreground: oklch(0.459 0.009 17.498);
--popover: oklch(0.97 0.011 17.347);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.97 0.011 17.347);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.829 0 180);
--primary-foreground: oklch(0.301 0 189.462);
--secondary: oklch(0.829 0 180);
--secondary-foreground: oklch(0.301 0 189.462);
--accent: oklch(0.829 0 180);
--accent-foreground: oklch(0.301 0 189.462);
--destructive: oklch(0.535 0.157 42.039);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.829 0 180);
--chart-1: oklch(0.829 0 180);
--chart-2: oklch(0.829 0 180);
--chart-3: oklch(0.829 0 180);
--chart-4: oklch(0.853 0 168.69);
--chart-5: oklch(0.827 0.004 17.233);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.136 0.016 19.292);
--foreground: oklch(0.973 0.006 17.264);
--muted: oklch(0.162 0.013 18.633);
--muted-foreground: oklch(0.719 0.008 17.349);
--popover: oklch(0.148 0.018 19.477);
--popover-foreground: oklch(0.982 0.004 17.228);
--card: oklch(0.148 0.018 19.477);
--card-foreground: oklch(0.982 0.004 17.228);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.829 0 180);
--primary-foreground: oklch(0.301 0 189.462);
--secondary: oklch(0.829 0 180);
--secondary-foreground: oklch(0.301 0 189.462);
--accent: oklch(0.829 0 180);
--accent-foreground: oklch(0.301 0 189.462);
--destructive: oklch(0.691 0.185 44.315);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.829 0 180);
--chart-1: oklch(0.829 0 180);
--chart-2: oklch(0.829 0 180);
--chart-3: oklch(0.829 0 180);
--chart-4: oklch(0.853 0 168.69);
--chart-5: oklch(0.827 0.004 17.233);
}