Nonstop for shadcn/ui

Nonstop is a shadcn/ui theme built around a green primary color (#6f9027) with violet accents (#492790). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the green primary (#6f9027) on a green-tinted background (#0c1005).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0c1005black
Foreground
#0c1004black
#fdfdfcwhite
Card
#fbfcf8snow
#0f1406black
Card foreground
#090c03black
#ffffffwhite
Popover
#fbfcf8snow
#0f1406black
Popover foreground
#090c03black
#ffffffwhite
Primary
#6f9027olivedrab
#6f9027olivedrab
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#492790darkslateblue
#492790darkslateblue
Secondary foreground
#f3effbwhitesmoke
#f3effbwhitesmoke
Muted
#d5cfe2lightgrey
#231d30darkslategray
Muted foreground
#444346darkslategray
#bab9bcsilver
Accent
#492790darkslateblue
#492790darkslateblue
Accent foreground
#f3effbwhitesmoke
#f3effbwhitesmoke
Destructive
#651501maroon
#fe4010orangered
Destructive foreground
#feae9alightsalmon
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#6f9027olivedrab
#6f9027olivedrab

Contrast

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

Light mode
Text on background18.92:1AAA
Text on card19.07:1AAA
Primary button3.68:1AA Large
Secondary button9.36:1AAA
Muted text6.49:1AA
Accent9.36:1AAA
Destructive7.05:1AAA
Dark mode
Text on background18.93:1AAA
Text on card18.75:1AAA
Primary button3.68:1AA Large
Secondary button9.36:1AAA
Muted text8.36:1AAA
Accent9.36:1AAA
Destructive3.53:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.002 120.808);
  --foreground: oklch(0.166 0.027 122.3);
  --muted: oklch(0.866 0.027 300.256);
  --muted-foreground: oklch(0.386 0.005 300.566);
  --popover: oklch(0.988 0.005 120.848);
  --popover-foreground: oklch(0.149 0.023 120.922);
  --card: oklch(0.988 0.005 120.848);
  --card-foreground: oklch(0.149 0.023 120.922);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.608 0.135 125.633);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.384 0.161 291.408);
  --secondary-foreground: oklch(0.958 0.016 300.494);
  --accent: oklch(0.384 0.161 291.408);
  --accent-foreground: oklch(0.958 0.016 300.494);
  --destructive: oklch(0.335 0.117 34.806);
  --destructive-foreground: oklch(0.823 0.1 34.636);
  --ring: oklch(0.608 0.135 125.633);
  --chart-1: oklch(0.608 0.135 125.633);
  --chart-2: oklch(0.384 0.161 291.408);
  --chart-3: oklch(0.384 0.161 291.408);
  --chart-4: oklch(0.405 0.172 291.265);
  --chart-5: oklch(0.615 0.14 125.866);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.024 122.142);
  --foreground: oklch(0.994 0.002 120.809);
  --muted: oklch(0.246 0.037 298.224);
  --muted-foreground: oklch(0.787 0.004 300.685);
  --popover: oklch(0.18 0.027 122.978);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.18 0.027 122.978);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.608 0.135 125.633);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.384 0.161 291.408);
  --secondary-foreground: oklch(0.958 0.016 300.494);
  --accent: oklch(0.384 0.161 291.408);
  --accent-foreground: oklch(0.958 0.016 300.494);
  --destructive: oklch(0.654 0.231 33.605);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.608 0.135 125.633);
  --chart-1: oklch(0.608 0.135 125.633);
  --chart-2: oklch(0.384 0.161 291.408);
  --chart-3: oklch(0.384 0.161 291.408);
  --chart-4: oklch(0.405 0.172 291.265);
  --chart-5: oklch(0.615 0.14 125.866);
}