Roasted is a shadcn/ui theme built around a neutral gray primary color (#b1a5af) with neutral gray accents (#a5afb1). The light mode uses a neutral background (#fefbfd). Dark mode keeps the neutral gray primary (#b1a5af) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fefbfdsnow | #000000black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #b1a5afdarkgray | #b1a5afdarkgray |
| Primary foreground | #131113black | #131113black |
| Secondary | #afb1a5darkgray | #afb1a5darkgray |
| Secondary foreground | #131311black | #131311black |
| Muted | #e6e8d9gainsboro | #242617black |
| Muted foreground | #5b5c51dimgray | #acaea3darkgray |
| Accent | #a5afb1darkgray | #a5afb1darkgray |
| Accent foreground | #111313black | #111313black |
| Destructive | #910303darkred | #f50505red |
| Destructive foreground | #fec8c8pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #b1a5afdarkgray | #b1a5afdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.44:1 | AAA |
| Text on card | 20.44:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 5.46:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.93:1 | AAA |
| Secondary button | 8.53:1 | AAA |
| Muted text | 6.82:1 | AA |
| Accent | 8.32:1 | AAA |
| Destructive | 4.28:1 | AA Large |
Paste this into your globals.css to use Roasted in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 329.732);
--foreground: oklch(0 0 0);
--muted: oklch(0.925 0.02 112.957);
--muted-foreground: oklch(0.47 0.016 113.195);
--popover: oklch(0.991 0.004 329.732);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.004 329.732);
--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.735 0.02 330.009);
--primary-foreground: oklch(0.18 0.006 330.083);
--secondary: oklch(0.755 0.017 112.954);
--secondary-foreground: oklch(0.186 0.005 113.045);
--accent: oklch(0.747 0.012 207.873);
--accent-foreground: oklch(0.183 0.004 207.864);
--destructive: oklch(0.414 0.168 28.977);
--destructive-foreground: oklch(0.88 0.062 18.389);
--ring: oklch(0.735 0.02 330.009);
--chart-1: oklch(0.735 0.02 330.009);
--chart-2: oklch(0.755 0.017 112.954);
--chart-3: oklch(0.747 0.012 207.873);
--chart-4: oklch(0.778 0.015 112.904);
--chart-5: oklch(0.733 0.028 330.147);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.002 329.709);
--muted: oklch(0.263 0.027 114.463);
--muted-foreground: oklch(0.745 0.015 112.913);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.002 329.709);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.002 329.709);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.735 0.02 330.009);
--primary-foreground: oklch(0.18 0.006 330.083);
--secondary: oklch(0.755 0.017 112.954);
--secondary-foreground: oklch(0.186 0.005 113.045);
--accent: oklch(0.747 0.012 207.873);
--accent-foreground: oklch(0.183 0.004 207.864);
--destructive: oklch(0.61 0.249 29.098);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.735 0.02 330.009);
--chart-1: oklch(0.735 0.02 330.009);
--chart-2: oklch(0.755 0.017 112.954);
--chart-3: oklch(0.747 0.012 207.873);
--chart-4: oklch(0.778 0.015 112.904);
--chart-5: oklch(0.733 0.028 330.147);
}