Radiant for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background19.81:1AAA
Text on card19.81:1AAA
Primary button7.84:1AAA
Secondary button13.08:1AAA
Muted text5.43:1AA
Accent13.08:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button7.84:1AAA
Secondary button13.08:1AAA
Muted text6.62:1AA
Accent13.08:1AAA
Destructive4.51:1AA

CSS variables

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);
}