ethikis for shadcn/ui

ethikis is a shadcn/ui theme built around a vivid cyan primary color (#00b2ff) with vivid light cyan accents (#e7f7fe). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#00b2ff) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#000000black
#f5f8fawhitesmoke
Card
#ffffffwhite
#010304black
Card foreground
#000000black
#f5f8fawhitesmoke
Popover
#ffffffwhite
#010304black
Popover foreground
#000000black
#f5f8fawhitesmoke
Primary
#00b2ffdeepskyblue
#00b2ffdeepskyblue
Primary foreground
#002433black
#002433black
Secondary
#e7f7fealiceblue
#0d1f26black
Secondary foreground
#0b0d0eblack
#e3e7e8gainsboro
Muted
#dee8edlavender
#121c21black
Muted foreground
#5e6568dimgray
#979ea1darkgray
Accent
#e7f7fealiceblue
#0d1f26black
Accent foreground
#0b0d0eblack
#e3e7e8gainsboro
Destructive
#ff1500red
#e73718orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8ecedlavender
#1f2629darkslategray
Input
#e8ecedlavender
#1f2629darkslategray
Ring
#00b2ffdeepskyblue
#00b2ffdeepskyblue

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button6.80:1AA
Secondary button17.71:1AAA
Muted text4.78:1AA
Accent17.71:1AAA
Destructive3.91:1AA Large
Dark mode
Text on background19.37:1AAA
Text on card19.37:1AAA
Primary button6.80:1AA
Secondary button13.63:1AAA
Muted text6.34:1AA
Accent13.63:1AAA
Destructive4.23:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.926 0.012 225.134);
  --muted-foreground: oklch(0.503 0.01 225.216);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.94 0.005 225.04);
  --input: oklch(0.94 0.005 225.04);
  --primary: oklch(0.727 0.161 238.091);
  --primary-foreground: oklch(0.243 0.049 231.258);
  --secondary: oklch(0.966 0.019 225.221);
  --secondary-foreground: oklch(0.159 0.003 225.237);
  --accent: oklch(0.966 0.019 225.221);
  --accent-foreground: oklch(0.159 0.003 225.237);
  --destructive: oklch(0.632 0.254 30.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.727 0.161 238.091);
  --chart-1: oklch(0.727 0.161 238.091);
  --chart-2: oklch(0.966 0.019 225.221);
  --chart-3: oklch(0.966 0.019 225.221);
  --chart-4: oklch(0.986 0.008 225.071);
  --chart-5: oklch(0.732 0.164 238.572);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.093 0.007 220.457);
  --foreground: oklch(0.978 0.004 225.028);
  --muted: oklch(0.22 0.017 226.217);
  --muted-foreground: oklch(0.693 0.009 225.134);
  --popover: oklch(0.093 0.007 220.457);
  --popover-foreground: oklch(0.978 0.004 225.028);
  --card: oklch(0.093 0.007 220.457);
  --card-foreground: oklch(0.978 0.004 225.028);
  --border: oklch(0.262 0.011 225.576);
  --input: oklch(0.262 0.011 225.576);
  --primary: oklch(0.727 0.161 238.091);
  --primary-foreground: oklch(0.243 0.049 231.258);
  --secondary: oklch(0.226 0.028 227.763);
  --secondary-foreground: oklch(0.924 0.004 225.035);
  --accent: oklch(0.226 0.028 227.763);
  --accent-foreground: oklch(0.924 0.004 225.035);
  --destructive: oklch(0.608 0.215 32.154);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.727 0.161 238.091);
  --chart-1: oklch(0.727 0.161 238.091);
  --chart-2: oklch(0.226 0.028 227.763);
  --chart-3: oklch(0.226 0.028 227.763);
  --chart-4: oklch(0.262 0.035 228.141);
  --chart-5: oklch(0.732 0.164 238.572);
}