Small is a shadcn/ui theme built around a muted light red primary color (#cabfbf) with muted light indigo accents (#bfbfca). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the muted light red primary (#cabfbf) on a red-tinted background (#0c0303).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f7snow | #0c0303black |
| Foreground | #040101black | #fdfcfcsnow |
| Card | #fdf7f7snow | #0c0303black |
| Card foreground | #040101black | #fdfcfcsnow |
| Popover | #fdf7f7snow | #0c0303black |
| Popover foreground | #040101black | #fdfcfcsnow |
| Primary | #cabfbfsilver | #cabfbfsilver |
| Primary foreground | #2f2727darkslategray | #2f2727darkslategray |
| Secondary | #bfcabfsilver | #bfcabfsilver |
| Secondary foreground | #272f27darkslategray | #272f27darkslategray |
| Muted | #dee3degainsboro | #1c211cblack |
| Muted foreground | #3a4b3adarkslategray | #b4c5b4silver |
| Accent | #bfbfcasilver | #bfbfcasilver |
| Accent foreground | #27272fdarkslategray | #27272fdarkslategray |
| Destructive | #9f2009firebrick | #e32d0dorangered |
| Destructive foreground | #fde2ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cabfbfsilver | #cabfbfsilver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 8.13:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 7.17:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 6.37:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.13:1 | AAA |
| Secondary button | 8.13:1 | AAA |
| Muted text | 9.01:1 | AAA |
| Accent | 8.13:1 | AAA |
| Destructive | 4.53:1 | AA |
Paste this into your globals.css to use Small in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 17.252);
--foreground: oklch(0.08 0.019 22.205);
--muted: oklch(0.91 0.008 145.506);
--muted-foreground: oklch(0.392 0.036 144.849);
--popover: oklch(0.981 0.006 17.252);
--popover-foreground: oklch(0.08 0.019 22.205);
--card: oklch(0.981 0.006 17.252);
--card-foreground: oklch(0.08 0.019 22.205);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.814 0.012 17.402);
--primary-foreground: oklch(0.283 0.012 17.861);
--secondary: oklch(0.827 0.019 145.405);
--secondary-foreground: oklch(0.296 0.018 145.113);
--accent: oklch(0.808 0.015 286.066);
--accent-foreground: oklch(0.278 0.014 285.434);
--destructive: oklch(0.458 0.166 32.003);
--destructive-foreground: oklch(0.934 0.031 29.615);
--ring: oklch(0.814 0.012 17.402);
--chart-1: oklch(0.814 0.012 17.402);
--chart-2: oklch(0.827 0.019 145.405);
--chart-3: oklch(0.808 0.015 286.066);
--chart-4: oklch(0.85 0.016 145.433);
--chart-5: oklch(0.811 0.016 17.487);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.118 0.022 21.037);
--foreground: oklch(0.991 0.002 17.184);
--muted: oklch(0.241 0.012 145.202);
--muted-foreground: oklch(0.806 0.03 145.286);
--popover: oklch(0.118 0.022 21.037);
--popover-foreground: oklch(0.991 0.002 17.184);
--card: oklch(0.118 0.022 21.037);
--card-foreground: oklch(0.991 0.002 17.184);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.012 17.402);
--primary-foreground: oklch(0.283 0.012 17.861);
--secondary: oklch(0.827 0.019 145.405);
--secondary-foreground: oklch(0.296 0.018 145.113);
--accent: oklch(0.808 0.015 286.066);
--accent-foreground: oklch(0.278 0.014 285.434);
--destructive: oklch(0.592 0.219 31.81);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.012 17.402);
--chart-1: oklch(0.814 0.012 17.402);
--chart-2: oklch(0.827 0.019 145.405);
--chart-3: oklch(0.808 0.015 286.066);
--chart-4: oklch(0.85 0.016 145.433);
--chart-5: oklch(0.811 0.016 17.487);
}