Idealistic is a shadcn/ui theme built around a muted green primary color (#81b780) with muted red accents (#b78081). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#81b780) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #051005black | #fcfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040c04black | #ffffffwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #051005black | #fcfdfcwhite |
| Primary | #81b780darkseagreen | #81b780darkseagreen |
| Primary foreground | #020302black | #020302black |
| Secondary | #8081b7lightslategray | #8081b7lightslategray |
| Secondary foreground | #000000black | #000000black |
| Muted | #d1d2eagainsboro | #15152eblack |
| Muted foreground | #5c5c66dimgray | #9999a3darkgray |
| Accent | #b78081rosybrown | #b78081rosybrown |
| Accent foreground | #030202black | #030202black |
| Destructive | #730402maroon | #fb312dcrimson |
| Destructive foreground | #fdabaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #81b780darkseagreen | #81b780darkseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.39:1 | AAA |
| Text on card | 19.39:1 | AAA |
| Primary button | 8.89:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 4.43:1 | AA Large |
| Accent | 6.32:1 | AA |
| Destructive | 6.62:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.89:1 | AAA |
| Secondary button | 5.72:1 | AA |
| Muted text | 6.32:1 | AA |
| Accent | 6.32:1 | AA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Idealistic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.156 0.031 143.474);
--muted: oklch(0.87 0.034 284.896);
--muted-foreground: oklch(0.479 0.015 285.036);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.156 0.031 143.474);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.14 0.026 143.495);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.728 0.098 144.099);
--primary-foreground: oklch(0.094 0.009 144.283);
--secondary: oklch(0.623 0.082 282.993);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.655 0.069 18.015);
--accent-foreground: oklch(0.087 0.007 17.161);
--destructive: oklch(0.351 0.141 29.236);
--destructive-foreground: oklch(0.821 0.097 20.44);
--ring: oklch(0.728 0.098 144.099);
--chart-1: oklch(0.728 0.098 144.099);
--chart-2: oklch(0.623 0.082 282.993);
--chart-3: oklch(0.655 0.069 18.015);
--chart-4: oklch(0.653 0.075 283.365);
--chart-5: oklch(0.733 0.108 144);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.003 145.08);
--muted: oklch(0.21 0.048 280.661);
--muted-foreground: oklch(0.687 0.014 285.252);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.003 145.08);
--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.728 0.098 144.099);
--primary-foreground: oklch(0.094 0.009 144.283);
--secondary: oklch(0.623 0.082 282.993);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.655 0.069 18.015);
--accent-foreground: oklch(0.087 0.007 17.161);
--destructive: oklch(0.639 0.235 27.719);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.728 0.098 144.099);
--chart-1: oklch(0.728 0.098 144.099);
--chart-2: oklch(0.623 0.082 282.993);
--chart-3: oklch(0.655 0.069 18.015);
--chart-4: oklch(0.653 0.075 283.365);
--chart-5: oklch(0.733 0.108 144);
}