Sphynx is a shadcn/ui theme built around a vivid yellow primary color (#e4ed45) with muted light yellow accents (#cecfb4). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the vivid yellow primary (#e4ed45) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #070703black |
| Foreground | #111103black | #f9f9f5whitesmoke |
| Card | #fafbf4floralwhite | #0b0b04black |
| Card foreground | #0c0d02black | #fbfbf9snow |
| Popover | #fcfcf8snow | #070703black |
| Popover foreground | #111103black | #f9f9f5whitesmoke |
| Primary | #e4ed45greenyellow | #e4ed45greenyellow |
| Primary foreground | #000000black | #000000black |
| Secondary | #e0e0d6gainsboro | #23231ablack |
| Secondary foreground | #4b4c39darkolivegreen | #c1c2adsilver |
| Muted | #e8e9d2antiquewhite | #2c2d16darkslategray |
| Muted foreground | #6a6a5cdimgray | #a2a395darkgray |
| Accent | #cecfb4silver | #3e3f27darkslategray |
| Accent foreground | #313220darkslategray | #d7d8c0lightgrey |
| Destructive | #7e2c07saddlebrown | #f47134tomato |
| Destructive foreground | #fbd0bbpeachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e4ed45greenyellow | #e4ed45greenyellow |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.47:1 | AAA |
| Text on card | 18.74:1 | AAA |
| Primary button | 16.46:1 | AAA |
| Secondary button | 6.61:1 | AA |
| Muted text | 4.46:1 | AA Large |
| Accent | 8.23:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.08:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 16.46:1 | AAA |
| Secondary button | 8.72:1 | AAA |
| Muted text | 5.51:1 | AA |
| Accent | 7.42:1 | AAA |
| Destructive | 7.24:1 | AAA |
Paste this into your globals.css to use Sphynx in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 108.817);
--foreground: oklch(0.174 0.029 111.366);
--muted: oklch(0.928 0.031 109.314);
--muted-foreground: oklch(0.521 0.021 109.452);
--popover: oklch(0.99 0.006 108.817);
--popover-foreground: oklch(0.174 0.029 111.366);
--card: oklch(0.985 0.009 108.872);
--card-foreground: oklch(0.154 0.026 111.065);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.91 0.18 112.339);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.904 0.013 108.983);
--secondary-foreground: oklch(0.409 0.03 110.012);
--accent: oklch(0.847 0.036 109.49);
--accent-foreground: oklch(0.31 0.03 110.445);
--destructive: oklch(0.41 0.122 40.717);
--destructive-foreground: oklch(0.889 0.057 46.24);
--ring: oklch(0.91 0.18 112.339);
--chart-1: oklch(0.91 0.18 112.339);
--chart-2: oklch(0.904 0.013 108.983);
--chart-3: oklch(0.847 0.036 109.49);
--chart-4: oklch(0.925 0.01 108.919);
--chart-5: oklch(0.919 0.185 112.406);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.015 110.207);
--foreground: oklch(0.982 0.005 108.804);
--muted: oklch(0.288 0.038 111.066);
--muted-foreground: oklch(0.709 0.02 109.22);
--popover: oklch(0.128 0.015 110.207);
--popover-foreground: oklch(0.982 0.005 108.804);
--card: oklch(0.147 0.017 110.303);
--card-foreground: oklch(0.988 0.003 108.772);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.91 0.18 112.339);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.253 0.017 109.888);
--secondary-foreground: oklch(0.808 0.029 109.372);
--accent: oklch(0.36 0.039 110.645);
--accent-foreground: oklch(0.875 0.033 109.394);
--destructive: oklch(0.696 0.178 42.964);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.91 0.18 112.339);
--chart-1: oklch(0.91 0.18 112.339);
--chart-2: oklch(0.253 0.017 109.888);
--chart-3: oklch(0.36 0.039 110.645);
--chart-4: oklch(0.289 0.02 109.956);
--chart-5: oklch(0.919 0.185 112.406);
}