Little is a shadcn/ui theme built around a deep green primary color (#0f1807) with deep pink accents (#18070f). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#0f1807) on a neutral background (#020401).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020401black |
| Foreground | #020401black | #ffffffwhite |
| Card | #fcfcfcsnow | #050802black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050802black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #0f1807black | #0f1807black |
| Primary foreground | #71b832olivedrab | #71b832olivedrab |
| Secondary | #070f18black | #070f18black |
| Secondary foreground | #77a5dacornflowerblue | #77a5dacornflowerblue |
| Muted | #e6eaeflavender | #101419black |
| Muted foreground | #4a4c4fdarkslategray | #b0b2b5darkgray |
| Accent | #18070fblack | #18070fblack |
| Accent foreground | #da77a5palevioletred | #da77a5palevioletred |
| Destructive | #ae270ffirebrick | #ed4d31tomato |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0f1807black | #0f1807black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.58:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 7.14:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 6.25:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 7.45:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 8.69:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 3.68:1 | AA Large |
Paste this into your globals.css to use Little in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.101 0.017 128.456);
--muted: oklch(0.936 0.008 251.516);
--muted-foreground: oklch(0.417 0.005 251.545);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.992 0 161.565);
--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.194 0.036 131.65);
--primary-foreground: oklch(0.71 0.179 133.692);
--secondary: oklch(0.164 0.024 251.37);
--secondary-foreground: oklch(0.709 0.092 252.386);
--accent: oklch(0.159 0.035 351.719);
--accent-foreground: oklch(0.692 0.134 351.782);
--destructive: oklch(0.491 0.174 32.147);
--destructive-foreground: oklch(0.972 0.012 29.513);
--ring: oklch(0.194 0.036 131.65);
--chart-1: oklch(0.194 0.036 131.65);
--chart-2: oklch(0.164 0.024 251.37);
--chart-3: oklch(0.159 0.035 351.719);
--chart-4: oklch(0.197 0.033 252.767);
--chart-5: oklch(0.196 0.038 131.691);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.015 128.555);
--foreground: oklch(1 0 180);
--muted: oklch(0.19 0.011 251.876);
--muted-foreground: oklch(0.764 0.004 251.496);
--popover: oklch(0.126 0.019 128.555);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.019 128.555);
--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.194 0.036 131.65);
--primary-foreground: oklch(0.71 0.179 133.692);
--secondary: oklch(0.164 0.024 251.37);
--secondary-foreground: oklch(0.709 0.092 252.386);
--accent: oklch(0.159 0.035 351.719);
--accent-foreground: oklch(0.692 0.134 351.782);
--destructive: oklch(0.64 0.201 32.376);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.194 0.036 131.65);
--chart-1: oklch(0.194 0.036 131.65);
--chart-2: oklch(0.164 0.024 251.37);
--chart-3: oklch(0.159 0.035 351.719);
--chart-4: oklch(0.197 0.033 252.767);
--chart-5: oklch(0.196 0.038 131.691);
}