Friendly is a shadcn/ui theme built around a neutral gray primary color (#3e3d3c) with neutral gray accents (#3d3c3e). The light mode uses a neutral background (#fefdfb). Dark mode keeps the neutral gray primary (#3e3d3c) on an orange-tinted background (#0b0804).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #0b0804black |
| Foreground | #0d0902black | #fdfdfcwhite |
| Card | #fcfaf8snow | #0f0b06black |
| Card foreground | #090602black | #ffffffwhite |
| Popover | #fefdfbsnow | #0b0804black |
| Popover foreground | #0d0902black | #fdfdfcwhite |
| Primary | #3e3d3cdarkslategray | #3e3d3cdarkslategray |
| Primary foreground | #d7d6d5lightgrey | #d7d6d5lightgrey |
| Secondary | #3c3e3ddarkslategray | #3c3e3ddarkslategray |
| Secondary foreground | #d5d7d6lightgrey | #d5d7d6lightgrey |
| Muted | #ddeee7gainsboro | #11221bblack |
| Muted foreground | #454f4bdarkslategray | #b0bab6silver |
| Accent | #3d3c3edarkslategray | #3d3c3edarkslategray |
| Accent foreground | #d6d5d7lightgrey | #d6d5d7lightgrey |
| Destructive | #751001maroon | #fe4b2ftomato |
| Destructive foreground | #ffb4a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e3d3cdarkslategray | #3e3d3cdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 7.07:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 6.76:1 | AA |
| Text on background | 19.60:1 | AAA |
| Text on card | 19.60:1 | AAA |
| Primary button | 7.42:1 | AAA |
| Secondary button | 7.41:1 | AAA |
| Muted text | 8.28:1 | AAA |
| Accent | 7.48:1 | AAA |
| Destructive | 3.36:1 | AA Large |
Paste this into your globals.css to use Friendly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 78.306);
--foreground: oklch(0.141 0.02 85.656);
--muted: oklch(0.935 0.021 169.963);
--muted-foreground: oklch(0.417 0.015 169.565);
--popover: oklch(0.993 0.002 78.306);
--popover-foreground: oklch(0.141 0.02 85.656);
--card: oklch(0.987 0.004 78.299);
--card-foreground: oklch(0.123 0.017 86.776);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.362 0.003 78.287);
--primary-foreground: oklch(0.877 0.002 78.307);
--secondary: oklch(0.363 0.004 170.33);
--secondary-foreground: oklch(0.878 0.002 170.559);
--accent: oklch(0.358 0.005 312.262);
--accent-foreground: oklch(0.875 0.002 312.337);
--destructive: oklch(0.362 0.136 32.053);
--destructive-foreground: oklch(0.838 0.089 28.844);
--ring: oklch(0.362 0.003 78.287);
--chart-1: oklch(0.362 0.003 78.287);
--chart-2: oklch(0.363 0.004 170.33);
--chart-3: oklch(0.358 0.005 312.262);
--chart-4: oklch(0.392 0.004 170.324);
--chart-5: oklch(0.364 0.007 78.24);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.013 83.762);
--foreground: oklch(0.993 0.002 78.308);
--muted: oklch(0.235 0.028 166.584);
--muted-foreground: oklch(0.78 0.013 170.145);
--popover: oklch(0.138 0.013 83.762);
--popover-foreground: oklch(0.993 0.002 78.308);
--card: oklch(0.153 0.014 80.701);
--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.362 0.003 78.287);
--primary-foreground: oklch(0.877 0.002 78.307);
--secondary: oklch(0.363 0.004 170.33);
--secondary-foreground: oklch(0.878 0.002 170.559);
--accent: oklch(0.358 0.005 312.262);
--accent-foreground: oklch(0.875 0.002 312.337);
--destructive: oklch(0.666 0.22 31.644);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.362 0.003 78.287);
--chart-1: oklch(0.362 0.003 78.287);
--chart-2: oklch(0.363 0.004 170.33);
--chart-3: oklch(0.358 0.005 312.262);
--chart-4: oklch(0.392 0.004 170.324);
--chart-5: oklch(0.364 0.007 78.24);
}