Spherical is a shadcn/ui theme built around a pink primary color (#d72386) with green accents (#23d774). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the pink primary (#d72386) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #040103black |
| Foreground | #040103black | #f9f6f7whitesmoke |
| Card | #fdfbfdsnow | #040103black |
| Card foreground | #040103black | #f9f6f7whitesmoke |
| Popover | #fdfbfdsnow | #040103black |
| Popover foreground | #040103black | #f9f6f7whitesmoke |
| Primary | #d72386mediumvioletred | #d72386mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #23d774mediumseagreen | #23d774mediumseagreen |
| Secondary foreground | #062715black | #062715black |
| Muted | #e7f3edhoneydew | #0c1811black |
| Muted foreground | #57605bdimgray | #9fa8a3darkgray |
| Accent | #23d774mediumseagreen | #23d774mediumseagreen |
| Accent foreground | #062715black | #062715black |
| Destructive | #862d03saddlebrown | #f9641fchocolate |
| Destructive foreground | #fdd2bepeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d72386mediumvioletred | #d72386mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.24:1 | AAA |
| Primary button | 4.69:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 5.72:1 | AA |
| Accent | 8.43:1 | AAA |
| Destructive | 6.32:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 4.69:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 7.45:1 | AAA |
| Accent | 8.43:1 | AAA |
| Destructive | 6.89:1 | AA |
Paste this into your globals.css to use Spherical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 342.68);
--foreground: oklch(0.084 0.017 342.583);
--muted: oklch(0.954 0.016 162.198);
--muted-foreground: oklch(0.481 0.014 161.884);
--popover: oklch(0.991 0.002 342.68);
--popover-foreground: oklch(0.084 0.017 342.583);
--card: oklch(0.991 0.002 342.68);
--card-foreground: oklch(0.084 0.017 342.583);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.587 0.223 353.782);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.773 0.194 152.242);
--secondary-foreground: oklch(0.245 0.052 155.363);
--accent: oklch(0.773 0.194 152.242);
--accent-foreground: oklch(0.245 0.052 155.363);
--destructive: oklch(0.425 0.131 40.058);
--destructive-foreground: oklch(0.896 0.056 46.257);
--ring: oklch(0.587 0.223 353.782);
--chart-1: oklch(0.587 0.223 353.782);
--chart-2: oklch(0.773 0.194 152.242);
--chart-3: oklch(0.773 0.194 152.242);
--chart-4: oklch(0.791 0.193 152.882);
--chart-5: oklch(0.592 0.229 354.293);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.014 342.591);
--foreground: oklch(0.976 0.003 342.697);
--muted: oklch(0.195 0.023 159.292);
--muted-foreground: oklch(0.722 0.013 162.18);
--popover: oklch(0.086 0.014 342.591);
--popover-foreground: oklch(0.976 0.003 342.697);
--card: oklch(0.086 0.014 342.591);
--card-foreground: oklch(0.976 0.003 342.697);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.587 0.223 353.782);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.773 0.194 152.242);
--secondary-foreground: oklch(0.245 0.052 155.363);
--accent: oklch(0.773 0.194 152.242);
--accent-foreground: oklch(0.245 0.052 155.363);
--destructive: oklch(0.686 0.197 41.265);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.587 0.223 353.782);
--chart-1: oklch(0.587 0.223 353.782);
--chart-2: oklch(0.773 0.194 152.242);
--chart-3: oklch(0.773 0.194 152.242);
--chart-4: oklch(0.791 0.193 152.882);
--chart-5: oklch(0.592 0.229 354.293);
}