Ringed for shadcn/ui

Ringed is a shadcn/ui theme built around a blue primary color (#477790) with orange accents (#905f47). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#477790) on a blue-tinted background (#070b0d).

Color palette

TokenLightDark
Background
#ffffffwhite
#070b0dblack
Foreground
#030d11black
#f9fafbghostwhite
Card
#ffffffwhite
#070b0dblack
Card foreground
#030d11black
#f9fafbghostwhite
Popover
#ffffffwhite
#070b0dblack
Popover foreground
#030d11black
#f9fafbghostwhite
Primary
#477790steelblue
#477790steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#905f47sienna
#905f47sienna
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f4eeeclinen
#130e0bblack
Muted foreground
#4a403bdarkslategray
#c4bab5silver
Accent
#905f47sienna
#905f47sienna
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a24310saddlebrown
#eb7637tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#477790steelblue
#477790steelblue

Contrast

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

Light mode
Text on background19.63:1AAA
Text on card19.63:1AAA
Primary button4.86:1AA
Secondary button5.38:1AA
Muted text8.77:1AAA
Accent5.38:1AA
Destructive6.24:1AA
Dark mode
Text on background18.88:1AAA
Text on card18.88:1AAA
Primary button4.86:1AA
Secondary button5.38:1AA
Muted text10.07:1AAA
Accent5.38:1AA
Destructive7.20:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.149 0.019 226.606);
  --muted: oklch(0.954 0.007 48.664);
  --muted-foreground: oklch(0.379 0.016 48.283);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.149 0.019 226.606);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.149 0.019 226.606);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.545 0.065 231.376);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.532 0.073 47.247);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.532 0.073 47.247);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.505 0.139 43.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.545 0.065 231.376);
  --chart-1: oklch(0.545 0.065 231.376);
  --chart-2: oklch(0.532 0.073 47.247);
  --chart-3: oklch(0.532 0.073 47.247);
  --chart-4: oklch(0.559 0.078 47.233);
  --chart-5: oklch(0.548 0.07 231.712);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.147 0.009 227.917);
  --foreground: oklch(0.985 0.002 228.773);
  --muted: oklch(0.169 0.011 48.075);
  --muted-foreground: oklch(0.796 0.013 48.555);
  --popover: oklch(0.147 0.009 227.917);
  --popover-foreground: oklch(0.985 0.002 228.773);
  --card: oklch(0.147 0.009 227.917);
  --card-foreground: oklch(0.985 0.002 228.773);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.545 0.065 231.376);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.532 0.073 47.247);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.532 0.073 47.247);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.692 0.163 46.198);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.545 0.065 231.376);
  --chart-1: oklch(0.545 0.065 231.376);
  --chart-2: oklch(0.532 0.073 47.247);
  --chart-3: oklch(0.532 0.073 47.247);
  --chart-4: oklch(0.559 0.078 47.233);
  --chart-5: oklch(0.548 0.07 231.712);
}