Ideology is a shadcn/ui theme built around a purple primary color (#d06ccb) with green accents (#6cd071). The light mode uses a neutral background (#fdf7fd). Dark mode keeps the purple primary (#d06ccb) on a purple-tinted background (#0b050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fdsnow | #0b050ablack |
| Foreground | #040104black | #fbf9fbsnow |
| Card | #fcf3fblavenderblush | #0e060eblack |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fdf7fdsnow | #0b050ablack |
| Popover foreground | #040104black | #fbf9fbsnow |
| Primary | #d06ccborchid | #d06ccborchid |
| Primary foreground | #080207black | #080207black |
| Secondary | #6cd071darkseagreen | #6cd071darkseagreen |
| Secondary foreground | #020803black | #020803black |
| Muted | #e3ede4gainsboro | #121c13black |
| Muted foreground | #4f5950darkslategray | #a6b0a6darkgray |
| Accent | #6cd071darkseagreen | #6cd071darkseagreen |
| Accent foreground | #020803black | #020803black |
| Destructive | #730f02maroon | #eb2005red |
| Destructive foreground | #fdb4aalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d06ccborchid | #d06ccborchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.34:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 10.53:1 | AAA |
| Muted text | 6.07:1 | AA |
| Accent | 10.53:1 | AAA |
| Destructive | 6.82:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.50:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 10.53:1 | AAA |
| Muted text | 7.82:1 | AAA |
| Accent | 10.53:1 | AAA |
| Destructive | 4.43:1 | AA Large |
Paste this into your globals.css to use Ideology in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 327.128);
--foreground: oklch(0.084 0.025 328.839);
--muted: oklch(0.936 0.016 146.879);
--muted-foreground: oklch(0.453 0.02 146.62);
--popover: oklch(0.982 0.01 327.128);
--popover-foreground: oklch(0.084 0.025 328.839);
--card: oklch(0.973 0.014 327.173);
--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.68 0.173 329.149);
--primary-foreground: oklch(0.109 0.023 328.355);
--secondary: oklch(0.775 0.163 144.788);
--secondary-foreground: oklch(0.122 0.021 145.689);
--accent: oklch(0.775 0.163 144.788);
--accent-foreground: oklch(0.122 0.021 145.689);
--destructive: oklch(0.358 0.135 31.443);
--destructive-foreground: oklch(0.836 0.088 27.486);
--ring: oklch(0.68 0.173 329.149);
--chart-1: oklch(0.68 0.173 329.149);
--chart-2: oklch(0.775 0.163 144.788);
--chart-3: oklch(0.775 0.163 144.788);
--chart-4: oklch(0.791 0.151 145.024);
--chart-5: oklch(0.681 0.182 329.246);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.02 328.093);
--foreground: oklch(0.984 0.003 327.07);
--muted: oklch(0.213 0.023 145.983);
--muted-foreground: oklch(0.746 0.018 146.816);
--popover: oklch(0.127 0.02 328.093);
--popover-foreground: oklch(0.984 0.003 327.07);
--card: oklch(0.14 0.023 328.324);
--card-foreground: oklch(0.992 0.002 327.054);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.68 0.173 329.149);
--primary-foreground: oklch(0.109 0.023 328.355);
--secondary: oklch(0.775 0.163 144.788);
--secondary-foreground: oklch(0.122 0.021 145.689);
--accent: oklch(0.775 0.163 144.788);
--accent-foreground: oklch(0.122 0.021 145.689);
--destructive: oklch(0.599 0.233 30.644);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.173 329.149);
--chart-1: oklch(0.68 0.173 329.149);
--chart-2: oklch(0.775 0.163 144.788);
--chart-3: oklch(0.775 0.163 144.788);
--chart-4: oklch(0.791 0.151 145.024);
--chart-5: oklch(0.681 0.182 329.246);
}