Any for shadcn/ui

Any is a shadcn/ui theme built around a muted deep yellow primary color (#26241c) with muted deep purple accents (#241c26). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep yellow primary (#26241c) on a neutral background (#070603).

Color palette

TokenLightDark
Background
#ffffffwhite
#070603black
Foreground
#151104black
#f9f8f5whitesmoke
Card
#fcfcfcsnow
#0a0905black
Card foreground
#110e03black
#fbfbf9snow
Popover
#fcfcfcsnow
#0a0905black
Popover foreground
#110e03black
#fbfbf9snow
Primary
#26241cblack
#26241cblack
Primary foreground
#c4bfb0silver
#c4bfb0silver
Secondary
#1c2624black
#1c2624black
Secondary foreground
#b0c4bfsilver
#b0c4bfsilver
Muted
#cee9e2gainsboro
#16312adarkslategray
Muted foreground
#4a4a4adarkslategray
#b5b5b5silver
Accent
#241c26black
#241c26black
Accent foreground
#bfb0c4silver
#bfb0c4silver
Destructive
#b62902firebrick
#fd5021orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#26241cblack
#26241cblack

Contrast

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

Light mode
Text on background18.85:1AAA
Text on card18.88:1AAA
Primary button8.47:1AAA
Secondary button8.49:1AAA
Muted text6.90:1AA
Accent8.05:1AAA
Destructive6.36:1AA
Dark mode
Text on background19.07:1AAA
Text on card19.21:1AAA
Primary button8.47:1AAA
Secondary button8.49:1AAA
Muted text6.77:1AA
Accent8.05:1AAA
Destructive3.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.179 0.026 92.969);
  --muted: oklch(0.912 0.03 178.898);
  --muted-foreground: oklch(0.409 0 190.305);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.163 0.023 94.219);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.163 0.023 94.219);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.259 0.014 91.766);
  --primary-foreground: oklch(0.806 0.022 91.626);
  --secondary: oklch(0.259 0.015 178.13);
  --secondary-foreground: oklch(0.805 0.024 179.006);
  --accent: oklch(0.24 0.022 317.613);
  --accent-foreground: oklch(0.776 0.034 317.692);
  --destructive: oklch(0.507 0.182 33.875);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.259 0.014 91.766);
  --chart-1: oklch(0.259 0.014 91.766);
  --chart-2: oklch(0.259 0.015 178.13);
  --chart-3: oklch(0.24 0.022 317.613);
  --chart-4: oklch(0.292 0.018 178.03);
  --chart-5: oklch(0.261 0.017 91.797);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.122 0.01 94.738);
  --foreground: oklch(0.98 0.004 91.446);
  --muted: oklch(0.29 0.036 175.496);
  --muted-foreground: oklch(0.773 0 180);
  --popover: oklch(0.14 0.011 94.722);
  --popover-foreground: oklch(0.987 0.003 91.433);
  --card: oklch(0.14 0.011 94.722);
  --card-foreground: oklch(0.987 0.003 91.433);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.259 0.014 91.766);
  --primary-foreground: oklch(0.806 0.022 91.626);
  --secondary: oklch(0.259 0.015 178.13);
  --secondary-foreground: oklch(0.805 0.024 179.006);
  --accent: oklch(0.24 0.022 317.613);
  --accent-foreground: oklch(0.776 0.034 317.692);
  --destructive: oklch(0.669 0.216 35.256);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.259 0.014 91.766);
  --chart-1: oklch(0.259 0.014 91.766);
  --chart-2: oklch(0.259 0.015 178.13);
  --chart-3: oklch(0.24 0.022 317.613);
  --chart-4: oklch(0.292 0.018 178.03);
  --chart-5: oklch(0.261 0.017 91.797);
}