Friendly is a shadcn/ui theme built around a blue primary color (#324e9a) with yellow accents (#9a7e32). The light mode uses a neutral background (#f7f8fd). Dark mode keeps the blue primary (#324e9a) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f8fdghostwhite | #05060ablack |
| Foreground | #020712black | #f8f9fcghostwhite |
| Card | #f7f8fdghostwhite | #05060ablack |
| Card foreground | #020712black | #f8f9fcghostwhite |
| Popover | #f7f8fdghostwhite | #05060ablack |
| Popover foreground | #020712black | #f8f9fcghostwhite |
| Primary | #324e9adarkslateblue | #324e9adarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #9a7e32sienna | #9a7e32sienna |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f1f0eewhitesmoke | #11100eblack |
| Muted foreground | #6e6753dimgray | #aca491darkgray |
| Accent | #9a7e32sienna | #9a7e32sienna |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #682603maroon | #e55406orangered |
| Destructive foreground | #fdc1a1navajowhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #324e9adarkslateblue | #324e9adarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.04:1 | AAA |
| Text on card | 19.04:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 3.87:1 | AA Large |
| Muted text | 4.95:1 | AA |
| Accent | 3.87:1 | AA Large |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.21:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 3.87:1 | AA Large |
| Muted text | 7.67:1 | AAA |
| Accent | 3.87:1 | AA Large |
| Destructive | 3.75:1 | AA Large |
Paste this into your globals.css to use Friendly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.007 270.066);
--foreground: oklch(0.127 0.029 260.465);
--muted: oklch(0.956 0.003 90.143);
--muted-foreground: oklch(0.516 0.031 90.425);
--popover: oklch(0.98 0.007 270.066);
--popover-foreground: oklch(0.127 0.029 260.465);
--card: oklch(0.98 0.007 270.066);
--card-foreground: oklch(0.127 0.029 260.465);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.444 0.129 266.229);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.1 88.898);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.1 88.898);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.363 0.104 43.39);
--destructive-foreground: oklch(0.856 0.082 49.539);
--ring: oklch(0.444 0.129 266.229);
--chart-1: oklch(0.444 0.129 266.229);
--chart-2: oklch(0.605 0.1 88.898);
--chart-3: oklch(0.605 0.1 88.898);
--chart-4: oklch(0.638 0.106 88.86);
--chart-5: oklch(0.441 0.136 265.96);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.011 265.552);
--foreground: oklch(0.982 0.004 270.087);
--muted: oklch(0.173 0.004 90.29);
--muted-foreground: oklch(0.721 0.029 90.368);
--popover: oklch(0.124 0.011 265.552);
--popover-foreground: oklch(0.982 0.004 270.087);
--card: oklch(0.124 0.011 265.552);
--card-foreground: oklch(0.982 0.004 270.087);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.444 0.129 266.229);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.605 0.1 88.898);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.605 0.1 88.898);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.633 0.193 40.873);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.444 0.129 266.229);
--chart-1: oklch(0.444 0.129 266.229);
--chart-2: oklch(0.605 0.1 88.898);
--chart-3: oklch(0.605 0.1 88.898);
--chart-4: oklch(0.638 0.106 88.86);
--chart-5: oklch(0.441 0.136 265.96);
}