Toy for shadcn/ui

Toy is a shadcn/ui theme built around a near-white primary color (#fefdfb) with muted light orange accents (#d3cfca). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-white primary (#fefdfb) on an orange-tinted background (#100b04).

Color palette

TokenLightDark
Background
#ffffffwhite
#100b04black
Foreground
#110b03black
#fcfaf8snow
Card
#ffffffwhite
#100b04black
Card foreground
#110b03black
#fcfaf8snow
Popover
#ffffffwhite
#100b04black
Popover foreground
#110b03black
#fcfaf8snow
Primary
#fefdfbsnow
#fefdfbsnow
Primary foreground
#55330csaddlebrown
#55330csaddlebrown
Secondary
#e6e6e5gainsboro
#141414black
Secondary foreground
#4d4d4cdarkslategray
#adadaddarkgray
Muted
#e7e3degainsboro
#211818black
Muted foreground
#5b554ddimgray
#b2a4a4darkgray
Accent
#d3cfcalightgrey
#241e1eblack
Accent foreground
#3a3631darkslategray
#c0b4b4silver
Destructive
#d12405firebrick
#e02606orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#fefdfbsnow
#fefdfbsnow

Contrast

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

Light mode
Text on background19.57:1AAA
Text on card19.57:1AAA
Primary button11.05:1AAA
Secondary button6.75:1AA
Muted text5.78:1AA
Accent7.72:1AAA
Destructive5.30:1AA
Dark mode
Text on background18.85:1AAA
Text on card18.85:1AAA
Primary button11.05:1AAA
Secondary button8.18:1AAA
Muted text7.26:1AAA
Accent8.13:1AAA
Destructive4.72:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.154 0.022 76.04);
  --muted: oklch(0.919 0.008 71.376);
  --muted-foreground: oklch(0.452 0.014 71.152);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.154 0.022 76.04);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.154 0.022 76.04);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.994 0.003 71.422);
  --primary-foreground: oklch(0.356 0.071 64.507);
  --secondary: oklch(0.924 0 71.446);
  --secondary-foreground: oklch(0.419 0.002 71.417);
  --accent: oklch(0.856 0.008 71.371);
  --accent-foreground: oklch(0.335 0.011 71.138);
  --destructive: oklch(0.554 0.209 31.578);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.994 0.003 71.422);
  --chart-1: oklch(0.994 0.003 71.422);
  --chart-2: oklch(0.924 0 71.446);
  --chart-3: oklch(0.856 0.008 71.371);
  --chart-4: oklch(0.947 0 71.447);
  --chart-5: oklch(0.994 0.003 71.42);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.017 74.989);
  --foreground: oklch(0.986 0.004 71.42);
  --muted: oklch(0.218 0.015 18.324);
  --muted-foreground: oklch(0.731 0.016 17.517);
  --popover: oklch(0.152 0.017 74.989);
  --popover-foreground: oklch(0.986 0.004 71.42);
  --card: oklch(0.152 0.017 74.989);
  --card-foreground: oklch(0.986 0.004 71.42);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.994 0.003 71.422);
  --primary-foreground: oklch(0.356 0.071 64.507);
  --secondary: oklch(0.193 0 164.055);
  --secondary-foreground: oklch(0.749 0 158.199);
  --accent: oklch(0.243 0.009 17.807);
  --accent-foreground: oklch(0.78 0.014 17.461);
  --destructive: oklch(0.583 0.221 31.517);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.994 0.003 71.422);
  --chart-1: oklch(0.994 0.003 71.422);
  --chart-2: oklch(0.193 0 164.055);
  --chart-3: oklch(0.243 0.009 17.807);
  --chart-4: oklch(0.227 0 164.055);
  --chart-5: oklch(0.994 0.003 71.42);
}