AFFC for shadcn/ui

AFFC is a shadcn/ui theme built around a muted pink primary color (#c69fb5) with muted blue accents (#9fb5c6). The light mode uses a neutral background (#fcf8fa). Dark mode switches to a vivid green primary (#beff78) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcf8fasnow
#000000black
Foreground
#15050eblack
#e2eaealavender
Card
#fcf8fasnow
#000000black
Card foreground
#15050eblack
#e2eaealavender
Popover
#fcf8fasnow
#000000black
Popover foreground
#15050eblack
#e2eaealavender
Primary
#c69fb5darkgray
#beff78palegreen
Primary foreground
#20131ablack
#000000black
Secondary
#b5c69fdarkgray
#773deeblueviolet
Secondary foreground
#1a2013black
#ffffffwhite
Muted
#e7efdcbeige
#1b1b1bblack
Muted foreground
#636e53dimgray
#707676dimgray
Accent
#9fb5c6darkgray
#ffffffwhite
Accent foreground
#131a20black
#000000black
Destructive
#c32e13firebrick
#ff6767salmon
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5dce1gainsboro
#ffffffwhite
Input
#e5dce1gainsboro
#ffffffwhite
Ring
#c69fb5darkgray
#773deeblueviolet

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card18.81:1AAA
Primary button7.73:1AAA
Secondary button9.13:1AAA
Muted text4.58:1AA
Accent8.28:1AAA
Destructive5.65:1AA
Dark mode
Text on background17.19:1AAA
Text on card17.19:1AAA
Primary button17.76:1AAA
Secondary button5.69:1AA
Muted text3.70:1AA Large
Accent21.00:1AAA
Destructive2.84:1Fail

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.005 341.93);
  --foreground: oklch(0.147 0.036 345.612);
  --muted: oklch(0.942 0.028 126.139);
  --muted-foreground: oklch(0.522 0.044 126.9);
  --popover: oklch(0.983 0.005 341.93);
  --popover-foreground: oklch(0.147 0.036 345.612);
  --card: oklch(0.983 0.005 341.93);
  --card-foreground: oklch(0.147 0.036 345.612);
  --border: oklch(0.903 0.011 342.107);
  --input: oklch(0.903 0.011 342.107);
  --primary: oklch(0.745 0.054 343.451);
  --primary-foreground: oklch(0.207 0.025 344.466);
  --secondary: oklch(0.803 0.055 126.689);
  --secondary-foreground: oklch(0.233 0.025 127.254);
  --accent: oklch(0.762 0.034 240.917);
  --accent-foreground: oklch(0.215 0.015 241.356);
  --destructive: oklch(0.536 0.189 32.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.745 0.054 343.451);
  --chart-1: oklch(0.745 0.054 343.451);
  --chart-2: oklch(0.803 0.055 126.689);
  --chart-3: oklch(0.762 0.034 240.917);
  --chart-4: oklch(0.823 0.05 126.566);
  --chart-5: oklch(0.743 0.06 343.647);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.931 0.009 197.009);
  --muted: oklch(0.224 0 180);
  --muted-foreground: oklch(0.56 0.007 196.96);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.931 0.009 197.009);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.931 0.009 197.009);
  --border: oklch(1 0 180);
  --input: oklch(1 0 180);
  --primary: oklch(0.929 0.178 130.533);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.54 0.245 290.755);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(1 0 180);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.706 0.186 23.114);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.54 0.245 290.755);
  --chart-1: oklch(0.929 0.178 130.533);
  --chart-2: oklch(0.54 0.245 290.755);
  --chart-3: oklch(1 0 180);
  --chart-4: oklch(0.568 0.231 292.479);
  --chart-5: oklch(0.933 0.183 130.618);
}