Curvy for shadcn/ui

Curvy is a shadcn/ui theme built around a cyan primary color (#286a80) with blue accents (#283e80). The light mode uses a neutral background (#f7fbfd). Dark mode keeps the cyan primary (#286a80) on a neutral background (#030607).

Color palette

TokenLightDark
Background
#f7fbfdghostwhite
#030607black
Foreground
#010304black
#fcfdfdwhite
Card
#f3f9fbaliceblue
#04090bblack
Card foreground
#000000black
#ffffffwhite
Popover
#f3f9fbaliceblue
#04090bblack
Popover foreground
#000000black
#ffffffwhite
Primary
#286a80teal
#286a80teal
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#28806aseagreen
#28806aseagreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e6efedlavender
#101917black
Muted foreground
#4c6760dimgray
#98b3acdarkgray
Accent
#283e80darkslateblue
#283e80darkslateblue
Accent foreground
#e4e9f6lavender
#e4e9f6lavender
Destructive
#620f09maroon
#eb3124crimson
Destructive foreground
#f7aca6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#286a80teal
#286a80teal

Contrast

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

Light mode
Text on background19.88:1AAA
Text on card19.81:1AAA
Primary button6.05:1AA
Secondary button4.79:1AA
Muted text5.25:1AA
Accent8.23:1AAA
Destructive7.16:1AAA
Dark mode
Text on background19.92:1AAA
Text on card19.97:1AAA
Primary button6.05:1AA
Secondary button4.79:1AA
Muted text8.00:1AAA
Accent8.23:1AAA
Destructive4.21:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.986 0.004 219.54);
  --foreground: oklch(0.095 0.011 214.21);
  --muted: oklch(0.945 0.01 179.562);
  --muted-foreground: oklch(0.489 0.033 177.742);
  --popover: oklch(0.979 0.007 219.558);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.979 0.007 219.558);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.492 0.074 223.502);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.542 0.089 172.87);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.385 0.114 267.068);
  --accent-foreground: oklch(0.933 0.019 271.205);
  --destructive: oklch(0.323 0.117 29.326);
  --destructive-foreground: oklch(0.814 0.089 23.761);
  --ring: oklch(0.492 0.074 223.502);
  --chart-1: oklch(0.492 0.074 223.502);
  --chart-2: oklch(0.542 0.089 172.87);
  --chart-3: oklch(0.385 0.114 267.068);
  --chart-4: oklch(0.577 0.096 172.79);
  --chart-5: oklch(0.496 0.077 223.884);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.01 215.361);
  --foreground: oklch(0.993 0.001 219.515);
  --muted: oklch(0.203 0.014 177.73);
  --muted-foreground: oklch(0.745 0.031 178.631);
  --popover: oklch(0.136 0.012 215.753);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.136 0.012 215.753);
  --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.492 0.074 223.502);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.542 0.089 172.87);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.385 0.114 267.068);
  --accent-foreground: oklch(0.933 0.019 271.205);
  --destructive: oklch(0.61 0.222 29.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.492 0.074 223.502);
  --chart-1: oklch(0.492 0.074 223.502);
  --chart-2: oklch(0.542 0.089 172.87);
  --chart-3: oklch(0.385 0.114 267.068);
  --chart-4: oklch(0.577 0.096 172.79);
  --chart-5: oklch(0.496 0.077 223.884);
}