gween for shadcn/ui

gween is a shadcn/ui theme built around a teal primary color (#38c795) with pink accents (#c7386a). The light mode uses a neutral background (#f7fdfb). Dark mode keeps the teal primary (#38c795) on a neutral background (#010403).

Color palette

TokenLightDark
Background
#f7fdfbmintcream
#010403black
Foreground
#010403black
#f4faf8mintcream
Card
#f7fdfbmintcream
#010403black
Card foreground
#010403black
#f4faf8mintcream
Popover
#f7fdfbmintcream
#010403black
Popover foreground
#010403black
#f4faf8mintcream
Primary
#38c795lightseagreen
#38c795lightseagreen
Primary foreground
#0b281eblack
#0b281eblack
Secondary
#c7386aindianred
#c7386aindianred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#ece4e7linen
#1b1316black
Muted foreground
#4c4246darkslategray
#bdb3b6silver
Accent
#c7386aindianred
#c7386aindianred
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#bc1010firebrick
#e61414red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#38c795lightseagreen
#38c795lightseagreen

Contrast

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

Light mode
Text on background19.96:1AAA
Text on card19.96:1AAA
Primary button7.30:1AAA
Secondary button4.99:1AA
Muted text7.72:1AAA
Accent4.99:1AA
Destructive6.53:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button7.30:1AAA
Secondary button4.99:1AA
Muted text8.95:1AAA
Accent4.99:1AA
Destructive4.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.006 173.383);
  --foreground: oklch(0.101 0.015 173.89);
  --muted: oklch(0.926 0.01 353.892);
  --muted-foreground: oklch(0.392 0.015 354.632);
  --popover: oklch(0.988 0.006 173.383);
  --popover-foreground: oklch(0.101 0.015 173.89);
  --card: oklch(0.988 0.006 173.383);
  --card-foreground: oklch(0.101 0.015 173.89);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.742 0.14 164.851);
  --primary-foreground: oklch(0.251 0.04 167.252);
  --secondary: oklch(0.567 0.182 3.94);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.567 0.182 3.94);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.504 0.199 28.414);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.742 0.14 164.851);
  --chart-1: oklch(0.742 0.14 164.851);
  --chart-2: oklch(0.567 0.182 3.94);
  --chart-3: oklch(0.567 0.182 3.94);
  --chart-4: oklch(0.587 0.174 2.63);
  --chart-5: oklch(0.751 0.146 164.41);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.009 173.77);
  --foreground: oklch(0.981 0.007 173.364);
  --muted: oklch(0.197 0.015 355.727);
  --muted-foreground: oklch(0.775 0.012 354.029);
  --popover: oklch(0.097 0.009 173.77);
  --popover-foreground: oklch(0.981 0.007 173.364);
  --card: oklch(0.097 0.009 173.77);
  --card-foreground: oklch(0.981 0.007 173.364);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.742 0.14 164.851);
  --primary-foreground: oklch(0.251 0.04 167.252);
  --secondary: oklch(0.567 0.182 3.94);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.567 0.182 3.94);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.586 0.233 28.543);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.742 0.14 164.851);
  --chart-1: oklch(0.742 0.14 164.851);
  --chart-2: oklch(0.567 0.182 3.94);
  --chart-3: oklch(0.567 0.182 3.94);
  --chart-4: oklch(0.587 0.174 2.63);
  --chart-5: oklch(0.751 0.146 164.41);
}