Omega for shadcn/ui

Omega is a shadcn/ui theme built around a deep green primary color (#070e06) with deep red accents (#0e0607). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#070e06) on a neutral background (#030703).

Color palette

TokenLightDark
Background
#ffffffwhite
#030703black
Foreground
#010401black
#f6f9f6whitesmoke
Card
#ffffffwhite
#030703black
Card foreground
#010401black
#f6f9f6whitesmoke
Popover
#ffffffwhite
#030703black
Popover foreground
#010401black
#f6f9f6whitesmoke
Primary
#070e06black
#070e06black
Primary foreground
#85c581darkseagreen
#85c581darkseagreen
Secondary
#06070eblack
#06070eblack
Secondary foreground
#c7c9e5thistle
#c7c9e5thistle
Muted
#d9d9e3gainsboro
#1c1d26black
Muted foreground
#515267dimgray
#9899aedarkgray
Accent
#0e0607black
#0e0607black
Accent foreground
#c58185rosybrown
#c58185rosybrown
Destructive
#9e1800darkred
#ff330forangered
Destructive foreground
#ffd8d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#070e06black
#070e06black

Contrast

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

Light mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button9.58:1AAA
Secondary button12.36:1AAA
Muted text5.45:1AA
Accent6.52:1AA
Destructive6.18:1AA
Dark mode
Text on background19.10:1AAA
Text on card19.10:1AAA
Primary button9.58:1AAA
Secondary button12.36:1AAA
Muted text5.99:1AA
Accent6.52:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.097 0.02 142.344);
  --muted: oklch(0.889 0.013 283.718);
  --muted-foreground: oklch(0.445 0.034 282.546);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.097 0.02 142.344);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.097 0.02 142.344);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.153 0.02 143.066);
  --primary-foreground: oklch(0.763 0.116 143.197);
  --secondary: oklch(0.131 0.017 280.993);
  --secondary-foreground: oklch(0.843 0.04 283.118);
  --accent: oklch(0.137 0.015 15.218);
  --accent-foreground: oklch(0.675 0.084 16.278);
  --destructive: oklch(0.45 0.171 31.899);
  --destructive-foreground: oklch(0.913 0.045 29.72);
  --ring: oklch(0.153 0.02 143.066);
  --chart-1: oklch(0.153 0.02 143.066);
  --chart-2: oklch(0.131 0.017 280.993);
  --chart-3: oklch(0.137 0.015 15.218);
  --chart-4: oklch(0.16 0.026 280.664);
  --chart-5: oklch(0.153 0.022 142.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.016 142.991);
  --foreground: oklch(0.979 0.005 144.103);
  --muted: oklch(0.233 0.018 282.526);
  --muted-foreground: oklch(0.69 0.031 283.174);
  --popover: oklch(0.12 0.016 142.991);
  --popover-foreground: oklch(0.979 0.005 144.103);
  --card: oklch(0.12 0.016 142.991);
  --card-foreground: oklch(0.979 0.005 144.103);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.153 0.02 143.066);
  --primary-foreground: oklch(0.763 0.116 143.197);
  --secondary: oklch(0.131 0.017 280.993);
  --secondary-foreground: oklch(0.843 0.04 283.118);
  --accent: oklch(0.137 0.015 15.218);
  --accent-foreground: oklch(0.675 0.084 16.278);
  --destructive: oklch(0.647 0.24 31.769);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.153 0.02 143.066);
  --chart-1: oklch(0.153 0.02 143.066);
  --chart-2: oklch(0.131 0.017 280.993);
  --chart-3: oklch(0.137 0.015 15.218);
  --chart-4: oklch(0.16 0.026 280.664);
  --chart-5: oklch(0.153 0.022 142.977);
}