Pancreas is a shadcn/ui theme built around a green primary color (#50d831) with purple accents (#b931d8). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#50d831) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #050b04black | #f6faf5whitesmoke |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #030803black | #f9fcf8mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #050b04black | #f6faf5whitesmoke |
| Primary | #50d831limegreen | #50d831limegreen |
| Primary foreground | #11330adarkgreen | #11330adarkgreen |
| Secondary | #b931d8darkorchid | #b931d8darkorchid |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e8dbeblavender | #211424black |
| Muted foreground | #5c565ddimgray | #a8a2a9darkgray |
| Accent | #b931d8darkorchid | #b931d8darkorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #73210cmaroon | #e9512bchocolate |
| Destructive foreground | #f8c6balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #50d831limegreen | #50d831limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 4.66:1 | AA |
| Muted text | 5.36:1 | AA |
| Accent | 4.66:1 | AA |
| Destructive | 7.04:1 | AAA |
| Text on background | 19.91:1 | AAA |
| Text on card | 19.99:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 4.66:1 | AA |
| Muted text | 7.04:1 | AAA |
| Accent | 4.66:1 | AA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Pancreas in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.141 0.023 138.485);
--muted: oklch(0.907 0.024 320.016);
--muted-foreground: oklch(0.46 0.014 320.018);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.141 0.023 138.485);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.123 0.02 138.445);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.777 0.231 140.557);
--primary-foreground: oklch(0.287 0.078 140.274);
--secondary: oklch(0.592 0.249 319.332);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.592 0.249 319.332);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.376 0.12 34.682);
--destructive-foreground: oklch(0.867 0.059 34.389);
--ring: oklch(0.777 0.231 140.557);
--chart-1: oklch(0.777 0.231 140.557);
--chart-2: oklch(0.592 0.249 319.332);
--chart-3: oklch(0.592 0.249 319.332);
--chart-4: oklch(0.61 0.24 319.577);
--chart-5: oklch(0.786 0.238 140.636);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.98 0.009 139.983);
--muted: oklch(0.217 0.034 320.097);
--muted-foreground: oklch(0.72 0.012 320.007);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.98 0.009 139.983);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.006 139.986);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.777 0.231 140.557);
--primary-foreground: oklch(0.287 0.078 140.274);
--secondary: oklch(0.592 0.249 319.332);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.592 0.249 319.332);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.637 0.195 34.887);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.777 0.231 140.557);
--chart-1: oklch(0.777 0.231 140.557);
--chart-2: oklch(0.592 0.249 319.332);
--chart-3: oklch(0.592 0.249 319.332);
--chart-4: oklch(0.61 0.24 319.577);
--chart-5: oklch(0.786 0.238 140.636);
}