Fwizy theme for shadcn/ui

Fwizy theme is a shadcn/ui theme built around a teal primary color (#93d2b8) with muted light teal accents (#d5ddd9). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#93d2b8) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#ffffffwhite
#030705black
Foreground
#000000black
#f9fbfamintcream
Card
#fcfcfcsnow
#050a08black
Card foreground
#000000black
#fcfdfdwhite
Popover
#fcfcfcsnow
#050a08black
Popover foreground
#000000black
#fcfdfdwhite
Primary
#93d2b8darkseagreen
#93d2b8darkseagreen
Primary foreground
#0f241bblack
#0f241bblack
Secondary
#d5ddd9gainsboro
#232f2adarkslategray
Secondary foreground
#394641darkslategray
#b9cbc3silver
Muted
#dbebe4gainsboro
#14241dblack
Muted foreground
#4d514fdarkslategray
#aeb2b0darkgray
Accent
#d5ddd9gainsboro
#232f2adarkslategray
Accent foreground
#394641darkslategray
#b9cbc3silver
Destructive
#a72711firebrick
#e94225orangered
Destructive foreground
#fdefecseashell
#ffffffwhite
Border
#eff0f0whitesmoke
#191a1ablack
Input
#eff0f0whitesmoke
#191a1ablack
Ring
#93d2b8darkseagreen
#93d2b8darkseagreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button9.42:1AAA
Secondary button7.11:1AAA
Muted text6.52:1AA
Accent7.11:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.52:1AAA
Primary button9.42:1AAA
Secondary button8.21:1AAA
Muted text7.53:1AAA
Accent8.21:1AAA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.019 169.084);
  --muted-foreground: oklch(0.431 0.007 169.212);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.955 0.001 169.638);
  --input: oklch(0.955 0.001 169.638);
  --primary: oklch(0.813 0.074 166.749);
  --primary-foreground: oklch(0.239 0.032 164.942);
  --secondary: oklch(0.889 0.009 169.372);
  --secondary-foreground: oklch(0.381 0.019 168.198);
  --accent: oklch(0.889 0.009 169.372);
  --accent-foreground: oklch(0.381 0.019 168.198);
  --destructive: oklch(0.479 0.168 32.223);
  --destructive-foreground: oklch(0.962 0.016 29.53);
  --ring: oklch(0.813 0.074 166.749);
  --chart-1: oklch(0.813 0.074 166.749);
  --chart-2: oklch(0.889 0.009 169.372);
  --chart-3: oklch(0.889 0.009 169.372);
  --chart-4: oklch(0.912 0.007 169.439);
  --chart-5: oklch(0.817 0.079 166.536);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.011 169.849);
  --foreground: oklch(0.986 0.002 169.622);
  --muted: oklch(0.243 0.025 166.325);
  --muted-foreground: oklch(0.76 0.006 169.446);
  --popover: oklch(0.139 0.012 169.827);
  --popover-foreground: oklch(0.993 0.001 169.646);
  --card: oklch(0.139 0.012 169.827);
  --card-foreground: oklch(0.993 0.001 169.646);
  --border: oklch(0.217 0.003 169.322);
  --input: oklch(0.217 0.003 169.322);
  --primary: oklch(0.813 0.074 166.749);
  --primary-foreground: oklch(0.239 0.032 164.942);
  --secondary: oklch(0.292 0.019 167.667);
  --secondary-foreground: oklch(0.826 0.023 168.876);
  --accent: oklch(0.292 0.019 167.667);
  --accent-foreground: oklch(0.826 0.023 168.876);
  --destructive: oklch(0.623 0.208 32.353);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.813 0.074 166.749);
  --chart-1: oklch(0.813 0.074 166.749);
  --chart-2: oklch(0.292 0.019 167.667);
  --chart-3: oklch(0.292 0.019 167.667);
  --chart-4: oklch(0.324 0.022 167.583);
  --chart-5: oklch(0.817 0.079 166.536);
}