Ecliptic for shadcn/ui

Ecliptic is a shadcn/ui theme built around a light green primary color (#e0fae8) with light orange accents (#fae8e0). The light mode uses a neutral background (#ffffff). Dark mode keeps the light green primary (#e0fae8) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#030d06black
#f5faf6whitesmoke
Card
#fcfcfcsnow
#020804black
Card foreground
#020804black
#f8fbf9mintcream
Popover
#fcfcfcsnow
#020804black
Popover foreground
#020804black
#f8fbf9mintcream
Primary
#e0fae8honeydew
#e0fae8honeydew
Primary foreground
#0a3918darkgreen
#0a3918darkgreen
Secondary
#e8e0falavender
#e8e0falavender
Secondary foreground
#3c1890indigo
#3c1890indigo
Muted
#e8e3f2lavender
#110d1cblack
Muted foreground
#5d5572dimgray
#968daadarkgray
Accent
#fae8e0mistyrose
#fae8e0mistyrose
Accent foreground
#903c18saddlebrown
#903c18saddlebrown
Destructive
#c14b0bchocolate
#f16113chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e0fae8honeydew
#e0fae8honeydew

Contrast

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

Light mode
Text on background19.73:1AAA
Text on card19.77:1AAA
Primary button11.79:1AAA
Secondary button9.57:1AAA
Muted text5.55:1AA
Accent6.21:1AA
Destructive4.92:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.40:1AAA
Primary button11.79:1AAA
Secondary button9.57:1AAA
Muted text6.08:1AA
Accent6.21:1AA
Destructive6.45:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.025 155.04);
  --muted: oklch(0.924 0.021 299.659);
  --muted-foreground: oklch(0.468 0.049 298.252);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.124 0.022 155.32);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.022 155.32);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.961 0.035 155.149);
  --primary-foreground: oklch(0.303 0.076 149.072);
  --secondary: oklch(0.922 0.035 299.398);
  --secondary-foreground: oklch(0.353 0.177 286.88);
  --accent: oklch(0.943 0.022 44.757);
  --accent-foreground: oklch(0.465 0.123 41.504);
  --destructive: oklch(0.564 0.165 42.236);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.961 0.035 155.149);
  --chart-1: oklch(0.961 0.035 155.149);
  --chart-2: oklch(0.922 0.035 299.398);
  --chart-3: oklch(0.943 0.022 44.757);
  --chart-4: oklch(0.955 0.02 299.689);
  --chart-5: oklch(0.962 0.037 155.118);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.014 155.415);
  --foreground: oklch(0.98 0.007 155.739);
  --muted: oklch(0.173 0.031 296.806);
  --muted-foreground: oklch(0.66 0.045 298.887);
  --popover: oklch(0.123 0.018 155.415);
  --popover-foreground: oklch(0.987 0.004 155.783);
  --card: oklch(0.123 0.018 155.415);
  --card-foreground: oklch(0.987 0.004 155.783);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.961 0.035 155.149);
  --primary-foreground: oklch(0.303 0.076 149.072);
  --secondary: oklch(0.922 0.035 299.398);
  --secondary-foreground: oklch(0.353 0.177 286.88);
  --accent: oklch(0.943 0.022 44.757);
  --accent-foreground: oklch(0.465 0.123 41.504);
  --destructive: oklch(0.668 0.194 42.454);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.961 0.035 155.149);
  --chart-1: oklch(0.961 0.035 155.149);
  --chart-2: oklch(0.922 0.035 299.398);
  --chart-3: oklch(0.943 0.022 44.757);
  --chart-4: oklch(0.955 0.02 299.689);
  --chart-5: oklch(0.962 0.037 155.118);
}