Functional is a shadcn/ui theme built around a muted red primary color (#a69195) with muted teal accents (#91a6a2). The light mode uses a neutral background (#fdf6f8). Dark mode keeps the muted red primary (#a69195) on a neutral background (#080204).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6f8snow | #080204black |
| Foreground | #040102black | #fdfcfcsnow |
| Card | #fdf6f8snow | #080204black |
| Card foreground | #040102black | #fdfcfcsnow |
| Popover | #fdf6f8snow | #080204black |
| Popover foreground | #040102black | #fdfcfcsnow |
| Primary | #a69195rosybrown | #a69195rosybrown |
| Primary foreground | #030202black | #030202black |
| Secondary | #91a6a2darkgray | #91a6a2darkgray |
| Secondary foreground | #020303black | #020303black |
| Muted | #edf2f1whitesmoke | #0d1211black |
| Muted foreground | #51615edimgray | #9eaeaadarkgray |
| Accent | #91a6a2darkgray | #91a6a2darkgray |
| Accent foreground | #020303black | #020303black |
| Destructive | #802000maroon | #eb3b00orangered |
| Destructive foreground | #ffc6b3peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a69195rosybrown | #a69195rosybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.57:1 | AAA |
| Text on card | 19.57:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 5.78:1 | AA |
| Accent | 8.07:1 | AAA |
| Destructive | 6.60:1 | AA |
| Text on background | 20.06:1 | AAA |
| Text on card | 20.06:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 8.17:1 | AAA |
| Accent | 8.07:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Functional in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.008 2.282);
--foreground: oklch(0.081 0.019 2.25);
--muted: oklch(0.958 0.006 181.891);
--muted-foreground: oklch(0.479 0.02 180.833);
--popover: oklch(0.98 0.008 2.282);
--popover-foreground: oklch(0.081 0.019 2.25);
--card: oklch(0.98 0.008 2.282);
--card-foreground: oklch(0.081 0.019 2.25);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.676 0.027 3.143);
--primary-foreground: oklch(0.09 0.003 2.087);
--secondary: oklch(0.708 0.025 181.039);
--secondary-foreground: oklch(0.093 0.002 182.048);
--accent: oklch(0.708 0.025 181.039);
--accent-foreground: oklch(0.093 0.002 182.048);
--destructive: oklch(0.397 0.135 36.211);
--destructive-foreground: oklch(0.872 0.071 39.231);
--ring: oklch(0.676 0.027 3.143);
--chart-1: oklch(0.676 0.027 3.143);
--chart-2: oklch(0.708 0.025 181.039);
--chart-3: oklch(0.708 0.025 181.039);
--chart-4: oklch(0.732 0.023 181.157);
--chart-5: oklch(0.673 0.035 3.447);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.105 0.018 2.194);
--foreground: oklch(0.992 0.001 2.087);
--muted: oklch(0.176 0.009 180.584);
--muted-foreground: oklch(0.737 0.019 181.351);
--popover: oklch(0.105 0.018 2.194);
--popover-foreground: oklch(0.992 0.001 2.087);
--card: oklch(0.105 0.018 2.194);
--card-foreground: oklch(0.992 0.001 2.087);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.676 0.027 3.143);
--primary-foreground: oklch(0.09 0.003 2.087);
--secondary: oklch(0.708 0.025 181.039);
--secondary-foreground: oklch(0.093 0.002 182.048);
--accent: oklch(0.708 0.025 181.039);
--accent-foreground: oklch(0.093 0.002 182.048);
--destructive: oklch(0.616 0.218 34.628);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.676 0.027 3.143);
--chart-1: oklch(0.676 0.027 3.143);
--chart-2: oklch(0.708 0.025 181.039);
--chart-3: oklch(0.708 0.025 181.039);
--chart-4: oklch(0.732 0.023 181.157);
--chart-5: oklch(0.673 0.035 3.447);
}