Ring for shadcn/ui

Ring is a shadcn/ui theme built around a deep cyan primary color (#1b4650) with deep blue accents (#1b2b50). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep cyan primary (#1b4650) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#031216black
#ffffffwhite
Card
#fcfcfcsnow
#030303black
Card foreground
#030f12black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#031216black
#ffffffwhite
Primary
#1b4650darkslategray
#1b4650darkslategray
Primary foreground
#b6dde7powderblue
#b6dde7powderblue
Secondary
#1b5040darkslategray
#1b5040darkslategray
Secondary foreground
#b6e7d8powderblue
#b6e7d8powderblue
Muted
#e1e5e4gainsboro
#1a1e1dblack
Muted foreground
#5e6462dimgray
#9ba19fdarkgray
Accent
#1b2b50midnightblue
#1b2b50midnightblue
Accent foreground
#b6c5e7lightsteelblue
#b6c5e7lightsteelblue
Destructive
#c8390efirebrick
#e54210orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b4650darkslategray
#1b4650darkslategray

Contrast

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

Light mode
Text on background19.05:1AAA
Text on card19.00:1AAA
Primary button7.13:1AAA
Secondary button6.76:1AA
Muted text4.75:1AA
Accent8.05:1AAA
Destructive5.16:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.13:1AAA
Secondary button6.76:1AA
Muted text6.40:1AA
Accent8.05:1AAA
Destructive4.11:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.172 0.024 214.518);
  --muted: oklch(0.918 0.005 176.515);
  --muted-foreground: oklch(0.497 0.008 176.2);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.172 0.024 214.518);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.156 0.021 213.056);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.368 0.05 216.822);
  --primary-foreground: oklch(0.873 0.043 214.589);
  --secondary: oklch(0.392 0.063 169.995);
  --secondary-foreground: oklch(0.889 0.054 174.761);
  --accent: oklch(0.296 0.072 264.898);
  --accent-foreground: oklch(0.823 0.05 266.956);
  --destructive: oklch(0.556 0.186 35.374);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.368 0.05 216.822);
  --chart-1: oklch(0.368 0.05 216.822);
  --chart-2: oklch(0.392 0.063 169.995);
  --chart-3: oklch(0.296 0.072 264.898);
  --chart-4: oklch(0.429 0.07 169.824);
  --chart-5: oklch(0.37 0.052 217.097);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.231 0.006 175.845);
  --muted-foreground: oklch(0.704 0.007 176.362);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --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.368 0.05 216.822);
  --primary-foreground: oklch(0.873 0.043 214.589);
  --secondary: oklch(0.392 0.063 169.995);
  --secondary-foreground: oklch(0.889 0.054 174.761);
  --accent: oklch(0.296 0.072 264.898);
  --accent-foreground: oklch(0.823 0.05 266.956);
  --destructive: oklch(0.613 0.207 35.237);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.368 0.05 216.822);
  --chart-1: oklch(0.368 0.05 216.822);
  --chart-2: oklch(0.392 0.063 169.995);
  --chart-3: oklch(0.296 0.072 264.898);
  --chart-4: oklch(0.429 0.07 169.824);
  --chart-5: oklch(0.37 0.052 217.097);
}