Friendly is a shadcn/ui theme built around a light yellow primary color (#f7f6e8) with light indigo accents (#e8e9f7). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f7f6e8) on a neutral background (#080702).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080702black |
| Foreground | #0c0b03black | #fdfdfcwhite |
| Card | #ffffffwhite | #080702black |
| Card foreground | #0c0b03black | #fdfdfcwhite |
| Popover | #ffffffwhite | #080702black |
| Popover foreground | #0c0b03black | #fdfdfcwhite |
| Primary | #f7f6e8oldlace | #f7f6e8oldlace |
| Primary foreground | #363312darkslategray | #363312darkslategray |
| Secondary | #e8e9f7lavender | #e8e9f7lavender |
| Secondary foreground | #2b3382darkslateblue | #2b3382darkslateblue |
| Muted | #e2e3eelavender | #11121dblack |
| Muted foreground | #5b5d6bdimgray | #9495a4darkgray |
| Accent | #e8e9f7lavender | #e8e9f7lavender |
| Accent foreground | #2b3382darkslateblue | #2b3382darkslateblue |
| Destructive | #6a210bmaroon | #ea6239tomato |
| Destructive foreground | #f7c1b1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f7f6e8oldlace | #f7f6e8oldlace |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 11.78:1 | AAA |
| Secondary button | 9.20:1 | AAA |
| Muted text | 5.11:1 | AA |
| Accent | 9.20:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 19.78:1 | AAA |
| Text on card | 19.78:1 | AAA |
| Primary button | 11.78:1 | AAA |
| Secondary button | 9.20:1 | AAA |
| Muted text | 6.28:1 | AA |
| Accent | 9.20:1 | AAA |
| Destructive | 6.30:1 | AA |
Paste this into your globals.css to use Friendly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.148 0.019 104.89);
--muted: oklch(0.919 0.014 281.952);
--muted-foreground: oklch(0.482 0.023 281.368);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.148 0.019 104.89);
--card: oklch(1 0 180);
--card-foreground: oklch(0.148 0.019 104.89);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.971 0.019 102.519);
--primary-foreground: oklch(0.314 0.05 104.102);
--secondary: oklch(0.938 0.019 281.872);
--secondary-foreground: oklch(0.364 0.132 273.877);
--accent: oklch(0.938 0.019 281.872);
--accent-foreground: oklch(0.364 0.132 273.877);
--destructive: oklch(0.36 0.109 36.58);
--destructive-foreground: oklch(0.854 0.066 37.595);
--ring: oklch(0.971 0.019 102.519);
--chart-1: oklch(0.971 0.019 102.519);
--chart-2: oklch(0.938 0.019 281.872);
--chart-3: oklch(0.938 0.019 281.872);
--chart-4: oklch(0.969 0.009 282.051);
--chart-5: oklch(0.972 0.02 102.536);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.129 0.016 105.075);
--foreground: oklch(0.994 0.001 102.234);
--muted: oklch(0.187 0.021 280.081);
--muted-foreground: oklch(0.673 0.021 281.668);
--popover: oklch(0.129 0.016 105.075);
--popover-foreground: oklch(0.994 0.001 102.234);
--card: oklch(0.129 0.016 105.075);
--card-foreground: oklch(0.994 0.001 102.234);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.971 0.019 102.519);
--primary-foreground: oklch(0.314 0.05 104.102);
--secondary: oklch(0.938 0.019 281.872);
--secondary-foreground: oklch(0.364 0.132 273.877);
--accent: oklch(0.938 0.019 281.872);
--accent-foreground: oklch(0.364 0.132 273.877);
--destructive: oklch(0.662 0.178 37.253);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.971 0.019 102.519);
--chart-1: oklch(0.971 0.019 102.519);
--chart-2: oklch(0.938 0.019 281.872);
--chart-3: oklch(0.938 0.019 281.872);
--chart-4: oklch(0.969 0.009 282.051);
--chart-5: oklch(0.972 0.02 102.536);
}