Few is a shadcn/ui theme built around a green primary color (#94b238) with violet accents (#5738b2). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#94b238) on a neutral background (#060802).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060802black |
| Foreground | #030401black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #0a0c04black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #060802black |
| Popover foreground | #030401black | #fdfdfcwhite |
| Primary | #94b238yellowgreen | #94b238yellowgreen |
| Primary foreground | #131707black | #131707black |
| Secondary | #5738b2rebeccapurple | #5738b2rebeccapurple |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dedbe6gainsboro | #1c1924black |
| Muted foreground | #414044darkslategray | #bcbbbfsilver |
| Accent | #5738b2rebeccapurple | #5738b2rebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #a21402darkred | #fd3f26orangered |
| Destructive foreground | #ffdbd7mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #94b238yellowgreen | #94b238yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 6.22:1 | AA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 9.03:1 | AAA |
| Accent | 8.01:1 | AAA |
| Destructive | 3.55:1 | AA Large |
Paste this into your globals.css to use Few in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.103 0.016 118.032);
--muted: oklch(0.897 0.014 297.541);
--muted-foreground: oklch(0.375 0.007 297.502);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.103 0.016 118.032);
--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.718 0.15 122.409);
--primary-foreground: oklch(0.196 0.03 120.602);
--secondary: oklch(0.452 0.182 288.33);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.452 0.182 288.33);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.454 0.176 30.999);
--destructive-foreground: oklch(0.92 0.04 26.789);
--ring: oklch(0.718 0.15 122.409);
--chart-1: oklch(0.718 0.15 122.409);
--chart-2: oklch(0.452 0.182 288.33);
--chart-3: oklch(0.452 0.182 288.33);
--chart-4: oklch(0.472 0.192 288.237);
--chart-5: oklch(0.727 0.156 122.633);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.128 0.017 118.006);
--foreground: oklch(0.994 0.002 117.854);
--muted: oklch(0.223 0.02 296.173);
--muted-foreground: oklch(0.793 0.006 297.698);
--popover: oklch(0.128 0.017 118.006);
--popover-foreground: oklch(0.994 0.002 117.854);
--card: oklch(0.147 0.019 118.248);
--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.718 0.15 122.409);
--primary-foreground: oklch(0.196 0.03 120.602);
--secondary: oklch(0.452 0.182 288.33);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.452 0.182 288.33);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.653 0.229 31.031);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.718 0.15 122.409);
--chart-1: oklch(0.718 0.15 122.409);
--chart-2: oklch(0.452 0.182 288.33);
--chart-3: oklch(0.452 0.182 288.33);
--chart-4: oklch(0.472 0.192 288.237);
--chart-5: oklch(0.727 0.156 122.633);
}