Functionality is a shadcn/ui theme built around a muted teal primary color (#7ea9a7) with muted red accents (#a97e81). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#7ea9a7) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030707black |
| Foreground | #000000black | #ffffffwhite |
| Card | #fcfcfcsnow | #050a0ablack |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050a0ablack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #7ea9a7cadetblue | #7ea9a7cadetblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #a97e81rosybrown | #a97e81rosybrown |
| Secondary foreground | #000000black | #000000black |
| Muted | #e0d7d7gainsboro | #281f20black |
| Muted foreground | #4d4d4ddarkslategray | #b3b3b3darkgray |
| Accent | #a97e81rosybrown | #a97e81rosybrown |
| Accent foreground | #000000black | #000000black |
| Destructive | #9d2207firebrick | #f64d28tomato |
| Destructive foreground | #fddfd8mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #7ea9a7cadetblue | #7ea9a7cadetblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 5.98:1 | AA |
| Accent | 6.01:1 | AA |
| Destructive | 6.28:1 | AA |
| Text on background | 20.24:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 8.15:1 | AAA |
| Secondary button | 6.01:1 | AA |
| Muted text | 7.63:1 | AAA |
| Accent | 6.01:1 | AA |
| Destructive | 3.48:1 | AA Large |
Paste this into your globals.css to use Functionality in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.886 0.009 13.819);
--muted-foreground: oklch(0.418 0 173.29);
--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.704 0.046 192.306);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.637 0.053 15.337);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.637 0.053 15.337);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.455 0.162 33.103);
--destructive-foreground: oklch(0.926 0.035 32.717);
--ring: oklch(0.704 0.046 192.306);
--chart-1: oklch(0.704 0.046 192.306);
--chart-2: oklch(0.637 0.053 15.337);
--chart-3: oklch(0.637 0.053 15.337);
--chart-4: oklch(0.664 0.049 15.116);
--chart-5: oklch(0.711 0.052 192.14);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 192.812);
--foreground: oklch(1 0 180);
--muted: oklch(0.251 0.013 14.678);
--muted-foreground: oklch(0.765 0 172.405);
--popover: oklch(0.139 0.01 192.809);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.01 192.809);
--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.704 0.046 192.306);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.637 0.053 15.337);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.637 0.053 15.337);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.655 0.211 33.881);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.046 192.306);
--chart-1: oklch(0.704 0.046 192.306);
--chart-2: oklch(0.637 0.053 15.337);
--chart-3: oklch(0.637 0.053 15.337);
--chart-4: oklch(0.664 0.049 15.116);
--chart-5: oklch(0.711 0.052 192.14);
}