Ideal is a shadcn/ui theme built around a light green primary color (#cbe4c9) with light green accents (#c9e4d4). The light mode uses a neutral background (#f7fdf6). Dark mode keeps the light green primary (#cbe4c9) on a neutral background (#040703).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf6mintcream | #040703black |
| Foreground | #061505black | #f5faf5whitesmoke |
| Card | #f7fdf6mintcream | #040703black |
| Card foreground | #061505black | #f5faf5whitesmoke |
| Popover | #f7fdf6mintcream | #040703black |
| Popover foreground | #061505black | #f5faf5whitesmoke |
| Primary | #cbe4c9lightgrey | #cbe4c9lightgrey |
| Primary foreground | #2c5129darkslategray | #2c5129darkslategray |
| Secondary | #d8e4c9lightgrey | #d8e4c9lightgrey |
| Secondary foreground | #405129darkolivegreen | #405129darkolivegreen |
| Muted | #e1e4ddgainsboro | #1f221bblack |
| Muted foreground | #434b3adarkslategray | #bec5b4silver |
| Accent | #c9e4d4lightgrey | #c9e4d4lightgrey |
| Accent foreground | #29513bdarkslategray | #29513bdarkslategray |
| Destructive | #a82f0bfirebrick | #f25a2ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cbe4c9lightgrey | #cbe4c9lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.24:1 | AAA |
| Text on card | 18.24:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 7.07:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.18:1 | AAA |
| Text on card | 19.18:1 | AAA |
| Primary button | 6.66:1 | AA |
| Secondary button | 6.51:1 | AA |
| Muted text | 9.08:1 | AAA |
| Accent | 6.63:1 | AA |
| Destructive | 6.26:1 | AA |
Paste this into your globals.css to use Ideal in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.011 143.575);
--foreground: oklch(0.175 0.039 141.994);
--muted: oklch(0.914 0.01 125.879);
--muted-foreground: oklch(0.4 0.03 126.763);
--popover: oklch(0.988 0.011 143.575);
--popover-foreground: oklch(0.175 0.039 141.994);
--card: oklch(0.988 0.011 143.575);
--card-foreground: oklch(0.175 0.039 141.994);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.892 0.045 143.366);
--primary-foreground: oklch(0.397 0.079 142.554);
--secondary: oklch(0.902 0.038 126.312);
--secondary-foreground: oklch(0.411 0.066 128.209);
--accent: oklch(0.894 0.035 160.823);
--accent-foreground: oklch(0.4 0.06 157.323);
--destructive: oklch(0.488 0.162 35.479);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.892 0.045 143.366);
--chart-1: oklch(0.892 0.045 143.366);
--chart-2: oklch(0.902 0.038 126.312);
--chart-3: oklch(0.894 0.035 160.823);
--chart-4: oklch(0.92 0.031 126.192);
--chart-5: oklch(0.894 0.049 143.341);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.015 142.548);
--foreground: oklch(0.98 0.008 143.592);
--muted: oklch(0.246 0.013 126.467);
--muted-foreground: oklch(0.814 0.025 126.155);
--popover: oklch(0.12 0.015 142.548);
--popover-foreground: oklch(0.98 0.008 143.592);
--card: oklch(0.12 0.015 142.548);
--card-foreground: oklch(0.98 0.008 143.592);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.892 0.045 143.366);
--primary-foreground: oklch(0.397 0.079 142.554);
--secondary: oklch(0.902 0.038 126.312);
--secondary-foreground: oklch(0.411 0.066 128.209);
--accent: oklch(0.894 0.035 160.823);
--accent-foreground: oklch(0.4 0.06 157.323);
--destructive: oklch(0.662 0.195 36.779);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.892 0.045 143.366);
--chart-1: oklch(0.892 0.045 143.366);
--chart-2: oklch(0.902 0.038 126.312);
--chart-3: oklch(0.894 0.035 160.823);
--chart-4: oklch(0.92 0.031 126.192);
--chart-5: oklch(0.894 0.049 143.341);
}