Predecessor is a shadcn/ui theme built around a light teal primary color (#a5e9ee) with light yellow accents (#e9eea5). The light mode uses a neutral background (#f8fcfc). Dark mode keeps the light teal primary (#a5e9ee) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcfcmintcream | #000000black |
| Foreground | #010809black | #f7f8f8whitesmoke |
| Card | #f4fafbmintcream | #030303black |
| Card foreground | #010404black | #f9fafaghostwhite |
| Popover | #f8fcfcmintcream | #000000black |
| Popover foreground | #010809black | #f7f8f8whitesmoke |
| Primary | #a5e9eepaleturquoise | #a5e9eepaleturquoise |
| Primary foreground | #104d51darkslategray | #104d51darkslategray |
| Secondary | #eea5e9plum | #eea5e9plum |
| Secondary foreground | #51104dindigo | #51104dindigo |
| Muted | #eee7eelavender | #181118black |
| Muted foreground | #544a53darkslategray | #b5abb4darkgray |
| Accent | #e9eea5palegoldenrod | #e9eea5palegoldenrod |
| Accent foreground | #4d5110darkolivegreen | #4d5110darkolivegreen |
| Destructive | #c03507firebrick | #f86a3atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a5e9eepaleturquoise | #a5e9eepaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 6.97:1 | AA |
| Accent | 6.88:1 | AA |
| Destructive | 5.59:1 | AA |
| Text on background | 19.73:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.03:1 | AAA |
| Secondary button | 7.30:1 | AAA |
| Muted text | 8.35:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 7.09:1 | AAA |
Paste this into your globals.css to use Predecessor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.004 202.167);
--foreground: oklch(0.126 0.016 199.468);
--muted: oklch(0.935 0.012 327.672);
--muted-foreground: oklch(0.423 0.019 327.978);
--popover: oklch(0.987 0.004 202.167);
--popover-foreground: oklch(0.126 0.016 199.468);
--card: oklch(0.981 0.007 202.143);
--card-foreground: oklch(0.1 0.013 199.468);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.891 0.068 201.607);
--primary-foreground: oklch(0.385 0.059 202.198);
--secondary: oklch(0.814 0.122 328.923);
--secondary-foreground: oklch(0.315 0.122 330.99);
--accent: oklch(0.928 0.093 111.289);
--accent-foreground: oklch(0.419 0.085 113.387);
--destructive: oklch(0.537 0.182 35.612);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.891 0.068 201.607);
--chart-1: oklch(0.891 0.068 201.607);
--chart-2: oklch(0.814 0.122 328.923);
--chart-3: oklch(0.928 0.093 111.289);
--chart-4: oklch(0.839 0.104 328.7);
--chart-5: oklch(0.893 0.071 201.597);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.978 0.002 202.198);
--muted: oklch(0.189 0.018 328.436);
--muted-foreground: oklch(0.752 0.016 327.759);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.978 0.002 202.198);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.985 0.001 202.203);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.891 0.068 201.607);
--primary-foreground: oklch(0.385 0.059 202.198);
--secondary: oklch(0.814 0.122 328.923);
--secondary-foreground: oklch(0.315 0.122 330.99);
--accent: oklch(0.928 0.093 111.289);
--accent-foreground: oklch(0.419 0.085 113.387);
--destructive: oklch(0.692 0.185 38.315);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.891 0.068 201.607);
--chart-1: oklch(0.891 0.068 201.607);
--chart-2: oklch(0.814 0.122 328.923);
--chart-3: oklch(0.928 0.093 111.289);
--chart-4: oklch(0.839 0.104 328.7);
--chart-5: oklch(0.893 0.071 201.597);
}