Nonstop for shadcn/ui

Nonstop is a shadcn/ui theme built around a purple primary color (#7f2687) with pink accents (#87265f). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#7f2687) on a neutral background (#080208).

Color palette

TokenLightDark
Background
#ffffffwhite
#080208black
Foreground
#150316black
#fdfcfdwhite
Card
#fcfcfcsnow
#0b030cblack
Card foreground
#100312black
#ffffffwhite
Popover
#ffffffwhite
#080208black
Popover foreground
#150316black
#fdfcfdwhite
Primary
#7f2687rebeccapurple
#7f2687rebeccapurple
Primary foreground
#f7e7f8lavenderblush
#f7e7f8lavenderblush
Secondary
#4f2687darkslateblue
#4f2687darkslateblue
Secondary foreground
#eee7f8lavender
#eee7f8lavender
Muted
#efecf4whitesmoke
#0f0b13black
Muted foreground
#595959dimgray
#a6a6a6darkgray
Accent
#87265fpurple
#87265fpurple
Accent foreground
#f8e7f1lavenderblush
#f8e7f1lavenderblush
Destructive
#b2400afirebrick
#ec540eorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7f2687rebeccapurple
#7f2687rebeccapurple

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.68:1AAA
Primary button6.99:1AA
Secondary button8.89:1AAA
Muted text5.98:1AA
Accent7.13:1AAA
Destructive5.78:1AA
Dark mode
Text on background20.06:1AAA
Text on card20.31:1AAA
Primary button6.99:1AA
Secondary button8.89:1AAA
Muted text7.99:1AAA
Accent7.13:1AAA
Destructive3.58:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.148 0.05 324.662);
  --muted: oklch(0.947 0.011 304.882);
  --muted-foreground: oklch(0.465 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.148 0.05 324.662);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.135 0.044 324.839);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.447 0.169 324.322);
  --primary-foreground: oklch(0.946 0.028 323.271);
  --secondary: oklch(0.381 0.153 297.741);
  --secondary-foreground: oklch(0.939 0.024 304.691);
  --accent: oklch(0.439 0.144 348.775);
  --accent-foreground: oklch(0.945 0.023 341.565);
  --destructive: oklch(0.525 0.159 40.059);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.169 324.322);
  --chart-1: oklch(0.447 0.169 324.322);
  --chart-2: oklch(0.381 0.153 297.741);
  --chart-3: oklch(0.439 0.144 348.775);
  --chart-4: oklch(0.404 0.163 297.62);
  --chart-5: oklch(0.449 0.175 324.318);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.107 0.026 324.95);
  --foreground: oklch(0.992 0.002 323.145);
  --muted: oklch(0.159 0.017 303.525);
  --muted-foreground: oklch(0.724 0 180);
  --popover: oklch(0.107 0.026 324.95);
  --popover-foreground: oklch(0.992 0.002 323.145);
  --card: oklch(0.123 0.03 324.751);
  --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.447 0.169 324.322);
  --primary-foreground: oklch(0.946 0.028 323.271);
  --secondary: oklch(0.381 0.153 297.741);
  --secondary-foreground: oklch(0.939 0.024 304.691);
  --accent: oklch(0.439 0.144 348.775);
  --accent-foreground: oklch(0.945 0.023 341.565);
  --destructive: oklch(0.645 0.199 39.589);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.447 0.169 324.322);
  --chart-1: oklch(0.447 0.169 324.322);
  --chart-2: oklch(0.381 0.153 297.741);
  --chart-3: oklch(0.439 0.144 348.775);
  --chart-4: oklch(0.404 0.163 297.62);
  --chart-5: oklch(0.449 0.175 324.318);
}