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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.87:1 | AAA |
| Text on card | 18.99:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.14:1 | AA |
| Muted text | 4.81:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 4.92:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.15:1 | AA |
| Secondary button | 6.14:1 | AA |
| Muted text | 6.94:1 | AA |
| Accent | 6.16:1 | AA |
| Destructive | 3.66:1 | AA Large |
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);
}