3D is a shadcn/ui theme built around a red primary color (#ceaba1) with yellow accents (#cec2a1). The light mode uses a neutral background (#ffffff). Dark mode keeps the red primary (#ceaba1) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #150905black | #ffffffwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #150905black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #150905black | #ffffffwhite |
| Primary | #ceaba1tan | #ceaba1tan |
| Primary foreground | #281915black | #281915black |
| Secondary | #cea1addarkgray | #cea1addarkgray |
| Secondary foreground | #28151ablack | #28151ablack |
| Muted | #e1dbdcgainsboro | #241e20black |
| Muted foreground | #473e40darkslategray | #c1b8bbsilver |
| Accent | #cec2a1tan | #cec2a1tan |
| Accent foreground | #282315black | #282315black |
| Destructive | #96360dsaddlebrown | #eb5b1echocolate |
| Destructive foreground | #fce4d9antiquewhite | #ffffffwhite |
| Border | #eee9e8linen | #2c2321darkslategray |
| Input | #eee9e8linen | #2c2321darkslategray |
| Ring | #ceaba1tan | #ceaba1tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.56:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 7.55:1 | AAA |
| Accent | 8.86:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 8.06:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 8.44:1 | AAA |
| Accent | 8.86:1 | AAA |
| Destructive | 3.45:1 | AA Large |
Paste this into your globals.css to use 3D in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.154 0.024 41.852);
--muted: oklch(0.896 0.007 359.001);
--muted-foreground: oklch(0.373 0.013 359.79);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.154 0.024 41.852);
--card: oklch(1 0 180);
--card-foreground: oklch(0.154 0.024 41.852);
--border: oklch(0.937 0.005 37.714);
--input: oklch(0.937 0.005 37.714);
--primary: oklch(0.771 0.044 37.594);
--primary-foreground: oklch(0.233 0.026 37.632);
--secondary: oklch(0.754 0.056 0.834);
--secondary-foreground: oklch(0.224 0.033 2.831);
--accent: oklch(0.816 0.047 90.42);
--accent-foreground: oklch(0.258 0.026 90.333);
--destructive: oklch(0.466 0.138 39.95);
--destructive-foreground: oklch(0.935 0.03 44.684);
--ring: oklch(0.771 0.044 37.594);
--chart-1: oklch(0.771 0.044 37.594);
--chart-2: oklch(0.754 0.056 0.834);
--chart-3: oklch(0.816 0.047 90.42);
--chart-4: oklch(0.78 0.05 0.537);
--chart-5: oklch(0.77 0.048 37.592);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.243 0.01 359.887);
--muted-foreground: oklch(0.791 0.011 359.179);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0 0 0);
--card-foreground: oklch(1 0 180);
--border: oklch(0.266 0.014 37.595);
--input: oklch(0.266 0.014 37.595);
--primary: oklch(0.771 0.044 37.594);
--primary-foreground: oklch(0.233 0.026 37.632);
--secondary: oklch(0.754 0.056 0.834);
--secondary-foreground: oklch(0.224 0.033 2.831);
--accent: oklch(0.816 0.047 90.42);
--accent-foreground: oklch(0.258 0.026 90.333);
--destructive: oklch(0.653 0.191 40.195);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.771 0.044 37.594);
--chart-1: oklch(0.771 0.044 37.594);
--chart-2: oklch(0.754 0.056 0.834);
--chart-3: oklch(0.816 0.047 90.42);
--chart-4: oklch(0.78 0.05 0.537);
--chart-5: oklch(0.77 0.048 37.592);
}