Fountain is a shadcn/ui theme built around a violet primary color (#632d76) with teal accents (#2d7663). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the violet primary (#632d76) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #030203black |
| Foreground | #0a020eblack | #ffffffwhite |
| Card | #fbf7fdghostwhite | #060307black |
| Card foreground | #070109black | #ffffffwhite |
| Popover | #fdfbfewhite | #030203black |
| Popover foreground | #0a020eblack | #ffffffwhite |
| Primary | #632d76rebeccapurple | #632d76rebeccapurple |
| Primary foreground | #efe1f4lavender | #efe1f4lavender |
| Secondary | #76632ddarkolivegreen | #76632ddarkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ede8d9antiquewhite | #262112black |
| Muted foreground | #44423cdarkslategray | #c3c1bbsilver |
| Accent | #2d7663seagreen | #2d7663seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #7d1307maroon | #f34c39tomato |
| Destructive foreground | #fbc2bclightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #632d76rebeccapurple | #632d76rebeccapurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.86:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 5.85:1 | AA |
| Muted text | 8.18:1 | AAA |
| Accent | 5.38:1 | AA |
| Destructive | 6.86:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 5.85:1 | AA |
| Muted text | 8.92:1 | AAA |
| Accent | 5.38:1 | AA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Fountain in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 317.18);
--foreground: oklch(0.115 0.04 319.272);
--muted: oklch(0.93 0.021 90.275);
--muted-foreground: oklch(0.377 0.01 90.297);
--popover: oklch(0.991 0.004 317.18);
--popover-foreground: oklch(0.115 0.04 319.272);
--card: oklch(0.981 0.008 317.171);
--card-foreground: oklch(0.1 0.034 320.034);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.403 0.129 316.062);
--primary-foreground: oklch(0.927 0.028 317.12);
--secondary: oklch(0.506 0.077 89.472);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.079 172.566);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.382 0.142 30.574);
--destructive-foreground: oklch(0.863 0.067 25.806);
--ring: oklch(0.403 0.129 316.062);
--chart-1: oklch(0.403 0.129 316.062);
--chart-2: oklch(0.506 0.077 89.472);
--chart-3: oklch(0.515 0.079 172.566);
--chart-4: oklch(0.539 0.082 89.433);
--chart-5: oklch(0.403 0.136 315.93);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.011 318.352);
--foreground: oklch(1 0 180);
--muted: oklch(0.248 0.027 90.274);
--muted-foreground: oklch(0.811 0.008 90.195);
--popover: oklch(0.087 0.011 318.352);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.109 0.014 318.352);
--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.403 0.129 316.062);
--primary-foreground: oklch(0.927 0.028 317.12);
--secondary: oklch(0.506 0.077 89.472);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.515 0.079 172.566);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.651 0.207 29.953);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.403 0.129 316.062);
--chart-1: oklch(0.403 0.129 316.062);
--chart-2: oklch(0.506 0.077 89.472);
--chart-3: oklch(0.515 0.079 172.566);
--chart-4: oklch(0.539 0.082 89.433);
--chart-5: oklch(0.403 0.136 315.93);
}