Self-reliant is a shadcn/ui theme built around a blue primary color (#90a0c6) with yellow accents (#c6b690). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#90a0c6) on a blue-tinted background (#07090d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #07090dblack |
| Foreground | #020408black | #fbfcfdwhite |
| Card | #fcfcfcsnow | #090b11black |
| Card foreground | #010204black | #ffffffwhite |
| Popover | #fcfcfcsnow | #090b11black |
| Popover foreground | #010204black | #ffffffwhite |
| Primary | #90a0c6darkgray | #90a0c6darkgray |
| Primary foreground | #0c1018black | #0c1018black |
| Secondary | #c6b690tan | #c6b690tan |
| Secondary foreground | #18140cblack | #18140cblack |
| Muted | #ebe8e0beige | #1f1c14black |
| Muted foreground | #474338darkslategray | #c7c2b8silver |
| Accent | #c6b690tan | #c6b690tan |
| Accent foreground | #18140cblack | #18140cblack |
| Destructive | #d23d14firebrick | #ed6540tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #90a0c6darkgray | #90a0c6darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.51:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 9.13:1 | AAA |
| Muted text | 8.03:1 | AAA |
| Accent | 9.13:1 | AAA |
| Destructive | 4.75:1 | AA |
| Text on background | 19.39:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 9.13:1 | AAA |
| Muted text | 9.63:1 | AAA |
| Accent | 9.13:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Self-reliant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.105 0.016 258.571);
--muted: oklch(0.93 0.01 87.474);
--muted-foreground: oklch(0.383 0.019 87.57);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.083 0.013 258.571);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.013 258.571);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.707 0.058 266.749);
--primary-foreground: oklch(0.171 0.018 266.535);
--secondary: oklch(0.779 0.054 87.54);
--secondary-foreground: oklch(0.193 0.016 87.475);
--accent: oklch(0.779 0.054 87.54);
--accent-foreground: oklch(0.193 0.016 87.475);
--destructive: oklch(0.576 0.192 34.895);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.707 0.058 266.749);
--chart-1: oklch(0.707 0.058 266.749);
--chart-2: oklch(0.779 0.054 87.54);
--chart-3: oklch(0.779 0.054 87.54);
--chart-4: oklch(0.8 0.049 87.56);
--chart-5: oklch(0.704 0.064 266.664);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.011 264.643);
--foreground: oklch(0.991 0.002 267.409);
--muted: oklch(0.225 0.014 87.558);
--muted-foreground: oklch(0.816 0.016 87.509);
--popover: oklch(0.15 0.013 266.434);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.15 0.013 266.434);
--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.707 0.058 266.749);
--primary-foreground: oklch(0.171 0.018 266.535);
--secondary: oklch(0.779 0.054 87.54);
--secondary-foreground: oklch(0.193 0.016 87.475);
--accent: oklch(0.779 0.054 87.54);
--accent-foreground: oklch(0.193 0.016 87.475);
--destructive: oklch(0.672 0.177 36.265);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.707 0.058 266.749);
--chart-1: oklch(0.707 0.058 266.749);
--chart-2: oklch(0.779 0.054 87.54);
--chart-3: oklch(0.779 0.054 87.54);
--chart-4: oklch(0.8 0.049 87.56);
--chart-5: oklch(0.704 0.064 266.664);
}