Nutty for shadcn/ui

Nutty is a shadcn/ui theme built around a purple primary color (#df62dd) with muted light purple accents (#d0b3d0). The light mode uses a neutral background (#fefbfe). Dark mode keeps the purple primary (#df62dd) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefbfewhite
#000000black
Foreground
#100510black
#faf5faghostwhite
Card
#fdf7fdsnow
#030303black
Card foreground
#0c030cblack
#fcf8fcsnow
Popover
#fdf7fdsnow
#030303black
Popover foreground
#0c030cblack
#fcf8fcsnow
Primary
#df62ddorchid
#df62ddorchid
Primary foreground
#0d030dblack
#0d030dblack
Secondary
#d8cbd7lightgrey
#1f1a1eblack
Secondary foreground
#403040darkslategray
#bcaebbsilver
Muted
#e8dee8gainsboro
#211721black
Muted foreground
#5e455ddimgray
#baa1b9darkgray
Accent
#d0b3d0thistle
#3b2b3adarkslategray
Accent foreground
#331f32darkslategray
#d4c4d3thistle
Destructive
#e01300red
#ff3f2etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#df62ddorchid
#df62ddorchid

Contrast

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

Light mode
Text on background19.42:1AAA
Text on card19.20:1AAA
Primary button6.69:1AA
Secondary button7.81:1AAA
Muted text6.45:1AA
Accent8.00:1AAA
Destructive4.91:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.66:1AAA
Primary button6.69:1AA
Secondary button8.12:1AAA
Muted text7.34:1AAA
Accent7.91:1AAA
Destructive3.49:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.006 326.099);
  --foreground: oklch(0.139 0.033 327.702);
  --muted: oklch(0.911 0.016 326.197);
  --muted-foreground: oklch(0.427 0.05 326.949);
  --popover: oklch(0.982 0.011 326.146);
  --popover-foreground: oklch(0.125 0.028 327.59);
  --card: oklch(0.982 0.011 326.146);
  --card-foreground: oklch(0.125 0.028 327.59);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.694 0.211 328.199);
  --primary-foreground: oklch(0.123 0.035 327.907);
  --secondary: oklch(0.855 0.022 326.261);
  --secondary-foreground: oklch(0.334 0.034 326.842);
  --accent: oklch(0.801 0.052 326.558);
  --accent-foreground: oklch(0.272 0.044 327.272);
  --destructive: oklch(0.575 0.23 30.091);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.211 328.199);
  --chart-1: oklch(0.694 0.211 328.199);
  --chart-2: oklch(0.855 0.022 326.261);
  --chart-3: oklch(0.801 0.052 326.558);
  --chart-4: oklch(0.88 0.018 326.221);
  --chart-5: oklch(0.696 0.219 328.266);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.009 326.126);
  --muted: oklch(0.222 0.023 326.851);
  --muted-foreground: oklch(0.738 0.044 326.521);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.983 0.006 326.101);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.006 326.101);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.694 0.211 328.199);
  --primary-foreground: oklch(0.123 0.035 327.907);
  --secondary: oklch(0.224 0.012 326.483);
  --secondary-foreground: oklch(0.767 0.024 326.299);
  --accent: oklch(0.314 0.034 326.88);
  --accent-foreground: oklch(0.838 0.027 326.306);
  --destructive: oklch(0.657 0.229 29.729);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.694 0.211 328.199);
  --chart-1: oklch(0.694 0.211 328.199);
  --chart-2: oklch(0.224 0.012 326.483);
  --chart-3: oklch(0.314 0.034 326.88);
  --chart-4: oklch(0.256 0.015 326.516);
  --chart-5: oklch(0.696 0.219 328.266);
}