Giant for shadcn/ui

Giant is a shadcn/ui theme built around a green primary color (#a0aa55) with purple accents (#aa55a0). The light mode uses a neutral background (#fcfdf7). Dark mode keeps the green primary (#a0aa55) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fcfdf7snow
#070802black
Foreground
#0c0d03black
#f9f9f6whitesmoke
Card
#fbfcf3floralwhite
#0b0c04black
Card foreground
#080802black
#fbfbf9snow
Popover
#fcfdf7snow
#070802black
Popover foreground
#0c0d03black
#f9f9f6whitesmoke
Primary
#a0aa55darkkhaki
#a0aa55darkkhaki
Primary foreground
#202211black
#202211black
Secondary
#55a0aacadetblue
#55a0aacadetblue
Secondary foreground
#000000black
#000000black
Muted
#d9e2e3gainsboro
#1c2526black
Muted foreground
#636363dimgray
#9c9c9cdarkgray
Accent
#aa55a0mediumorchid
#aa55a0mediumorchid
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ae4413sienna
#eb7b47coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#a0aa55darkkhaki
#a0aa55darkkhaki

Contrast

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

Light mode
Text on background19.08:1AAA
Text on card19.37:1AAA
Primary button6.42:1AA
Secondary button6.97:1AA
Muted text4.54:1AA
Accent4.64:1AA
Destructive5.74:1AA
Dark mode
Text on background19.06:1AAA
Text on card18.99:1AAA
Primary button6.42:1AA
Secondary button6.97:1AA
Muted text5.69:1AA
Accent4.64:1AA
Destructive7.44:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 111.922);
  --foreground: oklch(0.152 0.024 113.59);
  --muted: oklch(0.905 0.01 206.379);
  --muted-foreground: oklch(0.501 0 180);
  --popover: oklch(0.991 0.008 111.922);
  --popover-foreground: oklch(0.152 0.024 113.59);
  --card: oklch(0.987 0.011 111.994);
  --card-foreground: oklch(0.132 0.021 113.153);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.71 0.109 114.716);
  --primary-foreground: oklch(0.244 0.03 114.049);
  --secondary: oklch(0.661 0.075 206.659);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.579 0.145 331.789);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.526 0.15 41.395);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.71 0.109 114.716);
  --chart-1: oklch(0.71 0.109 114.716);
  --chart-2: oklch(0.661 0.075 206.659);
  --chart-3: oklch(0.579 0.145 331.789);
  --chart-4: oklch(0.681 0.072 206.532);
  --chart-5: oklch(0.721 0.117 114.911);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.13 0.017 112.955);
  --foreground: oklch(0.981 0.004 111.865);
  --muted: oklch(0.256 0.013 206.257);
  --muted-foreground: oklch(0.691 0 180);
  --popover: oklch(0.13 0.017 112.955);
  --popover-foreground: oklch(0.981 0.004 111.865);
  --card: oklch(0.149 0.02 113.241);
  --card-foreground: oklch(0.987 0.003 111.836);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.71 0.109 114.716);
  --primary-foreground: oklch(0.244 0.03 114.049);
  --secondary: oklch(0.661 0.075 206.659);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.579 0.145 331.789);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.7 0.153 44.209);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.71 0.109 114.716);
  --chart-1: oklch(0.71 0.109 114.716);
  --chart-2: oklch(0.661 0.075 206.659);
  --chart-3: oklch(0.579 0.145 331.789);
  --chart-4: oklch(0.681 0.072 206.532);
  --chart-5: oklch(0.721 0.117 114.911);
}