Admin is a shadcn/ui theme built around a muted cyan primary color (#a3afb2) with muted red accents (#b2a6a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted cyan primary (#a3afb2) on a cyan-tinted background (#05090a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05090ablack |
| Foreground | #030a0cblack | #f9fbfbghostwhite |
| Card | #ffffffwhite | #05090ablack |
| Card foreground | #030a0cblack | #f9fbfbghostwhite |
| Popover | #ffffffwhite | #05090ablack |
| Popover foreground | #030a0cblack | #f9fbfbghostwhite |
| Primary | #a3afb2darkgray | #a3afb2darkgray |
| Primary foreground | #101313black | #101313black |
| Secondary | #b2a6a3darkgray | #b2a6a3darkgray |
| Secondary foreground | #131110black | #131110black |
| Muted | #f0e7e5linen | #1a110fblack |
| Muted foreground | #655f5ddimgray | #a29c9adarkgray |
| Accent | #b2a6a3darkgray | #b2a6a3darkgray |
| Accent foreground | #131110black | #131110black |
| Destructive | #b42404firebrick | #fb4b23orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a3afb2darkgray | #a3afb2darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.95:1 | AAA |
| Text on card | 19.95:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.16:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.85:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.44:1 | AA Large |
Paste this into your globals.css to use Admin in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.138 0.015 211.063);
--muted: oklch(0.935 0.01 34.301);
--muted-foreground: oklch(0.489 0.008 34.298);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.138 0.015 211.063);
--card: oklch(1 0 180);
--card-foreground: oklch(0.138 0.015 211.063);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.747 0.014 214.381);
--primary-foreground: oklch(0.183 0.004 214.402);
--secondary: oklch(0.736 0.015 34.297);
--secondary-foreground: oklch(0.18 0.004 34.298);
--accent: oklch(0.736 0.015 34.297);
--accent-foreground: oklch(0.18 0.004 34.298);
--destructive: oklch(0.5 0.183 32.755);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.014 214.381);
--chart-1: oklch(0.747 0.014 214.381);
--chart-2: oklch(0.736 0.015 34.297);
--chart-3: oklch(0.736 0.015 34.297);
--chart-4: oklch(0.76 0.013 34.297);
--chart-5: oklch(0.749 0.019 214.412);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.135 0.008 211.87);
--foreground: oklch(0.986 0.002 214.323);
--muted: oklch(0.189 0.016 34.457);
--muted-foreground: oklch(0.697 0.008 34.301);
--popover: oklch(0.135 0.008 211.87);
--popover-foreground: oklch(0.986 0.002 214.323);
--card: oklch(0.135 0.008 211.87);
--card-foreground: oklch(0.986 0.002 214.323);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.747 0.014 214.381);
--primary-foreground: oklch(0.183 0.004 214.402);
--secondary: oklch(0.736 0.015 34.297);
--secondary-foreground: oklch(0.18 0.004 34.298);
--accent: oklch(0.736 0.015 34.297);
--accent-foreground: oklch(0.18 0.004 34.298);
--destructive: oklch(0.659 0.218 33.739);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.747 0.014 214.381);
--chart-1: oklch(0.747 0.014 214.381);
--chart-2: oklch(0.736 0.015 34.297);
--chart-3: oklch(0.736 0.015 34.297);
--chart-4: oklch(0.76 0.013 34.297);
--chart-5: oklch(0.749 0.019 214.412);
}