Unsteady is a shadcn/ui theme built around a near-black primary color (#000000) with muted light red accents (#d9c9c9). The light mode uses a neutral background (#fbf8f8). Dark mode keeps the near-black primary (#000000) on a red-tinted background (#0f0505).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf8f8snow | #0f0505black |
| Foreground | #040101black | #fbf9f9snow |
| Card | #faf5f5whitesmoke | #130707black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fbf8f8snow | #0f0505black |
| Popover foreground | #040101black | #fbf9f9snow |
| Primary | #000000black | #000000black |
| Primary foreground | #999999darkgray | #999999darkgray |
| Secondary | #d9c9c9lightgrey | #2f2323darkslategray |
| Secondary foreground | #422f2fdarkslategray | #cab9b9silver |
| Muted | #eacdcdlightgrey | #321515black |
| Muted foreground | #4c3d3ddarkslategray | #c2b3b3silver |
| Accent | #d9c9c9lightgrey | #2f2323darkslategray |
| Accent foreground | #422f2fdarkslategray | #cab9b9silver |
| Destructive | #832801saddlebrown | #fd7135tomato |
| Destructive foreground | #fecdb8peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #000000black | #000000black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.74:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 6.90:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.42:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 7.37:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.26:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 7.58:1 | AAA |
Paste this into your globals.css to use Unsteady in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.003 17.215);
--foreground: oklch(0.08 0.017 21.686);
--muted: oklch(0.872 0.032 17.784);
--muted-foreground: oklch(0.377 0.021 18.136);
--popover: oklch(0.983 0.003 17.215);
--popover-foreground: oklch(0.08 0.017 21.686);
--card: oklch(0.974 0.005 17.244);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.85 0.017 17.502);
--secondary-foreground: oklch(0.326 0.028 18.708);
--accent: oklch(0.85 0.017 17.502);
--accent-foreground: oklch(0.326 0.028 18.708);
--destructive: oklch(0.414 0.132 38.879);
--destructive-foreground: oklch(0.887 0.063 44.404);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.85 0.017 17.502);
--chart-3: oklch(0.85 0.017 17.502);
--chart-4: oklch(0.875 0.014 17.433);
--chart-5: oklch(0 0 0);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.02 20.029);
--foreground: oklch(0.984 0.002 17.187);
--muted: oklch(0.24 0.046 21.107);
--muted-foreground: oklch(0.778 0.017 17.532);
--popover: oklch(0.134 0.02 20.029);
--popover-foreground: oklch(0.984 0.002 17.187);
--card: oklch(0.146 0.023 20.255);
--card-foreground: oklch(0.992 0.001 17.173);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0 0 0);
--primary-foreground: oklch(0.683 0 180);
--secondary: oklch(0.27 0.017 18.293);
--secondary-foreground: oklch(0.801 0.02 17.568);
--accent: oklch(0.27 0.017 18.293);
--accent-foreground: oklch(0.801 0.02 17.568);
--destructive: oklch(0.71 0.186 41.63);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0 0 0);
--chart-1: oklch(0 0 0);
--chart-2: oklch(0.27 0.017 18.293);
--chart-3: oklch(0.27 0.017 18.293);
--chart-4: oklch(0.299 0.02 18.349);
--chart-5: oklch(0 0 0);
}