Ringed for shadcn/ui

Ringed is a shadcn/ui theme built around a neutral gray primary color (#878c8a) with neutral gray accents (#878c8c). The light mode uses a neutral background (#fbfefc). Dark mode keeps the neutral gray primary (#878c8a) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefcwhite
#000000black
Foreground
#02120ablack
#fcfdfcwhite
Card
#f8fcfamintcream
#030303black
Card foreground
#020e07black
#ffffffwhite
Popover
#fbfefcwhite
#000000black
Popover foreground
#02120ablack
#fcfdfcwhite
Primary
#878c8agray
#878c8agray
Primary foreground
#000000black
#000000black
Secondary
#888c87gray
#888c87gray
Secondary foreground
#000000black
#000000black
Muted
#eef1eewhitesmoke
#0e110eblack
Muted foreground
#5f6d5fdimgray
#92a092darkseagreen
Accent
#878c8cgray
#878c8cgray
Accent foreground
#000000black
#000000black
Destructive
#e01406red
#fa3c2etomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#878c8agray
#878c8agray

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.99:1AAA
Primary button6.15:1AA
Secondary button6.14:1AA
Muted text4.81:1AA
Accent6.16:1AA
Destructive4.92:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.67:1AAA
Primary button6.15:1AA
Secondary button6.14:1AA
Muted text6.94:1AA
Accent6.16:1AA
Destructive3.66:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 163.374);
  --foreground: oklch(0.164 0.03 160.835);
  --muted: oklch(0.956 0.005 144.587);
  --muted-foreground: oklch(0.519 0.028 144.268);
  --popover: oklch(0.994 0.003 163.374);
  --popover-foreground: oklch(0.164 0.03 160.835);
  --card: oklch(0.987 0.006 163.302);
  --card-foreground: oklch(0.146 0.026 162.794);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.636 0.007 163.18);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.635 0.009 144.53);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.636 0.006 194.628);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.574 0.229 29.775);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.636 0.007 163.18);
  --chart-1: oklch(0.636 0.007 163.18);
  --chart-2: oklch(0.635 0.009 144.53);
  --chart-3: oklch(0.636 0.006 194.628);
  --chart-4: oklch(0.66 0.008 144.54);
  --chart-5: oklch(0.64 0.016 162.782);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 163.403);
  --muted: oklch(0.172 0.007 144.351);
  --muted-foreground: oklch(0.691 0.026 144.375);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 163.403);
  --card: oklch(0.092 0 180);
  --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.636 0.007 163.18);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.635 0.009 144.53);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.636 0.006 194.628);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.645 0.227 29.119);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.636 0.007 163.18);
  --chart-1: oklch(0.636 0.007 163.18);
  --chart-2: oklch(0.635 0.009 144.53);
  --chart-3: oklch(0.636 0.006 194.628);
  --chart-4: oklch(0.66 0.008 144.54);
  --chart-5: oklch(0.64 0.016 162.782);
}