Radiant is a shadcn/ui theme built around a light blue primary color (#dee6f7) with light yellow accents (#f7efde). The light mode uses a neutral background (#ffffff). Dark mode keeps the light blue primary (#dee6f7) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #050a14black | #f6f7f9whitesmoke |
| Card | #ffffffwhite | #030407black |
| Card foreground | #050a14black | #f6f7f9whitesmoke |
| Popover | #ffffffwhite | #030407black |
| Popover foreground | #050a14black | #f6f7f9whitesmoke |
| Primary | #dee6f7lavender | #dee6f7lavender |
| Primary foreground | #204183darkslateblue | #204183darkslateblue |
| Secondary | #f7efdebeige | #f7efdebeige |
| Secondary foreground | #31250cblack | #31250cblack |
| Muted | #e6e2dbgainsboro | #242119black |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #f7efdebeige | #f7efdebeige |
| Accent foreground | #31250cblack | #31250cblack |
| Destructive | #a5220dfirebrick | #e22e12orangered |
| Destructive foreground | #fdeae7linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dee6f7lavender | #dee6f7lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 13.08:1 | AAA |
| Muted text | 5.43:1 | AA |
| Accent | 13.08:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 13.08:1 | AAA |
| Muted text | 6.62:1 | AA |
| Accent | 13.08:1 | AAA |
| Destructive | 4.51:1 | AA |
Paste this into your globals.css to use Radiant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.146 0.023 260.811);
--muted: oklch(0.915 0.011 84.579);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.146 0.023 260.811);
--card: oklch(1 0 180);
--card-foreground: oklch(0.146 0.023 260.811);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.925 0.024 264.449);
--primary-foreground: oklch(0.39 0.118 262.352);
--secondary: oklch(0.953 0.024 84.593);
--secondary-foreground: oklch(0.272 0.043 82.489);
--accent: oklch(0.953 0.024 84.593);
--accent-foreground: oklch(0.272 0.043 82.489);
--destructive: oklch(0.471 0.17 31.551);
--destructive-foreground: oklch(0.952 0.021 28.057);
--ring: oklch(0.925 0.024 264.449);
--chart-1: oklch(0.925 0.024 264.449);
--chart-2: oklch(0.953 0.024 84.593);
--chart-3: oklch(0.953 0.024 84.593);
--chart-4: oklch(0.971 0.015 84.584);
--chart-5: oklch(0.924 0.025 264.443);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.011 258.526);
--foreground: oklch(0.975 0.003 264.541);
--muted: oklch(0.247 0.015 84.516);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.109 0.011 258.526);
--popover-foreground: oklch(0.975 0.003 264.541);
--card: oklch(0.109 0.011 258.526);
--card-foreground: oklch(0.975 0.003 264.541);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.925 0.024 264.449);
--primary-foreground: oklch(0.39 0.118 262.352);
--secondary: oklch(0.953 0.024 84.593);
--secondary-foreground: oklch(0.272 0.043 82.489);
--accent: oklch(0.953 0.024 84.593);
--accent-foreground: oklch(0.272 0.043 82.489);
--destructive: oklch(0.593 0.218 31.459);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.925 0.024 264.449);
--chart-1: oklch(0.925 0.024 264.449);
--chart-2: oklch(0.953 0.024 84.593);
--chart-3: oklch(0.953 0.024 84.593);
--chart-4: oklch(0.971 0.015 84.584);
--chart-5: oklch(0.924 0.025 264.443);
}