Papa is a shadcn/ui theme built around a muted deep purple primary color (#5b3956) with muted deep cyan accents (#39565b). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the muted deep purple primary (#5b3956) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7fcsnow | #040103black |
| Foreground | #0d020cblack | #f9f6f8whitesmoke |
| Card | #fcf3fblavenderblush | #080307black |
| Card foreground | #090108black | #fbf9fasnow |
| Popover | #fcf3fblavenderblush | #080307black |
| Popover foreground | #090108black | #fbf9fasnow |
| Primary | #5b3956darkslategray | #5b3956darkslategray |
| Primary foreground | #e9dce7gainsboro | #e9dce7gainsboro |
| Secondary | #565b39darkolivegreen | #565b39darkolivegreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dddfd3gainsboro | #2b2c20darkslategray |
| Muted foreground | #474841darkslategray | #bdbeb7silver |
| Accent | #39565bdarkslategray | #39565bdarkslategray |
| Accent foreground | #dce7e9gainsboro | #dce7e9gainsboro |
| Destructive | #dc3e09orangered | #f65f2ctomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5b3956darkslategray | #5b3956darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.25:1 | AAA |
| Text on card | 18.93:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.84:1 | AA |
| Accent | 6.28:1 | AA |
| Destructive | 4.42:1 | AA Large |
| Text on background | 19.33:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 6.28:1 | AA |
| Destructive | 6.59:1 | AA |
Paste this into your globals.css to use Papa in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.01 330.374);
--foreground: oklch(0.121 0.036 332.159);
--muted: oklch(0.898 0.017 113.649);
--muted-foreground: oklch(0.399 0.011 113.836);
--popover: oklch(0.973 0.015 330.44);
--popover-foreground: oklch(0.105 0.031 331.663);
--card: oklch(0.973 0.015 330.44);
--card-foreground: oklch(0.105 0.031 331.663);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.395 0.065 332.217);
--primary-foreground: oklch(0.909 0.02 330.531);
--secondary: oklch(0.457 0.052 115.444);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.432 0.035 209.699);
--accent-foreground: oklch(0.922 0.012 209.439);
--destructive: oklch(0.595 0.202 35.519);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.395 0.065 332.217);
--chart-1: oklch(0.395 0.065 332.217);
--chart-2: oklch(0.457 0.052 115.444);
--chart-3: oklch(0.432 0.035 209.699);
--chart-4: oklch(0.49 0.056 115.471);
--chart-5: oklch(0.395 0.073 332.454);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.016 331.179);
--foreground: oklch(0.976 0.004 330.296);
--muted: oklch(0.289 0.022 114.693);
--muted-foreground: oklch(0.797 0.01 113.531);
--popover: oklch(0.109 0.02 331.179);
--popover-foreground: oklch(0.984 0.003 330.279);
--card: oklch(0.109 0.02 331.179);
--card-foreground: oklch(0.984 0.003 330.279);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.395 0.065 332.217);
--primary-foreground: oklch(0.909 0.02 330.531);
--secondary: oklch(0.457 0.052 115.444);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.432 0.035 209.699);
--accent-foreground: oklch(0.922 0.012 209.439);
--destructive: oklch(0.675 0.196 37.779);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.395 0.065 332.217);
--chart-1: oklch(0.395 0.065 332.217);
--chart-2: oklch(0.457 0.052 115.444);
--chart-3: oklch(0.432 0.035 209.699);
--chart-4: oklch(0.49 0.056 115.471);
--chart-5: oklch(0.395 0.073 332.454);
}