Giant for shadcn/ui

Giant is a shadcn/ui theme built around a light green primary color (#f2fdf2) with light purple accents (#fcf2fd). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#f2fdf2) on a green-tinted background (#070e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e07black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#070e07black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#070e07black
Popover foreground
#000000black
#ffffffwhite
Primary
#f2fdf2honeydew
#f2fdf2honeydew
Primary foreground
#0f4a0ddarkgreen
#0f4a0ddarkgreen
Secondary
#fcf2fdghostwhite
#fcf2fdghostwhite
Secondary foreground
#9c1ca0darkmagenta
#9c1ca0darkmagenta
Muted
#eee7eelavender
#171118black
Muted foreground
#473748darkslategray
#c7b7c8silver
Accent
#fcf2fdghostwhite
#fcf2fdghostwhite
Accent foreground
#9c1ca0darkmagenta
#9c1ca0darkmagenta
Destructive
#a72c11firebrick
#d53815firebrick
Destructive foreground
#fdf0ecseashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2fdf2honeydew
#f2fdf2honeydew

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button10.01:1AAA
Secondary button6.24:1AA
Muted text9.07:1AAA
Accent6.24:1AA
Destructive6.25:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.55:1AAA
Primary button10.01:1AAA
Secondary button6.24:1AA
Muted text9.75:1AAA
Accent6.24:1AA
Destructive4.74:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.936 0.011 324.693);
  --muted-foreground: oklch(0.362 0.035 325.211);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.983 0.018 144.501);
  --primary-foreground: oklch(0.358 0.108 142.525);
  --secondary: oklch(0.972 0.018 324.735);
  --secondary-foreground: oklch(0.5 0.212 326.636);
  --accent: oklch(0.972 0.018 324.735);
  --accent-foreground: oklch(0.5 0.212 326.636);
  --destructive: oklch(0.484 0.164 33.595);
  --destructive-foreground: oklch(0.964 0.015 32.668);
  --ring: oklch(0.983 0.018 144.501);
  --chart-1: oklch(0.983 0.018 144.501);
  --chart-2: oklch(0.972 0.018 324.735);
  --chart-3: oklch(0.972 0.018 324.735);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.019 144.496);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.02 143.566);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.189 0.016 325.148);
  --muted-foreground: oklch(0.798 0.029 324.847);
  --popover: oklch(0.152 0.02 143.566);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.02 143.566);
  --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.983 0.018 144.501);
  --primary-foreground: oklch(0.358 0.108 142.525);
  --secondary: oklch(0.972 0.018 324.735);
  --secondary-foreground: oklch(0.5 0.212 326.636);
  --accent: oklch(0.972 0.018 324.735);
  --accent-foreground: oklch(0.5 0.212 326.636);
  --destructive: oklch(0.578 0.199 33.455);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.983 0.018 144.501);
  --chart-1: oklch(0.983 0.018 144.501);
  --chart-2: oklch(0.972 0.018 324.735);
  --chart-3: oklch(0.972 0.018 324.735);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.983 0.019 144.496);
}