Fazt for shadcn/ui

Fazt is a shadcn/ui theme built around a vivid green primary color (#bee63d) with muted light green accents (#d5d9c9). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the vivid green primary (#bee63d) on a green-tinted background (#0d0f06).

Color palette

TokenLightDark
Background
#fbfdf7snow
#0d0f06black
Foreground
#000000black
#ffffffwhite
Card
#fafcf3floralwhite
#101307black
Card foreground
#000000black
#ffffffwhite
Popover
#fbfdf7snow
#0d0f06black
Popover foreground
#000000black
#ffffffwhite
Primary
#bee63dgreenyellow
#bee63dgreenyellow
Primary foreground
#3d4d0adarkolivegreen
#3d4d0adarkolivegreen
Secondary
#dfe1dbgainsboro
#36382edarkslategray
Secondary foreground
#484b3fdarkslategray
#cfd1c7lightgrey
Muted
#ecf0e0beige
#1b1f0fblack
Muted foreground
#666a58dimgray
#a3a795darkgray
Accent
#d5d9c9lightgrey
#4d533cdarkolivegreen
Accent foreground
#3d422fdarkslategray
#e3e5dcgainsboro
Destructive
#c03b02firebrick
#e34602orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e3e5dcgainsboro
#292c21darkslategray
Input
#e3e5dcgainsboro
#292c21darkslategray
Ring
#bee63dgreenyellow
#bee63dgreenyellow

Contrast

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

Light mode
Text on background20.48:1AAA
Text on card20.23:1AAA
Primary button6.43:1AA
Secondary button6.76:1AA
Muted text4.80:1AA
Accent7.23:1AAA
Destructive5.43:1AA
Dark mode
Text on background19.32:1AAA
Text on card18.82:1AAA
Primary button6.43:1AA
Secondary button7.71:1AAA
Muted text6.82:1AA
Accent6.30:1AA
Destructive4.08:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.008 117.22);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.948 0.021 117.478);
  --muted-foreground: oklch(0.514 0.027 118.031);
  --popover: oklch(0.991 0.008 117.22);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.986 0.012 117.291);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.917 0.012 117.308);
  --input: oklch(0.917 0.012 117.308);
  --primary: oklch(0.867 0.191 122.161);
  --primary-foreground: oklch(0.392 0.089 122.574);
  --secondary: oklch(0.906 0.008 117.241);
  --secondary-foreground: oklch(0.406 0.02 117.987);
  --accent: oklch(0.878 0.021 117.517);
  --accent-foreground: oklch(0.368 0.032 118.657);
  --destructive: oklch(0.543 0.178 37.731);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.191 122.161);
  --chart-1: oklch(0.867 0.191 122.161);
  --chart-2: oklch(0.906 0.008 117.241);
  --chart-3: oklch(0.878 0.021 117.517);
  --chart-4: oklch(0.928 0.006 117.2);
  --chart-5: oklch(0.875 0.195 122.326);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.162 0.02 118.621);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.229 0.029 119.411);
  --muted-foreground: oklch(0.72 0.025 117.706);
  --popover: oklch(0.162 0.02 118.621);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.178 0.023 119.266);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.285 0.019 118.297);
  --input: oklch(0.285 0.019 118.297);
  --primary: oklch(0.867 0.191 122.161);
  --primary-foreground: oklch(0.392 0.089 122.574);
  --secondary: oklch(0.335 0.018 118.028);
  --secondary-foreground: oklch(0.856 0.014 117.375);
  --accent: oklch(0.43 0.037 118.633);
  --accent-foreground: oklch(0.918 0.013 117.34);
  --destructive: oklch(0.614 0.203 37.351);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.867 0.191 122.161);
  --chart-1: oklch(0.867 0.191 122.161);
  --chart-2: oklch(0.335 0.018 118.028);
  --chart-3: oklch(0.43 0.037 118.633);
  --chart-4: oklch(0.367 0.02 118.054);
  --chart-5: oklch(0.875 0.195 122.326);
}