Terrific is a shadcn/ui theme built around a vivid deep indigo primary color (#030521) with vivid deep violet accents (#0f0321). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the vivid deep indigo primary (#030521) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #000000black |
| Foreground | #030517black | #ffffffwhite |
| Card | #fbfbfeghostwhite | #000000black |
| Card foreground | #030517black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #000000black |
| Popover foreground | #030517black | #ffffffwhite |
| Primary | #030521black | #030521black |
| Primary foreground | #c2c7falightsteelblue | #c2c7falightsteelblue |
| Secondary | #031421black | #031421black |
| Secondary foreground | #64b7f2cornflowerblue | #64b7f2cornflowerblue |
| Muted | #eff0f1whitesmoke | #0e0f10black |
| Muted foreground | #434e56darkslategray | #a9b4bcdarkgray |
| Accent | #0f0321black | #0f0321black |
| Accent foreground | #d9c2fathistle | #d9c2fathistle |
| Destructive | #c2480fchocolate | #f06f33tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030521black | #030521black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 12.24:1 | AAA |
| Secondary button | 8.50:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 12.36:1 | AAA |
| Destructive | 4.96:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 12.24:1 | AAA |
| Secondary button | 8.50:1 | AAA |
| Muted text | 9.05:1 | AAA |
| Accent | 12.36:1 | AAA |
| Destructive | 7.00:1 | AAA |
Paste this into your globals.css to use Terrific in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.003 282.154);
--foreground: oklch(0.124 0.043 272.137);
--muted: oklch(0.954 0.002 238.389);
--muted-foreground: oklch(0.417 0.02 239.095);
--popover: oklch(0.989 0.003 282.154);
--popover-foreground: oklch(0.124 0.043 272.137);
--card: oklch(0.989 0.003 282.154);
--card-foreground: oklch(0.124 0.043 272.137);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.139 0.059 269.897);
--primary-foreground: oklch(0.842 0.071 280.679);
--secondary: oklch(0.185 0.036 240.397);
--secondary-foreground: oklch(0.75 0.117 241.712);
--accent: oklch(0.148 0.064 299.497);
--accent-foreground: oklch(0.852 0.08 303.739);
--destructive: oklch(0.562 0.169 40.361);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.139 0.059 269.897);
--chart-1: oklch(0.139 0.059 269.897);
--chart-2: oklch(0.185 0.036 240.397);
--chart-3: oklch(0.148 0.064 299.497);
--chart-4: oklch(0.222 0.047 243.01);
--chart-5: oklch(0.137 0.062 268.931);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.17 0.003 238.595);
--muted-foreground: oklch(0.764 0.018 238.694);
--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.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.139 0.059 269.897);
--primary-foreground: oklch(0.842 0.071 280.679);
--secondary: oklch(0.185 0.036 240.397);
--secondary-foreground: oklch(0.75 0.117 241.712);
--accent: oklch(0.148 0.064 299.497);
--accent-foreground: oklch(0.852 0.08 303.739);
--destructive: oklch(0.687 0.174 43.013);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.139 0.059 269.897);
--chart-1: oklch(0.139 0.059 269.897);
--chart-2: oklch(0.185 0.036 240.397);
--chart-3: oklch(0.148 0.064 299.497);
--chart-4: oklch(0.222 0.047 243.01);
--chart-5: oklch(0.137 0.062 268.931);
}