Parable is a shadcn/ui theme built around a purple primary color (#c51fdb) with teal accents (#1fdbc5). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the purple primary (#c51fdb) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #000000black |
| Foreground | #080209black | #f9f6f9whitesmoke |
| Card | #fcf7fcsnow | #030303black |
| Card foreground | #040104black | #fbf9fbsnow |
| Popover | #fdfbfewhite | #000000black |
| Popover foreground | #080209black | #f9f6f9whitesmoke |
| Primary | #c51fdbdarkorchid | #c51fdbdarkorchid |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dbc51fgoldenrod | #dbc51fgoldenrod |
| Secondary foreground | #282406black | #282406black |
| Muted | #f0efealinen | #15140fblack |
| Muted foreground | #404040darkslategray | #bfbfbfsilver |
| Accent | #1fdbc5turquoise | #1fdbc5turquoise |
| Accent foreground | #062824black | #062824black |
| Destructive | #aa4013saddlebrown | #e6571achocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c51fdbdarkorchid | #c51fdbdarkorchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.98:1 | AAA |
| Text on card | 19.67:1 | AAA |
| Primary button | 4.57:1 | AA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.94:1 | AAA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.57:1 | AAA |
| Text on card | 19.73:1 | AAA |
| Primary button | 4.57:1 | AA |
| Secondary button | 8.91:1 | AAA |
| Muted text | 10.01:1 | AAA |
| Accent | 8.94:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Parable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 322.127);
--foreground: oklch(0.105 0.031 324.355);
--muted: oklch(0.953 0.007 100.445);
--muted-foreground: oklch(0.371 0 168.69);
--popover: oklch(0.991 0.004 322.127);
--popover-foreground: oklch(0.105 0.031 324.355);
--card: oklch(0.982 0.008 322.141);
--card-foreground: oklch(0.083 0.025 324.355);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.6 0.269 322.417);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.816 0.164 100.879);
--secondary-foreground: oklch(0.258 0.047 101.834);
--accent: oklch(0.801 0.139 182.042);
--accent-foreground: oklch(0.252 0.039 183.967);
--destructive: oklch(0.512 0.149 40.268);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.6 0.269 322.417);
--chart-1: oklch(0.6 0.269 322.417);
--chart-2: oklch(0.816 0.164 100.879);
--chart-3: oklch(0.801 0.139 182.042);
--chart-4: oklch(0.835 0.165 101.115);
--chart-5: oklch(0.605 0.274 322.337);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.976 0.005 322.13);
--muted: oklch(0.191 0.01 101.104);
--muted-foreground: oklch(0.805 0 169.695);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.976 0.005 322.13);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.984 0.003 322.124);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.6 0.269 322.417);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.816 0.164 100.879);
--secondary-foreground: oklch(0.258 0.047 101.834);
--accent: oklch(0.801 0.139 182.042);
--accent-foreground: oklch(0.252 0.039 183.967);
--destructive: oklch(0.638 0.189 39.888);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.6 0.269 322.417);
--chart-1: oklch(0.6 0.269 322.417);
--chart-2: oklch(0.816 0.164 100.879);
--chart-3: oklch(0.801 0.139 182.042);
--chart-4: oklch(0.835 0.165 101.115);
--chart-5: oklch(0.605 0.274 322.337);
}