Tortilla for shadcn/ui

Tortilla is a shadcn/ui theme built around a light indigo primary color (#e2def2) with light green accents (#def2e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#e2def2) on an indigo-tinted background (#05040b).

Color palette

TokenLightDark
Background
#ffffffwhite
#05040bblack
Foreground
#000000black
#fcfcfdwhite
Card
#fcfcfcsnow
#07050fblack
Card foreground
#000000black
#ffffffwhite
Popover
#fcfcfcsnow
#07050fblack
Popover foreground
#000000black
#ffffffwhite
Primary
#e2def2lavender
#e2def2lavender
Primary foreground
#392c72darkslateblue
#392c72darkslateblue
Secondary
#f2e2demistyrose
#f2e2demistyrose
Secondary foreground
#72392csaddlebrown
#72392csaddlebrown
Muted
#f0ebealinen
#15100fblack
Muted foreground
#626060dimgray
#9f9d9ddarkgray
Accent
#def2e2gainsboro
#def2e2gainsboro
Accent foreground
#102814black
#102814black
Destructive
#81170emaroon
#e72918crimson
Destructive foreground
#f9ccc8pink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e2def2lavender
#e2def2lavender

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button8.97:1AAA
Secondary button7.13:1AAA
Muted text5.29:1AA
Accent13.41:1AAA
Destructive7.01:1AAA
Dark mode
Text on background19.91:1AAA
Text on card20.22:1AAA
Primary button8.97:1AAA
Secondary button7.13:1AAA
Muted text6.99:1AA
Accent13.41:1AAA
Destructive4.44:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.944 0.006 32.661);
  --muted-foreground: oklch(0.491 0.002 32.661);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.909 0.028 294.258);
  --primary-foreground: oklch(0.35 0.115 287.328);
  --secondary: oklch(0.924 0.019 32.674);
  --secondary-foreground: oklch(0.415 0.083 33.8);
  --accent: oklch(0.942 0.031 150.933);
  --accent-foreground: oklch(0.252 0.049 148.082);
  --destructive: oklch(0.393 0.142 29.921);
  --destructive-foreground: oklch(0.883 0.052 24.253);
  --ring: oklch(0.909 0.028 294.258);
  --chart-1: oklch(0.909 0.028 294.258);
  --chart-2: oklch(0.924 0.019 32.674);
  --chart-3: oklch(0.942 0.031 150.933);
  --chart-4: oklch(0.949 0.012 32.665);
  --chart-5: oklch(0.908 0.029 294.218);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.114 0.021 293.667);
  --foreground: oklch(0.992 0.001 294.807);
  --muted: oklch(0.179 0.009 32.754);
  --muted-foreground: oklch(0.699 0.002 32.661);
  --popover: oklch(0.126 0.025 292.875);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.025 292.875);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.909 0.028 294.258);
  --primary-foreground: oklch(0.35 0.115 287.328);
  --secondary: oklch(0.924 0.019 32.674);
  --secondary-foreground: oklch(0.415 0.083 33.8);
  --accent: oklch(0.942 0.031 150.933);
  --accent-foreground: oklch(0.252 0.049 148.082);
  --destructive: oklch(0.598 0.224 30.061);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.909 0.028 294.258);
  --chart-1: oklch(0.909 0.028 294.258);
  --chart-2: oklch(0.924 0.019 32.674);
  --chart-3: oklch(0.942 0.031 150.933);
  --chart-4: oklch(0.949 0.012 32.665);
  --chart-5: oklch(0.908 0.029 294.218);
}