Cone for shadcn/ui

Cone is a shadcn/ui theme built around a muted green primary color (#82b590) with muted orange accents (#b59082). The light mode uses a neutral background (#fbfefc). Dark mode keeps the muted green primary (#82b590) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#fbfefcwhite
#010402black
Foreground
#030d05black
#f6f8f7whitesmoke
Card
#fbfefcwhite
#010402black
Card foreground
#030d05black
#f6f8f7whitesmoke
Popover
#fbfefcwhite
#010402black
Popover foreground
#030d05black
#f6f8f7whitesmoke
Primary
#82b590darkseagreen
#82b590darkseagreen
Primary foreground
#020302black
#020302black
Secondary
#9082b5lightslategray
#9082b5lightslategray
Secondary foreground
#000000black
#000000black
Muted
#ddd9e8gainsboro
#1b1726black
Muted foreground
#514c5ddarkslategray
#a7a2b3darkgray
Accent
#b59082rosybrown
#b59082rosybrown
Accent foreground
#030202black
#030202black
Destructive
#d31103red
#fb1909red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#82b590darkseagreen
#82b590darkseagreen

Contrast

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

Light mode
Text on background19.41:1AAA
Text on card19.41:1AAA
Primary button8.84:1AAA
Secondary button6.03:1AA
Muted text5.97:1AA
Accent7.20:1AAA
Destructive5.45:1AA
Dark mode
Text on background19.32:1AAA
Text on card19.32:1AAA
Primary button8.84:1AAA
Secondary button6.03:1AA
Muted text7.05:1AAA
Accent7.20:1AAA
Destructive3.99:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 155.13);
  --foreground: oklch(0.143 0.025 154.327);
  --muted: oklch(0.893 0.02 298.913);
  --muted-foreground: oklch(0.427 0.028 298.163);
  --popover: oklch(0.994 0.003 155.13);
  --popover-foreground: oklch(0.143 0.025 154.327);
  --card: oklch(0.994 0.003 155.13);
  --card-foreground: oklch(0.143 0.025 154.327);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.728 0.077 153.065);
  --primary-foreground: oklch(0.095 0.007 154.937);
  --secondary: oklch(0.638 0.078 297.148);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.05 42.642);
  --accent-foreground: oklch(0.091 0.005 46.337);
  --destructive: oklch(0.549 0.219 29.833);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.728 0.077 153.065);
  --chart-1: oklch(0.728 0.077 153.065);
  --chart-2: oklch(0.638 0.078 297.148);
  --chart-3: oklch(0.685 0.05 42.642);
  --chart-4: oklch(0.667 0.071 297.431);
  --chart-5: oklch(0.733 0.085 152.821);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 154.722);
  --foreground: oklch(0.978 0.003 155.13);
  --muted: oklch(0.218 0.029 296.951);
  --muted-foreground: oklch(0.723 0.025 298.719);
  --popover: oklch(0.097 0.013 154.722);
  --popover-foreground: oklch(0.978 0.003 155.13);
  --card: oklch(0.097 0.013 154.722);
  --card-foreground: oklch(0.978 0.003 155.13);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.728 0.077 153.065);
  --primary-foreground: oklch(0.095 0.007 154.937);
  --secondary: oklch(0.638 0.078 297.148);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.685 0.05 42.642);
  --accent-foreground: oklch(0.091 0.005 46.337);
  --destructive: oklch(0.627 0.249 29.744);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.728 0.077 153.065);
  --chart-1: oklch(0.728 0.077 153.065);
  --chart-2: oklch(0.638 0.078 297.148);
  --chart-3: oklch(0.685 0.05 42.642);
  --chart-4: oklch(0.667 0.071 297.431);
  --chart-5: oklch(0.733 0.085 152.821);
}