Model is a shadcn/ui theme built around a deep purple primary color (#34092d) with neutral gray accents (#dedede). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the deep purple primary (#34092d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #000000black |
| Foreground | #0d020cblack | #fdfcfdwhite |
| Card | #fbf8fbsnow | #030303black |
| Card foreground | #090108black | #ffffffwhite |
| Popover | #fdfcfdwhite | #000000black |
| Popover foreground | #0d020cblack | #fdfcfdwhite |
| Primary | #34092dblack | #34092dblack |
| Primary foreground | #ea86d9violet | #ea86d9violet |
| Secondary | #dededegainsboro | #2a1e28darkslategray |
| Secondary foreground | #464445darkslategray | #c8b1c4silver |
| Muted | #f0dbeclavender | #240f20black |
| Muted foreground | #73596fdimgray | #a68ca2rosybrown |
| Accent | #dededegainsboro | #2a1e28darkslategray |
| Accent foreground | #464445darkslategray | #c8b1c4silver |
| Destructive | #6f1f06maroon | #ec420eorangered |
| Destructive foreground | #fabfadlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #34092dblack | #34092dblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 4.74:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 7.01:1 | AAA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Model in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 330.853);
--foreground: oklch(0.121 0.038 332.826);
--muted: oklch(0.914 0.032 331.282);
--muted-foreground: oklch(0.498 0.048 332.061);
--popover: oklch(0.992 0.002 330.853);
--popover-foreground: oklch(0.121 0.038 332.826);
--card: oklch(0.983 0.005 330.885);
--card-foreground: oklch(0.105 0.033 332.241);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.235 0.083 335.384);
--primary-foreground: oklch(0.753 0.159 333.45);
--secondary: oklch(0.9 0.001 330.836);
--secondary-foreground: oklch(0.389 0.003 330.913);
--accent: oklch(0.9 0.001 330.836);
--accent-foreground: oklch(0.389 0.003 330.913);
--destructive: oklch(0.365 0.117 36.073);
--destructive-foreground: oklch(0.854 0.073 37.601);
--ring: oklch(0.235 0.083 335.384);
--chart-1: oklch(0.235 0.083 335.384);
--chart-2: oklch(0.9 0.001 330.836);
--chart-3: oklch(0.9 0.001 330.836);
--chart-4: oklch(0.923 0.001 330.832);
--chart-5: oklch(0.236 0.086 335.536);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 330.841);
--muted: oklch(0.208 0.045 333.499);
--muted-foreground: oklch(0.67 0.044 331.689);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 330.841);
--card: oklch(0.092 0 180);
--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.235 0.083 335.384);
--primary-foreground: oklch(0.753 0.159 333.45);
--secondary: oklch(0.252 0.026 332.143);
--secondary-foreground: oklch(0.787 0.036 331.432);
--accent: oklch(0.252 0.026 332.143);
--accent-foreground: oklch(0.787 0.036 331.432);
--destructive: oklch(0.626 0.214 34.993);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.235 0.083 335.384);
--chart-1: oklch(0.235 0.083 335.384);
--chart-2: oklch(0.252 0.026 332.143);
--chart-3: oklch(0.252 0.026 332.143);
--chart-4: oklch(0.283 0.031 332.21);
--chart-5: oklch(0.236 0.086 335.536);
}