Quirky for shadcn/ui

Quirky is a shadcn/ui theme built around an orange primary color (#937b4d) with violet accents (#7b4d93). The light mode uses a neutral background (#fefdfb). Dark mode keeps the orange primary (#937b4d) on a neutral background (#080602).

Color palette

TokenLightDark
Background
#fefdfbsnow
#080602black
Foreground
#040301black
#fcfbf8snow
Card
#fefdfbsnow
#080602black
Card foreground
#040301black
#fcfbf8snow
Popover
#fefdfbsnow
#080602black
Popover foreground
#040301black
#fcfbf8snow
Primary
#937b4ddimgray
#937b4ddimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4d937bmediumseagreen
#4d937bmediumseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#edf7f4whitesmoke
#08120eblack
Muted foreground
#4d5653darkslategray
#a9b2afdarkgray
Accent
#7b4d93rebeccapurple
#7b4d93rebeccapurple
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#ce4e09chocolate
#dc5309chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#937b4ddimgray
#937b4ddimgray

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button4.06:1AA Large
Secondary button3.63:1AA Large
Muted text6.94:1AA
Accent6.30:1AA
Destructive4.47:1AA Large
Dark mode
Text on background19.56:1AAA
Text on card19.56:1AAA
Primary button4.06:1AA Large
Secondary button3.63:1AA Large
Muted text8.78:1AAA
Accent6.30:1AA
Destructive3.96:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 83.056);
  --foreground: oklch(0.099 0.015 90.949);
  --muted: oklch(0.968 0.011 173.226);
  --muted-foreground: oklch(0.445 0.014 172.66);
  --popover: oklch(0.994 0.002 83.056);
  --popover-foreground: oklch(0.099 0.015 90.949);
  --card: oklch(0.994 0.002 83.056);
  --card-foreground: oklch(0.099 0.015 90.949);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.594 0.069 82.19);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.61 0.081 168.727);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.502 0.117 312.794);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.588 0.175 41.59);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.069 82.19);
  --chart-1: oklch(0.594 0.069 82.19);
  --chart-2: oklch(0.61 0.081 168.727);
  --chart-3: oklch(0.502 0.117 312.794);
  --chart-4: oklch(0.64 0.085 168.693);
  --chart-5: oklch(0.599 0.075 81.974);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.123 0.014 89.173);
  --foreground: oklch(0.987 0.004 83.058);
  --muted: oklch(0.17 0.017 170.579);
  --muted-foreground: oklch(0.756 0.012 173.106);
  --popover: oklch(0.123 0.014 89.173);
  --popover-foreground: oklch(0.987 0.004 83.058);
  --card: oklch(0.123 0.014 89.173);
  --card-foreground: oklch(0.987 0.004 83.058);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.594 0.069 82.19);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.61 0.081 168.727);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.502 0.117 312.794);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.618 0.185 41.453);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.594 0.069 82.19);
  --chart-1: oklch(0.594 0.069 82.19);
  --chart-2: oklch(0.61 0.081 168.727);
  --chart-3: oklch(0.502 0.117 312.794);
  --chart-4: oklch(0.64 0.085 168.693);
  --chart-5: oklch(0.599 0.075 81.974);
}