Small is a shadcn/ui theme built around a light yellow primary color (#fcfbee) with light purple accents (#fbeefc). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#fcfbee) on a yellow-tinted background (#100f04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #100f04black |
| Foreground | #040401black | #fdfdfcwhite |
| Card | #ffffffwhite | #100f04black |
| Card foreground | #040401black | #fdfdfcwhite |
| Popover | #ffffffwhite | #100f04black |
| Popover foreground | #040401black | #fdfdfcwhite |
| Primary | #fcfbeefloralwhite | #fcfbeefloralwhite |
| Primary foreground | #44400edarkolivegreen | #44400edarkolivegreen |
| Secondary | #eefcfbazure | #eefcfbazure |
| Secondary foreground | #0e4440darkslategray | #0e4440darkslategray |
| Muted | #d9eceblavender | #132624black |
| Muted foreground | #596e6ddimgray | #91a6a5darkgray |
| Accent | #fbeefclavenderblush | #fbeefclavenderblush |
| Accent foreground | #901f98darkmagenta | #901f98darkmagenta |
| Destructive | #cc0300red | #ff0e0ared |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fcfbeefloralwhite | #fcfbeefloralwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.52:1 | AAA |
| Text on card | 20.52:1 | AAA |
| Primary button | 10.12:1 | AAA |
| Secondary button | 10.36:1 | AAA |
| Muted text | 4.44:1 | AA Large |
| Accent | 6.60:1 | AA |
| Destructive | 5.86:1 | AA |
| Text on background | 18.87:1 | AAA |
| Text on card | 18.87:1 | AAA |
| Primary button | 10.12:1 | AAA |
| Secondary button | 10.36:1 | AAA |
| Muted text | 6.19:1 | AA |
| Accent | 6.60:1 | AA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Small in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.106 0.018 106.672);
--muted: oklch(0.93 0.02 191.973);
--muted-foreground: oklch(0.521 0.026 191.377);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.106 0.018 106.672);
--card: oklch(1 0 180);
--card-foreground: oklch(0.106 0.018 106.672);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.984 0.017 103.385);
--primary-foreground: oklch(0.365 0.068 105.222);
--secondary: oklch(0.979 0.014 192.124);
--secondary-foreground: oklch(0.351 0.054 188.407);
--accent: oklch(0.963 0.022 323.755);
--accent-foreground: oklch(0.478 0.199 325.069);
--destructive: oklch(0.532 0.217 29.405);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.984 0.017 103.385);
--chart-1: oklch(0.984 0.017 103.385);
--chart-2: oklch(0.979 0.014 192.124);
--chart-3: oklch(0.963 0.022 323.755);
--chart-4: oklch(0.995 0.004 192.352);
--chart-5: oklch(0.985 0.017 103.397);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.166 0.022 105.369);
--foreground: oklch(0.994 0.002 103.133);
--muted: oklch(0.25 0.025 190.217);
--muted-foreground: oklch(0.709 0.025 191.704);
--popover: oklch(0.166 0.022 105.369);
--popover-foreground: oklch(0.994 0.002 103.133);
--card: oklch(0.166 0.022 105.369);
--card-foreground: oklch(0.994 0.002 103.133);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.984 0.017 103.385);
--primary-foreground: oklch(0.365 0.068 105.222);
--secondary: oklch(0.979 0.014 192.124);
--secondary-foreground: oklch(0.351 0.054 188.407);
--accent: oklch(0.963 0.022 323.755);
--accent-foreground: oklch(0.478 0.199 325.069);
--destructive: oklch(0.631 0.255 29.125);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.984 0.017 103.385);
--chart-1: oklch(0.984 0.017 103.385);
--chart-2: oklch(0.979 0.014 192.124);
--chart-3: oklch(0.963 0.022 323.755);
--chart-4: oklch(0.995 0.004 192.352);
--chart-5: oklch(0.985 0.017 103.397);
}