Economy is a shadcn/ui theme built around a muted blue primary color (#3c5c6d) with muted green accents (#5c6d3c). The light mode uses a neutral background (#fcfdfd). Dark mode keeps the muted blue primary (#3c5c6d) on a neutral background (#030607).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfdfdwhite | #030607black |
| Foreground | #000000black | #fcfdfdwhite |
| Card | #f8fbfcghostwhite | #05090bblack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fbfcghostwhite | #05090bblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #3c5c6ddarkslategray | #3c5c6ddarkslategray |
| Primary foreground | #e8eff2lavender | #e8eff2lavender |
| Secondary | #6d3c5cdimgray | #6d3c5cdimgray |
| Secondary foreground | #f2e8eflinen | #f2e8eflinen |
| Muted | #efebeewhitesmoke | #141012black |
| Muted foreground | #6b5764dimgray | #a894a1darkgray |
| Accent | #5c6d3cdarkolivegreen | #5c6d3cdarkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9e2a0afirebrick | #f14b1eorangered |
| Destructive foreground | #fde4ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3c5c6ddarkslategray | #3c5c6ddarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.13:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 5.61:1 | AA |
| Accent | 5.68:1 | AA |
| Destructive | 6.19:1 | AA |
| Text on background | 19.96:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.12:1 | AA |
| Secondary button | 7.19:1 | AAA |
| Muted text | 6.66:1 | AA |
| Accent | 5.68:1 | AA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Economy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 228.772);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.005 337.371);
--muted-foreground: oklch(0.481 0.032 338.553);
--popover: oklch(0.985 0.003 228.792);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.003 228.792);
--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.457 0.046 230.769);
--primary-foreground: oklch(0.948 0.009 228.872);
--secondary: oklch(0.427 0.082 340.845);
--secondary-foreground: oklch(0.941 0.014 337.571);
--accent: oklch(0.507 0.074 124.074);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.466 0.157 34.746);
--destructive-foreground: oklch(0.938 0.029 35.947);
--ring: oklch(0.457 0.046 230.769);
--chart-1: oklch(0.457 0.046 230.769);
--chart-2: oklch(0.427 0.082 340.845);
--chart-3: oklch(0.507 0.074 124.074);
--chart-4: oklch(0.453 0.088 340.886);
--chart-5: oklch(0.459 0.051 231.06);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.009 224.143);
--foreground: oklch(0.993 0.001 228.77);
--muted: oklch(0.179 0.008 338.094);
--muted-foreground: oklch(0.689 0.029 338.098);
--popover: oklch(0.133 0.01 224.298);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.01 224.298);
--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.457 0.046 230.769);
--primary-foreground: oklch(0.948 0.009 228.872);
--secondary: oklch(0.427 0.082 340.845);
--secondary-foreground: oklch(0.941 0.014 337.571);
--accent: oklch(0.507 0.074 124.074);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.643 0.209 35.203);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.457 0.046 230.769);
--chart-1: oklch(0.457 0.046 230.769);
--chart-2: oklch(0.427 0.082 340.845);
--chart-3: oklch(0.507 0.074 124.074);
--chart-4: oklch(0.453 0.088 340.886);
--chart-5: oklch(0.459 0.051 231.06);
}