Functional is a shadcn/ui theme built around a deep cyan primary color (#103437) with muted light cyan accents (#d4dddd). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#103437) on a neutral background (#030707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030707black |
| Foreground | #040f10black | #ffffffwhite |
| Card | #fcfcfcsnow | #040a0bblack |
| Card foreground | #030b0cblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #040a0bblack |
| Popover foreground | #030b0cblack | #ffffffwhite |
| Primary | #103437darkslategray | #103437darkslategray |
| Primary foreground | #49bfcamediumturquoise | #49bfcamediumturquoise |
| Secondary | #eaebeblavender | #2b2b2bdarkslategray |
| Secondary foreground | #4e5455darkslategray | #c4c4c4silver |
| Muted | #e5ebeblavender | #1a1414black |
| Muted foreground | #506668dimgray | #af9797rosybrown |
| Accent | #d4ddddgainsboro | #473e3edarkslategray |
| Accent foreground | #384647darkslategray | #ded9d9gainsboro |
| Destructive | #c01802firebrick | #f71f02red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #103437darkslategray | #103437darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.42:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 6.46:1 | AA |
| Muted text | 5.05:1 | AA |
| Accent | 7.09:1 | AAA |
| Destructive | 6.23:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 6.10:1 | AA |
| Secondary button | 8.07:1 | AAA |
| Muted text | 6.68:1 | AA |
| Accent | 7.44:1 | AAA |
| Destructive | 4.06:1 | AA Large |
Paste this into your globals.css to use Functional in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.158 0.017 202.335);
--muted: oklch(0.935 0.007 203.514);
--muted-foreground: oklch(0.492 0.026 203.195);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.142 0.015 201.553);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.142 0.015 201.553);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.301 0.041 203.526);
--primary-foreground: oklch(0.744 0.105 203.645);
--secondary: oklch(0.94 0.002 203.565);
--secondary-foreground: oklch(0.442 0.008 203.428);
--accent: oklch(0.89 0.009 203.488);
--accent-foreground: oklch(0.383 0.018 203.226);
--destructive: oklch(0.515 0.201 30.798);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.301 0.041 203.526);
--chart-1: oklch(0.301 0.041 203.526);
--chart-2: oklch(0.94 0.002 203.565);
--chart-3: oklch(0.89 0.009 203.488);
--chart-4: oklch(0.962 0.001 203.572);
--chart-5: oklch(0.304 0.042 203.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.01 201.573);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.011 18.156);
--muted-foreground: oklch(0.699 0.028 17.854);
--popover: oklch(0.139 0.012 201.781);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.012 201.781);
--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.301 0.041 203.526);
--primary-foreground: oklch(0.744 0.105 203.645);
--secondary: oklch(0.29 0 180);
--secondary-foreground: oklch(0.821 0 171.87);
--accent: oklch(0.372 0.013 17.746);
--accent-foreground: oklch(0.889 0.005 17.26);
--destructive: oklch(0.622 0.244 30.575);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.301 0.041 203.526);
--chart-1: oklch(0.301 0.041 203.526);
--chart-2: oklch(0.29 0 180);
--chart-3: oklch(0.372 0.013 17.746);
--chart-4: oklch(0.321 0 180);
--chart-5: oklch(0.304 0.042 203.609);
}