Great for shadcn/ui

Great is a shadcn/ui theme built around a near-white primary color (#f8fafc) with near-white accents (#fafcf8). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the near-white primary (#f8fafc) on a blue-tinted background (#060b0e).

Color palette

TokenLightDark
Background
#fbfdfewhite
#060b0eblack
Foreground
#040b10black
#ffffffwhite
Card
#f7fafdghostwhite
#070e12black
Card foreground
#03080cblack
#ffffffwhite
Popover
#f7fafdghostwhite
#070e12black
Popover foreground
#03080cblack
#ffffffwhite
Primary
#f8fafcghostwhite
#f8fafcghostwhite
Primary foreground
#1e313edarkslategray
#1e313edarkslategray
Secondary
#fcf8fasnow
#fcf8fasnow
Secondary foreground
#833f67dimgray
#833f67dimgray
Muted
#eee7eblinen
#181115black
Muted foreground
#483c43darkslategray
#c3b7besilver
Accent
#fafcf8snow
#fafcf8snow
Accent foreground
#313e1edarkslategray
#313e1edarkslategray
Destructive
#b8200ffirebrick
#ec2913orangered
Destructive foreground
#fffbfasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f8fafcghostwhite
#f8fafcghostwhite

Contrast

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

Light mode
Text on background19.37:1AAA
Text on card19.24:1AAA
Primary button12.84:1AAA
Secondary button6.94:1AA
Muted text8.61:1AAA
Accent11.04:1AAA
Destructive6.28:1AA
Dark mode
Text on background19.77:1AAA
Text on card19.45:1AAA
Primary button12.84:1AAA
Secondary button6.94:1AA
Muted text9.61:1AAA
Accent11.04:1AAA
Destructive4.29:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.003 238.399);
  --foreground: oklch(0.145 0.017 235.56);
  --muted: oklch(0.934 0.01 341.268);
  --muted-foreground: oklch(0.372 0.02 342.224);
  --popover: oklch(0.984 0.005 238.437);
  --popover-foreground: oklch(0.131 0.014 231.712);
  --card: oklch(0.984 0.005 238.437);
  --card-foreground: oklch(0.131 0.014 231.712);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.985 0.003 238.405);
  --primary-foreground: oklch(0.302 0.034 240.436);
  --secondary: oklch(0.983 0.005 341.124);
  --secondary-foreground: oklch(0.467 0.106 345.927);
  --accent: oklch(0.988 0.005 125.114);
  --accent-foreground: oklch(0.343 0.055 127.574);
  --destructive: oklch(0.505 0.189 30.518);
  --destructive-foreground: oklch(0.99 0.004 25.024);
  --ring: oklch(0.985 0.003 238.405);
  --chart-1: oklch(0.985 0.003 238.405);
  --chart-2: oklch(0.983 0.005 341.124);
  --chart-3: oklch(0.988 0.005 125.114);
  --chart-4: oklch(1.009 0.002 160.959);
  --chart-5: oklch(0.985 0.003 238.409);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.012 236.491);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.015 342.843);
  --muted-foreground: oklch(0.791 0.017 341.494);
  --popover: oklch(0.158 0.014 238.861);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.158 0.014 238.861);
  --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.985 0.003 238.405);
  --primary-foreground: oklch(0.302 0.034 240.436);
  --secondary: oklch(0.983 0.005 341.124);
  --secondary-foreground: oklch(0.467 0.106 345.927);
  --accent: oklch(0.988 0.005 125.114);
  --accent-foreground: oklch(0.343 0.055 127.574);
  --destructive: oklch(0.606 0.229 30.502);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.985 0.003 238.405);
  --chart-1: oklch(0.985 0.003 238.405);
  --chart-2: oklch(0.983 0.005 341.124);
  --chart-3: oklch(0.988 0.005 125.114);
  --chart-4: oklch(1.009 0.002 160.959);
  --chart-5: oklch(0.985 0.003 238.409);
}