Stable is a shadcn/ui theme built around a muted deep blue primary color (#283043) with muted light blue accents (#cbd1e1). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the muted deep blue primary (#283043) on a blue-tinted background (#07090d).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #07090dblack |
| Foreground | #040915black | #f9fafbghostwhite |
| Card | #f8f9fcghostwhite | #07090dblack |
| Card foreground | #040915black | #f9fafbghostwhite |
| Popover | #f8f9fcghostwhite | #07090dblack |
| Popover foreground | #040915black | #f9fafbghostwhite |
| Primary | #283043darkslategray | #283043darkslategray |
| Primary foreground | #c2c9dblightsteelblue | #c2c9dblightsteelblue |
| Secondary | #dee1e8gainsboro | #24272ddarkslategray |
| Secondary foreground | #3d4457darkslategray | #bbbfc9silver |
| Muted | #e3e5e8gainsboro | #17191cblack |
| Muted foreground | #606062dimgray | #9d9e9fdarkgray |
| Accent | #cbd1e1lightgrey | #2d3343darkslategray |
| Accent foreground | #2d364edarkslategray | #c8cddalightgrey |
| Destructive | #972c11saddlebrown | #d33d17firebrick |
| Destructive foreground | #fbe5dfmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #283043darkslategray | #283043darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.90:1 | AAA |
| Text on card | 18.90:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.46:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.96:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 6.57:1 | AA |
| Accent | 7.90:1 | AAA |
| Destructive | 4.71:1 | AA |
Paste this into your globals.css to use Stable in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.004 268.764);
--foreground: oklch(0.142 0.028 262.848);
--muted: oklch(0.921 0.004 268.76);
--muted-foreground: oklch(0.491 0.002 268.758);
--popover: oklch(0.982 0.004 268.764);
--popover-foreground: oklch(0.142 0.028 262.848);
--card: oklch(0.982 0.004 268.764);
--card-foreground: oklch(0.142 0.028 262.848);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.31 0.036 267.61);
--primary-foreground: oklch(0.837 0.025 268.553);
--secondary: oklch(0.909 0.01 268.709);
--secondary-foreground: oklch(0.388 0.034 267.963);
--accent: oklch(0.862 0.023 268.586);
--accent-foreground: oklch(0.335 0.044 267.436);
--destructive: oklch(0.455 0.148 34.541);
--destructive-foreground: oklch(0.938 0.026 34.3);
--ring: oklch(0.31 0.036 267.61);
--chart-1: oklch(0.31 0.036 267.61);
--chart-2: oklch(0.909 0.01 268.709);
--chart-3: oklch(0.862 0.023 268.586);
--chart-4: oklch(0.934 0.007 268.735);
--chart-5: oklch(0.308 0.041 267.418);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 266.001);
--foreground: oklch(0.984 0.002 268.778);
--muted: oklch(0.212 0.006 268.57);
--muted-foreground: oklch(0.698 0.002 268.77);
--popover: oklch(0.139 0.011 266.001);
--popover-foreground: oklch(0.984 0.002 268.778);
--card: oklch(0.139 0.011 266.001);
--card-foreground: oklch(0.984 0.002 268.778);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.31 0.036 267.61);
--primary-foreground: oklch(0.837 0.025 268.553);
--secondary: oklch(0.272 0.012 268.409);
--secondary-foreground: oklch(0.804 0.014 268.66);
--accent: oklch(0.323 0.03 267.9);
--accent-foreground: oklch(0.849 0.019 268.62);
--destructive: oklch(0.579 0.193 34.329);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.31 0.036 267.61);
--chart-1: oklch(0.31 0.036 267.61);
--chart-2: oklch(0.272 0.012 268.409);
--chart-3: oklch(0.323 0.03 267.9);
--chart-4: oklch(0.302 0.014 268.389);
--chart-5: oklch(0.308 0.041 267.418);
}