Better for shadcn/ui

Better is a shadcn/ui theme built around a vivid light orange primary color (#f6d2b6) with vivid light yellow accents (#f6f2b6). The light mode uses a neutral background (#fdf9f7). Dark mode keeps the vivid light orange primary (#f6d2b6) on an orange-tinted background (#100904).

Color palette

TokenLightDark
Background
#fdf9f7snow
#100904black
Foreground
#100905black
#ffffffwhite
Card
#fcf7f3floralwhite
#140c05black
Card foreground
#0c0704black
#ffffffwhite
Popover
#fcf7f3floralwhite
#140c05black
Popover foreground
#0c0704black
#ffffffwhite
Primary
#f6d2b6peachpuff
#f6d2b6peachpuff
Primary foreground
#6e370dsaddlebrown
#6e370dsaddlebrown
Secondary
#f6b6balightpink
#f6b6balightpink
Secondary foreground
#6e0d13maroon
#6e0d13maroon
Muted
#e6dbdbgainsboro
#24191ablack
Muted foreground
#705758dimgray
#a88f90rosybrown
Accent
#f6f2b6moccasin
#f6f2b6moccasin
Accent foreground
#121102black
#121102black
Destructive
#a91504firebrick
#ef1d06red
Destructive foreground
#fee4e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6d2b6peachpuff
#f6d2b6peachpuff

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card18.80:1AAA
Primary button6.68:1AA
Secondary button7.12:1AAA
Muted text4.85:1AA
Accent16.55:1AAA
Destructive6.22:1AA
Dark mode
Text on background19.72:1AAA
Text on card19.37:1AAA
Primary button6.68:1AA
Secondary button7.12:1AAA
Muted text5.69:1AA
Accent16.55:1AAA
Destructive4.33:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.005 60.21);
  --foreground: oklch(0.149 0.016 64.662);
  --muted: oklch(0.9 0.013 12.725);
  --muted-foreground: oklch(0.482 0.034 13.949);
  --popover: oklch(0.978 0.008 60.172);
  --popover-foreground: oklch(0.134 0.014 67.832);
  --card: oklch(0.978 0.008 60.172);
  --card-foreground: oklch(0.134 0.014 67.832);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.887 0.056 59.383);
  --primary-foreground: oklch(0.4 0.093 52.523);
  --secondary: oklch(0.837 0.075 14.366);
  --secondary-foreground: oklch(0.347 0.129 24.645);
  --accent: oklch(0.951 0.077 104.343);
  --accent-foreground: oklch(0.175 0.031 106.009);
  --destructive: oklch(0.469 0.182 30.523);
  --destructive-foreground: oklch(0.94 0.029 25.271);
  --ring: oklch(0.887 0.056 59.383);
  --chart-1: oklch(0.887 0.056 59.383);
  --chart-2: oklch(0.837 0.075 14.366);
  --chart-3: oklch(0.951 0.077 104.343);
  --chart-4: oklch(0.866 0.06 13.906);
  --chart-5: oklch(0.888 0.058 59.345);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.149 0.017 64.982);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.227 0.019 14.196);
  --muted-foreground: oklch(0.673 0.031 13.407);
  --popover: oklch(0.162 0.02 61.492);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.162 0.02 61.492);
  --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.887 0.056 59.383);
  --primary-foreground: oklch(0.4 0.093 52.523);
  --secondary: oklch(0.837 0.075 14.366);
  --secondary-foreground: oklch(0.347 0.129 24.645);
  --accent: oklch(0.951 0.077 104.343);
  --accent-foreground: oklch(0.175 0.031 106.009);
  --destructive: oklch(0.605 0.237 30.316);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.887 0.056 59.383);
  --chart-1: oklch(0.887 0.056 59.383);
  --chart-2: oklch(0.837 0.075 14.366);
  --chart-3: oklch(0.951 0.077 104.343);
  --chart-4: oklch(0.866 0.06 13.906);
  --chart-5: oklch(0.888 0.058 59.345);
}