Spherical is a shadcn/ui theme built around a light yellow primary color (#eee1aa) with light blue accents (#aab7ee). The light mode uses a neutral background (#fcfbf8). Dark mode keeps the light yellow primary (#eee1aa) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbf8snow | #000000black |
| Foreground | #151205black | #fdfdfcwhite |
| Card | #faf9f5whitesmoke | #030303black |
| Card foreground | #110e04black | #ffffffwhite |
| Popover | #faf9f5whitesmoke | #030303black |
| Popover foreground | #110e04black | #ffffffwhite |
| Primary | #eee1aapalegoldenrod | #eee1aapalegoldenrod |
| Primary foreground | #554811darkolivegreen | #554811darkolivegreen |
| Secondary | #aab7eelightsteelblue | #aab7eelightsteelblue |
| Secondary foreground | #111e55midnightblue | #111e55midnightblue |
| Muted | #d0d4e7gainsboro | #181d2fblack |
| Muted foreground | #4e4f56darkslategray | #a9abb1darkgray |
| Accent | #aab7eelightsteelblue | #aab7eelightsteelblue |
| Accent foreground | #111e55midnightblue | #111e55midnightblue |
| Destructive | #b12802firebrick | #fd5426tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #eee1aapalegoldenrod | #eee1aapalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.08:1 | AAA |
| Text on card | 18.28:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 5.54:1 | AA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.63:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.86:1 | AA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 6.47:1 | AA |
Paste this into your globals.css to use Spherical in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.004 95.076);
--foreground: oklch(0.18 0.026 96.732);
--muted: oklch(0.873 0.026 274.657);
--muted-foreground: oklch(0.429 0.011 274.71);
--popover: oklch(0.981 0.005 95.097);
--popover-foreground: oklch(0.164 0.023 97.617);
--card: oklch(0.981 0.005 95.097);
--card-foreground: oklch(0.164 0.023 97.617);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.906 0.072 95.728);
--primary-foreground: oklch(0.403 0.073 94.487);
--secondary: oklch(0.79 0.079 273.569);
--secondary-foreground: oklch(0.265 0.101 267.995);
--accent: oklch(0.79 0.079 273.569);
--accent-foreground: oklch(0.265 0.101 267.995);
--destructive: oklch(0.497 0.178 33.931);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.906 0.072 95.728);
--chart-1: oklch(0.906 0.072 95.728);
--chart-2: oklch(0.79 0.079 273.569);
--chart-3: oklch(0.79 0.079 273.569);
--chart-4: oklch(0.822 0.067 273.885);
--chart-5: oklch(0.909 0.075 95.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.001 95.047);
--muted: oklch(0.235 0.036 272.645);
--muted-foreground: oklch(0.742 0.009 274.876);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.906 0.072 95.728);
--primary-foreground: oklch(0.403 0.073 94.487);
--secondary: oklch(0.79 0.079 273.569);
--secondary-foreground: oklch(0.265 0.101 267.995);
--accent: oklch(0.79 0.079 273.569);
--accent-foreground: oklch(0.265 0.101 267.995);
--destructive: oklch(0.673 0.212 35.48);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.906 0.072 95.728);
--chart-1: oklch(0.906 0.072 95.728);
--chart-2: oklch(0.79 0.079 273.569);
--chart-3: oklch(0.79 0.079 273.569);
--chart-4: oklch(0.822 0.067 273.885);
--chart-5: oklch(0.909 0.075 95.741);
}