Kingdom is a shadcn/ui theme built around a light indigo primary color (#bfc0e8) with light green accents (#c0e8bf). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the light indigo primary (#bfc0e8) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfdwhite | #000000black |
| Foreground | #050515black | #f8f8fcghostwhite |
| Card | #fcfcfdwhite | #000000black |
| Card foreground | #050515black | #f8f8fcghostwhite |
| Popover | #fcfcfdwhite | #000000black |
| Popover foreground | #050515black | #f8f8fcghostwhite |
| Primary | #bfc0e8lightsteelblue | #bfc0e8lightsteelblue |
| Primary foreground | #1e1f57midnightblue | #1e1f57midnightblue |
| Secondary | #e8bfc0lightpink | #e8bfc0lightpink |
| Secondary foreground | #571e1fmaroon | #571e1fmaroon |
| Muted | #f5eaealinen | #150a0ablack |
| Muted foreground | #594545darkolivegreen | #baa6a6darkgray |
| Accent | #c0e8bflightgrey | #c0e8bflightgrey |
| Accent foreground | #1f571edarkgreen | #1f571edarkgreen |
| Destructive | #6f2a02saddlebrown | #fb6813orangered |
| Destructive foreground | #fec5a5navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bfc0e8lightsteelblue | #bfc0e8lightsteelblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 7.56:1 | AAA |
| Accent | 6.38:1 | AA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.55:1 | AAA |
| Secondary button | 7.84:1 | AAA |
| Muted text | 8.43:1 | AAA |
| Accent | 6.38:1 | AA |
| Destructive | 7.11:1 | AAA |
Paste this into your globals.css to use Kingdom in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.002 285.579);
--foreground: oklch(0.127 0.036 278.922);
--muted: oklch(0.946 0.012 16.204);
--muted-foreground: oklch(0.412 0.028 17.255);
--popover: oklch(0.99 0.002 285.579);
--popover-foreground: oklch(0.127 0.036 278.922);
--card: oklch(0.99 0.002 285.579);
--card-foreground: oklch(0.127 0.036 278.922);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.819 0.057 284.296);
--primary-foreground: oklch(0.278 0.098 277.204);
--secondary: oklch(0.841 0.048 17.018);
--secondary-foreground: oklch(0.323 0.084 22.033);
--accent: oklch(0.892 0.071 144.526);
--accent-foreground: oklch(0.405 0.105 143.071);
--destructive: oklch(0.379 0.108 44.254);
--destructive-foreground: oklch(0.867 0.078 51.425);
--ring: oklch(0.819 0.057 284.296);
--chart-1: oklch(0.819 0.057 284.296);
--chart-2: oklch(0.841 0.048 17.018);
--chart-3: oklch(0.892 0.071 144.526);
--chart-4: oklch(0.869 0.039 16.785);
--chart-5: oklch(0.816 0.061 284.201);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.004 285.539);
--muted: oklch(0.16 0.02 18.442);
--muted-foreground: oklch(0.742 0.024 16.556);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.004 285.539);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.004 285.539);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.819 0.057 284.296);
--primary-foreground: oklch(0.278 0.098 277.204);
--secondary: oklch(0.841 0.048 17.018);
--secondary-foreground: oklch(0.323 0.084 22.033);
--accent: oklch(0.892 0.071 144.526);
--accent-foreground: oklch(0.405 0.105 143.071);
--destructive: oklch(0.694 0.198 43.559);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.819 0.057 284.296);
--chart-1: oklch(0.819 0.057 284.296);
--chart-2: oklch(0.841 0.048 17.018);
--chart-3: oklch(0.892 0.071 144.526);
--chart-4: oklch(0.869 0.039 16.785);
--chart-5: oklch(0.816 0.061 284.201);
}