Tortoise for shadcn/ui

Tortoise is a shadcn/ui theme built around a violet primary color (#4f2f6a) with green accents (#4a6a2f). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#4f2f6a) on a neutral background (#050307).

Color palette

TokenLightDark
Background
#ffffffwhite
#050307black
Foreground
#030104black
#f8f6f9whitesmoke
Card
#ffffffwhite
#050307black
Card foreground
#030104black
#f8f6f9whitesmoke
Popover
#ffffffwhite
#050307black
Popover foreground
#030104black
#f8f6f9whitesmoke
Primary
#4f2f6adarkslateblue
#4f2f6adarkslateblue
Primary foreground
#e6dceflavender
#e6dceflavender
Secondary
#4a6a2fdarkolivegreen
#4a6a2fdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2eadcgainsboro
#1b2315black
Muted foreground
#4f514ddarkslategray
#b0b2aedarkgray
Accent
#4a6a2fdarkolivegreen
#4a6a2fdarkolivegreen
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b3170ffirebrick
#f04b42tomato
Destructive foreground
#fef6f6snow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#4f2f6adarkslateblue
#4f2f6adarkslateblue

Contrast

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

Light mode
Text on background20.79:1AAA
Text on card20.79:1AAA
Primary button8.10:1AAA
Secondary button6.22:1AA
Muted text6.50:1AA
Accent6.22:1AA
Destructive6.46:1AA
Dark mode
Text on background19.11:1AAA
Text on card19.11:1AAA
Primary button8.10:1AAA
Secondary button6.22:1AA
Muted text7.57:1AAA
Accent6.22:1AA
Destructive3.63:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.08 0.02 312.408);
  --muted: oklch(0.927 0.02 130.638);
  --muted-foreground: oklch(0.431 0.006 130.56);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.08 0.02 312.408);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.08 0.02 312.408);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.374 0.101 307.623);
  --primary-foreground: oklch(0.908 0.028 310.147);
  --secondary: oklch(0.484 0.093 132.727);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.484 0.093 132.727);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.491 0.189 29.315);
  --destructive-foreground: oklch(0.979 0.009 21.004);
  --ring: oklch(0.374 0.101 307.623);
  --chart-1: oklch(0.374 0.101 307.623);
  --chart-2: oklch(0.484 0.093 132.727);
  --chart-3: oklch(0.484 0.093 132.727);
  --chart-4: oklch(0.517 0.101 132.762);
  --chart-5: oklch(0.372 0.108 307.333);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.106 0.017 311.749);
  --foreground: oklch(0.975 0.005 310.391);
  --muted: oklch(0.243 0.027 131.564);
  --muted-foreground: oklch(0.76 0.005 130.498);
  --popover: oklch(0.106 0.017 311.749);
  --popover-foreground: oklch(0.975 0.005 310.391);
  --card: oklch(0.106 0.017 311.749);
  --card-foreground: oklch(0.975 0.005 310.391);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.374 0.101 307.623);
  --primary-foreground: oklch(0.908 0.028 310.147);
  --secondary: oklch(0.484 0.093 132.727);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.484 0.093 132.727);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.645 0.203 27.377);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.374 0.101 307.623);
  --chart-1: oklch(0.374 0.101 307.623);
  --chart-2: oklch(0.484 0.093 132.727);
  --chart-3: oklch(0.484 0.093 132.727);
  --chart-4: oklch(0.517 0.101 132.762);
  --chart-5: oklch(0.372 0.108 307.333);
}