Decrease is a shadcn/ui theme built around a blue primary color (#8c9fee) with yellow accents (#eeda8c). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#8c9fee) on a neutral background (#010204).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #010204black |
| Foreground | #010204black | #fcfcfdwhite |
| Card | #ffffffwhite | #010204black |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #ffffffwhite | #010204black |
| Popover foreground | #010204black | #fcfcfdwhite |
| Primary | #8c9feecornflowerblue | #8c9feecornflowerblue |
| Primary foreground | #09143emidnightblue | #09143emidnightblue |
| Secondary | #eeda8ckhaki | #eeda8ckhaki |
| Secondary foreground | #3e3409darkolivegreen | #3e3409darkolivegreen |
| Muted | #e7e1cagainsboro | #352f18darkslategray |
| Muted foreground | #6d6855dimgray | #aaa592darkgray |
| Accent | #eeda8ckhaki | #eeda8ckhaki |
| Accent foreground | #3e3409darkolivegreen | #3e3409darkolivegreen |
| Destructive | #a11502darkred | #fb2104red |
| Destructive foreground | #fedbd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8c9feecornflowerblue | #8c9feecornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.75:1 | AAA |
| Text on card | 20.75:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 8.85:1 | AAA |
| Muted text | 4.27:1 | AA Large |
| Accent | 8.85:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.04:1 | AAA |
| Secondary button | 8.85:1 | AAA |
| Muted text | 5.42:1 | AA |
| Accent | 8.85:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Decrease in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.014 266.975);
--muted: oklch(0.91 0.032 95.407);
--muted-foreground: oklch(0.516 0.029 95.585);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.08 0.014 266.975);
--card: oklch(1 0 180);
--card-foreground: oklch(0.08 0.014 266.975);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.72 0.117 272.476);
--primary-foreground: oklch(0.213 0.082 267.892);
--secondary: oklch(0.888 0.101 95.783);
--secondary-foreground: oklch(0.326 0.059 94.443);
--accent: oklch(0.888 0.101 95.783);
--accent-foreground: oklch(0.326 0.059 94.443);
--destructive: oklch(0.453 0.175 30.984);
--destructive-foreground: oklch(0.921 0.04 26.784);
--ring: oklch(0.72 0.117 272.476);
--chart-1: oklch(0.72 0.117 272.476);
--chart-2: oklch(0.888 0.101 95.783);
--chart-3: oklch(0.888 0.101 95.783);
--chart-4: oklch(0.9 0.09 95.787);
--chart-5: oklch(0.717 0.122 272.339);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.013 268.04);
--foreground: oklch(0.992 0.001 275.021);
--muted: oklch(0.305 0.038 95.74);
--muted-foreground: oklch(0.721 0.027 95.429);
--popover: oklch(0.081 0.013 268.04);
--popover-foreground: oklch(0.992 0.001 275.021);
--card: oklch(0.081 0.013 268.04);
--card-foreground: oklch(0.992 0.001 275.021);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.72 0.117 272.476);
--primary-foreground: oklch(0.213 0.082 267.892);
--secondary: oklch(0.888 0.101 95.783);
--secondary-foreground: oklch(0.326 0.059 94.443);
--accent: oklch(0.888 0.101 95.783);
--accent-foreground: oklch(0.326 0.059 94.443);
--destructive: oklch(0.63 0.246 30.581);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.72 0.117 272.476);
--chart-1: oklch(0.72 0.117 272.476);
--chart-2: oklch(0.888 0.101 95.783);
--chart-3: oklch(0.888 0.101 95.783);
--chart-4: oklch(0.9 0.09 95.787);
--chart-5: oklch(0.717 0.122 272.339);
}