Continuity for shadcn/ui

Continuity is a shadcn/ui theme built around a green primary color (#25743d) with muted light green accents (#d3d9d5). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#25743d) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#050f08black
#ffffffwhite
Card
#fcfcfcsnow
#030704black
Card foreground
#040b06black
#ffffffwhite
Popover
#fcfcfcsnow
#030704black
Popover foreground
#040b06black
#ffffffwhite
Primary
#25743dforestgreen
#25743dforestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#d3d9d5lightgrey
#1f2822black
Secondary foreground
#38423bdarkslategray
#b4c5b9silver
Muted
#e1e5e2gainsboro
#1a1e1bblack
Muted foreground
#587460dimgray
#8ba793darkseagreen
Accent
#d3d9d5lightgrey
#1f2822black
Accent foreground
#38423bdarkslategray
#b4c5b9silver
Destructive
#ae430asaddlebrown
#f26418chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#25743dforestgreen
#25743dforestgreen

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.46:1AAA
Primary button5.74:1AA
Secondary button7.31:1AAA
Muted text4.04:1AA Large
Accent7.31:1AAA
Destructive5.82:1AA
Dark mode
Text on background20.61:1AAA
Text on card20.24:1AAA
Primary button5.74:1AA
Secondary button8.36:1AAA
Muted text6.44:1AA
Accent8.36:1AAA
Destructive6.59:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.156 0.023 154.435);
  --muted: oklch(0.918 0.006 155.736);
  --muted-foreground: oklch(0.531 0.046 154.108);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.14 0.019 155.342);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.14 0.019 155.342);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.498 0.116 149.795);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.88 0.009 155.665);
  --secondary-foreground: oklch(0.368 0.017 154.939);
  --accent: oklch(0.88 0.009 155.665);
  --accent-foreground: oklch(0.368 0.017 154.939);
  --destructive: oklch(0.522 0.151 42.449);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.498 0.116 149.795);
  --chart-1: oklch(0.498 0.116 149.795);
  --chart-2: oklch(0.88 0.009 155.665);
  --chart-3: oklch(0.88 0.009 155.665);
  --chart-4: oklch(0.903 0.008 155.708);
  --chart-5: oklch(0.503 0.121 149.482);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.011 155.511);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.23 0.009 155.108);
  --muted-foreground: oklch(0.702 0.043 154.647);
  --popover: oklch(0.121 0.014 155.511);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.121 0.014 155.511);
  --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.498 0.116 149.795);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.267 0.018 154.534);
  --secondary-foreground: oklch(0.808 0.025 155.262);
  --accent: oklch(0.267 0.018 154.534);
  --accent-foreground: oklch(0.808 0.025 155.262);
  --destructive: oklch(0.673 0.191 43.041);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.498 0.116 149.795);
  --chart-1: oklch(0.498 0.116 149.795);
  --chart-2: oklch(0.267 0.018 154.534);
  --chart-3: oklch(0.267 0.018 154.534);
  --chart-4: oklch(0.3 0.021 154.464);
  --chart-5: oklch(0.503 0.121 149.482);
}