Twig for shadcn/ui

Twig is a shadcn/ui theme built around a light cyan primary color (#b5dded) with light green accents (#ddedb5). The light mode uses a neutral background (#ffffff). Dark mode keeps the light cyan primary (#b5dded) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#061014black
#f9fafbghostwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#050d10black
#fcfdfdwhite
Popover
#fcfcfcsnow
#030303black
Popover foreground
#050d10black
#fcfdfdwhite
Primary
#b5ddedpowderblue
#b5ddedpowderblue
Primary foreground
#16475adarkslategray
#16475adarkslategray
Secondary
#edb5ddthistle
#edb5ddthistle
Secondary foreground
#5a1647indigo
#5a1647indigo
Muted
#e8c9dfthistle
#36172ddarkslategray
Muted foreground
#493644darkslategray
#c9b6c3silver
Accent
#ddedb5palegoldenrod
#ddedb5palegoldenrod
Accent foreground
#475a16darkolivegreen
#475a16darkolivegreen
Destructive
#8f1e05darkred
#f85935tomato
Destructive foreground
#fdd2c9peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b5ddedpowderblue
#b5ddedpowderblue

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.17:1AAA
Primary button6.98:1AA
Secondary button7.47:1AAA
Muted text7.33:1AAA
Accent6.15:1AA
Destructive6.47:1AA
Dark mode
Text on background20.09:1AAA
Text on card20.29:1AAA
Primary button6.98:1AA
Secondary button7.47:1AAA
Muted text8.34:1AAA
Accent6.15:1AA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.164 0.017 223.726);
  --muted: oklch(0.87 0.045 336.1);
  --muted-foreground: oklch(0.36 0.035 336.862);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.15 0.015 221.874);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.15 0.015 221.874);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.875 0.047 223.854);
  --primary-foreground: oklch(0.374 0.061 228.208);
  --secondary: oklch(0.836 0.083 336.896);
  --secondary-foreground: oklch(0.333 0.115 341.373);
  --accent: oklch(0.921 0.075 120.735);
  --accent-foreground: oklch(0.438 0.095 124.122);
  --destructive: oklch(0.425 0.151 33.206);
  --destructive-foreground: oklch(0.899 0.05 32.783);
  --ring: oklch(0.875 0.047 223.854);
  --chart-1: oklch(0.875 0.047 223.854);
  --chart-2: oklch(0.836 0.083 336.896);
  --chart-3: oklch(0.921 0.075 120.735);
  --chart-4: oklch(0.863 0.069 336.57);
  --chart-5: oklch(0.876 0.05 223.9);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.985 0.002 223.151);
  --muted: oklch(0.258 0.059 339.039);
  --muted-foreground: oklch(0.795 0.029 335.832);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.993 0.001 223.141);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.993 0.001 223.141);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.875 0.047 223.854);
  --primary-foreground: oklch(0.374 0.061 228.208);
  --secondary: oklch(0.836 0.083 336.896);
  --secondary-foreground: oklch(0.333 0.115 341.373);
  --accent: oklch(0.921 0.075 120.735);
  --accent-foreground: oklch(0.438 0.095 124.122);
  --destructive: oklch(0.671 0.201 34.097);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.875 0.047 223.854);
  --chart-1: oklch(0.875 0.047 223.854);
  --chart-2: oklch(0.836 0.083 336.896);
  --chart-3: oklch(0.921 0.075 120.735);
  --chart-4: oklch(0.863 0.069 336.57);
  --chart-5: oklch(0.876 0.05 223.9);
}