Kindly is a shadcn/ui theme built around a near-black primary color (#050406) with near-black accents (#050406). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the near-black primary (#050406) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #030208black |
| Foreground | #030208black | #ffffffwhite |
| Card | #f8f8fcghostwhite | #030208black |
| Card foreground | #030208black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #030208black |
| Popover foreground | #030208black | #ffffffwhite |
| Primary | #050406black | #050406black |
| Primary foreground | #938faedarkgray | #938faedarkgray |
| Secondary | #040506black | #040506black |
| Secondary foreground | #8f99aedarkgray | #8f99aedarkgray |
| Muted | #ecedefwhitesmoke | #101113black |
| Muted foreground | #5d636fdimgray | #9096a2lightslategray |
| Accent | #050406black | #050406black |
| Accent foreground | #a38faedarkgray | #a38faedarkgray |
| Destructive | #9d2007firebrick | #f75a3btomato |
| Destructive foreground | #fdded8mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #050406black | #050406black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 5.13:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.31:1 | AA |
| Text on background | 20.65:1 | AAA |
| Text on card | 20.65:1 | AAA |
| Primary button | 6.60:1 | AA |
| Secondary button | 7.12:1 | AAA |
| Muted text | 6.33:1 | AA |
| Accent | 6.90:1 | AA |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Kindly in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 293.184);
--foreground: oklch(0.095 0.023 291.307);
--muted: oklch(0.945 0.003 263.049);
--muted-foreground: oklch(0.499 0.021 262.93);
--popover: oklch(0.98 0.006 293.184);
--popover-foreground: oklch(0.095 0.023 291.307);
--card: oklch(0.98 0.006 293.184);
--card-foreground: oklch(0.095 0.023 291.307);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.111 0.006 292.928);
--primary-foreground: oklch(0.663 0.046 291.98);
--secondary: oklch(0.113 0.004 260.993);
--secondary-foreground: oklch(0.682 0.032 262.904);
--accent: oklch(0.113 0.006 314.718);
--accent-foreground: oklch(0.677 0.05 313.811);
--destructive: oklch(0.453 0.164 32.495);
--destructive-foreground: oklch(0.925 0.036 31.165);
--ring: oklch(0.111 0.006 292.928);
--chart-1: oklch(0.111 0.006 292.928);
--chart-2: oklch(0.113 0.004 260.993);
--chart-3: oklch(0.113 0.006 314.718);
--chart-4: oklch(0.155 0.006 262.937);
--chart-5: oklch(0.11 0.007 292.848);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.096 0.022 291.411);
--foreground: oklch(1 0 180);
--muted: oklch(0.179 0.004 262.999);
--muted-foreground: oklch(0.673 0.019 262.981);
--popover: oklch(0.096 0.022 291.411);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.096 0.022 291.411);
--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.111 0.006 292.928);
--primary-foreground: oklch(0.663 0.046 291.98);
--secondary: oklch(0.113 0.004 260.993);
--secondary-foreground: oklch(0.682 0.032 262.904);
--accent: oklch(0.113 0.006 314.718);
--accent-foreground: oklch(0.677 0.05 313.811);
--destructive: oklch(0.672 0.197 33.207);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.111 0.006 292.928);
--chart-1: oklch(0.111 0.006 292.928);
--chart-2: oklch(0.113 0.004 260.993);
--chart-3: oklch(0.113 0.006 314.718);
--chart-4: oklch(0.155 0.006 262.937);
--chart-5: oklch(0.11 0.007 292.848);
}