Ancestor is a shadcn/ui theme built around a light teal primary color (#deede9) with light cyan accents (#deeaed). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#deede9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #041611black | #fcfdfdwhite |
| Card | #ffffffwhite | #000000black |
| Card foreground | #041611black | #fcfdfdwhite |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #041611black | #fcfdfdwhite |
| Primary | #deede9lavender | #deede9lavender |
| Primary foreground | #12211dblack | #12211dblack |
| Secondary | #deede1gainsboro | #deede1gainsboro |
| Secondary foreground | #122115black | #122115black |
| Muted | #e3ede5gainsboro | #121c14black |
| Muted foreground | #414e44darkslategray | #b1beb4silver |
| Accent | #deeaedlavender | #deeaedlavender |
| Accent foreground | #355a64darkslategray | #355a64darkslategray |
| Destructive | #8e2b10saddlebrown | #d34017chocolate |
| Destructive foreground | #faded6antiquewhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #deede9lavender | #deede9lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.61:1 | AAA |
| Text on card | 18.61:1 | AAA |
| Primary button | 13.82:1 | AAA |
| Secondary button | 13.82:1 | AAA |
| Muted text | 7.31:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 6.56:1 | AA |
| Text on background | 20.60:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 13.82:1 | AAA |
| Secondary button | 13.82:1 | AAA |
| Muted text | 9.05:1 | AAA |
| Accent | 6.10:1 | AA |
| Destructive | 4.64:1 | AA |
Paste this into your globals.css to use Ancestor in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.181 0.028 173.287);
--muted: oklch(0.937 0.016 152.352);
--muted-foreground: oklch(0.409 0.023 151.685);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.181 0.028 173.287);
--card: oklch(1 0 180);
--card-foreground: oklch(0.181 0.028 173.287);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.934 0.018 177.154);
--primary-foreground: oklch(0.234 0.023 174.347);
--secondary: oklch(0.932 0.024 152.216);
--secondary-foreground: oklch(0.231 0.032 150.148);
--accent: oklch(0.929 0.014 216.083);
--accent-foreground: oklch(0.444 0.046 217.394);
--destructive: oklch(0.438 0.139 35.439);
--destructive-foreground: oklch(0.921 0.034 35.944);
--ring: oklch(0.934 0.018 177.154);
--chart-1: oklch(0.934 0.018 177.154);
--chart-2: oklch(0.932 0.024 152.216);
--chart-3: oklch(0.929 0.014 216.083);
--chart-4: oklch(0.953 0.016 152.345);
--chart-5: oklch(0.935 0.019 177.1);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 177.688);
--muted: oklch(0.214 0.022 150.848);
--muted-foreground: oklch(0.789 0.02 152.215);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.993 0.001 177.688);
--card: oklch(0 0 0);
--card-foreground: oklch(0.993 0.001 177.688);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.934 0.018 177.154);
--primary-foreground: oklch(0.234 0.023 174.347);
--secondary: oklch(0.932 0.024 152.216);
--secondary-foreground: oklch(0.231 0.032 150.148);
--accent: oklch(0.929 0.014 216.083);
--accent-foreground: oklch(0.444 0.046 217.394);
--destructive: oklch(0.582 0.19 35.135);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.934 0.018 177.154);
--chart-1: oklch(0.934 0.018 177.154);
--chart-2: oklch(0.932 0.024 152.216);
--chart-3: oklch(0.929 0.014 216.083);
--chart-4: oklch(0.953 0.016 152.345);
--chart-5: oklch(0.935 0.019 177.1);
}