Admirable for shadcn/ui

Admirable is a shadcn/ui theme built around a blue primary color (#4b6495) with yellow accents (#957d4b). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#4b6495) on a neutral background (#030507).

Color palette

TokenLightDark
Background
#ffffffwhite
#030507black
Foreground
#030917black
#fcfcfdwhite
Card
#ffffffwhite
#030507black
Card foreground
#030917black
#fcfcfdwhite
Popover
#ffffffwhite
#030507black
Popover foreground
#030917black
#fcfcfdwhite
Primary
#4b6495darkslateblue
#4b6495darkslateblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#957d4bsienna
#957d4bsienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dddad5gainsboro
#2a2822darkslategray
Muted foreground
#63625fdimgray
#a09f9cdarkgray
Accent
#957d4bsienna
#957d4bsienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#d60b00red
#ff382eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4b6495darkslateblue
#4b6495darkslateblue

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button5.90:1AA
Secondary button3.96:1AA Large
Muted text4.37:1AA Large
Accent3.96:1AA Large
Destructive5.36:1AA
Dark mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button5.90:1AA
Secondary button3.96:1AA Large
Muted text5.57:1AA
Accent3.96:1AA Large
Destructive3.58:1AA Large

CSS variables

Paste this into your globals.css to use Admirable in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.033 257.13);
  --muted: oklch(0.889 0.008 84.573);
  --muted-foreground: oklch(0.495 0.004 84.573);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.033 257.13);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.142 0.033 257.13);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.505 0.085 263.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.6 0.074 83.729);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.6 0.074 83.729);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.553 0.224 29.719);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.505 0.085 263.395);
  --chart-1: oklch(0.505 0.085 263.395);
  --chart-2: oklch(0.6 0.074 83.729);
  --chart-3: oklch(0.6 0.074 83.729);
  --chart-4: oklch(0.629 0.078 83.713);
  --chart-5: oklch(0.502 0.092 263.254);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.11 0.009 259.89);
  --foreground: oklch(0.992 0.001 264.547);
  --muted: oklch(0.276 0.011 84.585);
  --muted-foreground: oklch(0.702 0.004 84.566);
  --popover: oklch(0.11 0.009 259.89);
  --popover-foreground: oklch(0.992 0.001 264.547);
  --card: oklch(0.11 0.009 259.89);
  --card-foreground: oklch(0.992 0.001 264.547);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.505 0.085 263.395);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.6 0.074 83.729);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.6 0.074 83.729);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.652 0.234 28.653);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.505 0.085 263.395);
  --chart-1: oklch(0.505 0.085 263.395);
  --chart-2: oklch(0.6 0.074 83.729);
  --chart-3: oklch(0.6 0.074 83.729);
  --chart-4: oklch(0.629 0.078 83.713);
  --chart-5: oklch(0.502 0.092 263.254);
}