Small is a shadcn/ui theme built around a vivid deep pink primary color (#390427) with vivid deep blue accents (#042739). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid deep pink primary (#390427) on a pink-tinted background (#0f060c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0f060cblack |
| Foreground | #090206black | #fcf8fbsnow |
| Card | #fdfcfdwhite | #0f060cblack |
| Card foreground | #090206black | #fcf8fbsnow |
| Popover | #fdfcfdwhite | #0f060cblack |
| Popover foreground | #090206black | #fcf8fbsnow |
| Primary | #390427black | #390427black |
| Primary foreground | #f679cchotpink | #f679cchotpink |
| Secondary | #273904darkgreen | #273904darkgreen |
| Secondary foreground | #a8ef1agreenyellow | #a8ef1agreenyellow |
| Muted | #f0f1eewhitesmoke | #10110eblack |
| Muted foreground | #5c5d5bdimgray | #a4a4a2darkgray |
| Accent | #042739midnightblue | #042739midnightblue |
| Accent foreground | #79ccf6lightskyblue | #79ccf6lightskyblue |
| Destructive | #ce3112firebrick | #ed5031tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #390427black | #390427black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.01:1 | AAA |
| Text on card | 20.01:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 8.94:1 | AAA |
| Muted text | 5.85:1 | AA |
| Accent | 8.65:1 | AAA |
| Destructive | 5.13:1 | AA |
| Text on background | 19.01:1 | AAA |
| Text on card | 19.01:1 | AAA |
| Primary button | 6.97:1 | AA |
| Secondary button | 8.94:1 | AAA |
| Muted text | 7.59:1 | AAA |
| Accent | 8.65:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Small in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 337.312);
--foreground: oklch(0.105 0.028 337.775);
--muted: oklch(0.958 0.005 121.57);
--muted-foreground: oklch(0.476 0.003 121.594);
--popover: oklch(0.991 0.002 337.312);
--popover-foreground: oklch(0.105 0.028 337.775);
--card: oklch(0.991 0.002 337.312);
--card-foreground: oklch(0.105 0.028 337.775);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.235 0.091 345.362);
--primary-foreground: oklch(0.746 0.179 341.75);
--secondary: oklch(0.318 0.078 127.097);
--secondary-foreground: oklch(0.873 0.225 128.404);
--accent: oklch(0.26 0.051 235.462);
--accent-foreground: oklch(0.809 0.1 231.547);
--destructive: oklch(0.56 0.198 32.692);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.235 0.091 345.362);
--chart-1: oklch(0.235 0.091 345.362);
--chart-2: oklch(0.318 0.078 127.097);
--chart-3: oklch(0.26 0.051 235.462);
--chart-4: oklch(0.368 0.092 127.54);
--chart-5: oklch(0.236 0.094 345.581);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.023 339.106);
--foreground: oklch(0.983 0.005 337.374);
--muted: oklch(0.175 0.007 122.144);
--muted-foreground: oklch(0.718 0.003 121.553);
--popover: oklch(0.138 0.023 339.106);
--popover-foreground: oklch(0.983 0.005 337.374);
--card: oklch(0.138 0.023 339.106);
--card-foreground: oklch(0.983 0.005 337.374);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.235 0.091 345.362);
--primary-foreground: oklch(0.746 0.179 341.75);
--secondary: oklch(0.318 0.078 127.097);
--secondary-foreground: oklch(0.873 0.225 128.404);
--accent: oklch(0.26 0.051 235.462);
--accent-foreground: oklch(0.809 0.1 231.547);
--destructive: oklch(0.644 0.199 33.202);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.235 0.091 345.362);
--chart-1: oklch(0.235 0.091 345.362);
--chart-2: oklch(0.318 0.078 127.097);
--chart-3: oklch(0.26 0.051 235.462);
--chart-4: oklch(0.368 0.092 127.54);
--chart-5: oklch(0.236 0.094 345.581);
}