Plain is a shadcn/ui theme built around a deep red primary color (#361214) with deep orange accents (#362112). The light mode uses a neutral background (#fdf7f8). Dark mode keeps the deep red primary (#361214) on a neutral background (#080202).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f8snow | #080202black |
| Foreground | #040101black | #ffffffwhite |
| Card | #fbf3f4lavenderblush | #0c0304black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdf7f8snow | #080202black |
| Popover foreground | #040101black | #ffffffwhite |
| Primary | #361214black | #361214black |
| Primary foreground | #de9ca0tan | #de9ca0tan |
| Secondary | #361226black | #361226black |
| Secondary foreground | #de9cc1plum | #de9cc1plum |
| Muted | #f4f1f2whitesmoke | #0e0b0dblack |
| Muted foreground | #4e464adarkslategray | #b9b1b6silver |
| Accent | #362112black | #362112black |
| Accent foreground | #deb89ctan | #deb89ctan |
| Destructive | #6b0706maroon | #f31512red |
| Destructive foreground | #faa9a8lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #361214black | #361214black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.64:1 | AAA |
| Text on card | 19.27:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 8.13:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 6.83:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.36:1 | AAA |
| Primary button | 7.49:1 | AAA |
| Secondary button | 7.59:1 | AAA |
| Muted text | 9.33:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 4.27:1 | AA Large |
Paste this into your globals.css to use Plain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 12.55);
--foreground: oklch(0.08 0.019 15.478);
--muted: oklch(0.96 0.003 341.891);
--muted-foreground: oklch(0.404 0.012 342.506);
--popover: oklch(0.981 0.006 12.55);
--popover-foreground: oklch(0.08 0.019 15.478);
--card: oklch(0.971 0.009 12.615);
--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.239 0.057 18.456);
--primary-foreground: oklch(0.757 0.08 14.723);
--secondary: oklch(0.246 0.064 347.697);
--secondary-foreground: oklch(0.767 0.092 344.502);
--accent: oklch(0.271 0.041 57.39);
--accent-foreground: oklch(0.809 0.058 59.224);
--destructive: oklch(0.336 0.131 28.694);
--destructive-foreground: oklch(0.814 0.096 20.451);
--ring: oklch(0.239 0.057 18.456);
--chart-1: oklch(0.239 0.057 18.456);
--chart-2: oklch(0.246 0.064 347.697);
--chart-3: oklch(0.271 0.041 57.39);
--chart-4: oklch(0.276 0.075 348.008);
--chart-5: oklch(0.239 0.061 18.924);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.103 0.019 14.616);
--foreground: oklch(1 0 180);
--muted: oklch(0.156 0.005 342.598);
--muted-foreground: oklch(0.769 0.01 342.123);
--popover: oklch(0.103 0.019 14.616);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.119 0.022 14.724);
--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.239 0.057 18.456);
--primary-foreground: oklch(0.757 0.08 14.723);
--secondary: oklch(0.246 0.064 347.697);
--secondary-foreground: oklch(0.767 0.092 344.502);
--accent: oklch(0.271 0.041 57.39);
--accent-foreground: oklch(0.809 0.058 59.224);
--destructive: oklch(0.61 0.243 28.919);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.239 0.057 18.456);
--chart-1: oklch(0.239 0.057 18.456);
--chart-2: oklch(0.246 0.064 347.697);
--chart-3: oklch(0.271 0.041 57.39);
--chart-4: oklch(0.276 0.075 348.008);
--chart-5: oklch(0.239 0.061 18.924);
}