Functional is a shadcn/ui theme built around a neutral gray primary color (#6f7576) with neutral gray accents (#e0e1e1). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the neutral gray primary (#6f7576) on a neutral background (#020708).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfdghostwhite | #020708black |
| Foreground | #020c0eblack | #fcfdfdwhite |
| Card | #f7fcfdghostwhite | #020708black |
| Card foreground | #020c0eblack | #fcfdfdwhite |
| Popover | #f7fcfdghostwhite | #020708black |
| Popover foreground | #020c0eblack | #fcfdfdwhite |
| Primary | #6f7576dimgray | #6f7576dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e0e1e1gainsboro | #242c2ddarkslategray |
| Secondary foreground | #474848darkslategray | #bbc6c9silver |
| Muted | #dde7e9gainsboro | #162022black |
| Muted foreground | #636363dimgray | #9c9c9cdarkgray |
| Accent | #e0e1e1gainsboro | #242c2ddarkslategray |
| Accent foreground | #474848darkslategray | #bbc6c9silver |
| Destructive | #720d08maroon | #ee1c11red |
| Destructive foreground | #fab6b3lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f7576dimgray | #6f7576dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 6.98:1 | AA |
| Muted text | 4.77:1 | AA |
| Accent | 6.98:1 | AA |
| Destructive | 6.95:1 | AA |
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 8.17:1 | AAA |
| Muted text | 6.04:1 | AA |
| Accent | 8.17:1 | AAA |
| Destructive | 4.35:1 | AA Large |
Paste this into your globals.css to use Functional in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 211.04);
--foreground: oklch(0.142 0.02 207.977);
--muted: oklch(0.921 0.011 211.038);
--muted-foreground: oklch(0.501 0 180);
--popover: oklch(0.987 0.005 211.04);
--popover-foreground: oklch(0.142 0.02 207.977);
--card: oklch(0.987 0.005 211.04);
--card-foreground: oklch(0.142 0.02 207.977);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.558 0.007 211.038);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.908 0.001 211.044);
--secondary-foreground: oklch(0.4 0.002 211.041);
--accent: oklch(0.908 0.001 211.044);
--accent-foreground: oklch(0.4 0.002 211.041);
--destructive: oklch(0.356 0.135 29.192);
--destructive-foreground: oklch(0.839 0.079 22.293);
--ring: oklch(0.558 0.007 211.038);
--chart-1: oklch(0.558 0.007 211.038);
--chart-2: oklch(0.908 0.001 211.044);
--chart-3: oklch(0.908 0.001 211.044);
--chart-4: oklch(0.931 0 211.044);
--chart-5: oklch(0.562 0.014 211.051);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.012 207.641);
--foreground: oklch(0.993 0.001 211.044);
--muted: oklch(0.235 0.015 211.249);
--muted-foreground: oklch(0.691 0 180);
--popover: oklch(0.121 0.012 207.641);
--popover-foreground: oklch(0.993 0.001 211.044);
--card: oklch(0.121 0.012 207.641);
--card-foreground: oklch(0.993 0.001 211.044);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.558 0.007 211.038);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.286 0.011 211.086);
--secondary-foreground: oklch(0.819 0.013 211.039);
--accent: oklch(0.286 0.011 211.086);
--accent-foreground: oklch(0.819 0.013 211.039);
--destructive: oklch(0.604 0.237 29.439);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.558 0.007 211.038);
--chart-1: oklch(0.558 0.007 211.038);
--chart-2: oklch(0.286 0.011 211.086);
--chart-3: oklch(0.286 0.011 211.086);
--chart-4: oklch(0.317 0.013 211.091);
--chart-5: oklch(0.562 0.014 211.051);
}