Database is a shadcn/ui theme built around a muted violet primary color (#a99fb2) with muted light violet accents (#cfc3da). The light mode uses a neutral background (#faf8fc). Dark mode keeps the muted violet primary (#a99fb2) on a violet-tinted background (#0a060f).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #0a060fblack |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #faf8fcghostwhite | #0a060fblack |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #faf8fcghostwhite | #0a060fblack |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #a99fb2darkgray | #a99fb2darkgray |
| Primary foreground | #0f0e11black | #0f0e11black |
| Secondary | #e6e1ealavender | #1a141fblack |
| Secondary foreground | #4d3f5adarkslategray | #b4a3c2darkgray |
| Muted | #f0edf3whitesmoke | #0f0c12black |
| Muted foreground | #453e4cdarkslategray | #bbb3c1silver |
| Accent | #cfc3dathistle | #2f2239darkslategray |
| Accent foreground | #362942darkslategray | #c8b9d5thistle |
| Destructive | #752e0bsaddlebrown | #eb6d2dchocolate |
| Destructive foreground | #f8ceb9peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a99fb2darkgray | #a99fb2darkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.87:1 | AAA |
| Text on card | 19.87:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.51:1 | AAA |
| Muted text | 8.83:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.57:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 9.52:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Database in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 309.724);
--foreground: oklch(0 0 0);
--muted: oklch(0.95 0.008 309.697);
--muted-foreground: oklch(0.376 0.025 309.128);
--popover: oklch(0.981 0.006 309.724);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.006 309.724);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.716 0.03 309.377);
--primary-foreground: oklch(0.166 0.008 309.337);
--secondary: oklch(0.916 0.013 309.648);
--secondary-foreground: oklch(0.395 0.046 308.611);
--accent: oklch(0.834 0.035 309.374);
--accent-foreground: oklch(0.307 0.048 308.184);
--destructive: oklch(0.397 0.109 42.945);
--destructive-foreground: oklch(0.883 0.056 48.066);
--ring: oklch(0.716 0.03 309.377);
--chart-1: oklch(0.716 0.03 309.377);
--chart-2: oklch(0.916 0.013 309.648);
--chart-3: oklch(0.834 0.035 309.374);
--chart-4: oklch(0.942 0.009 309.692);
--chart-5: oklch(0.712 0.038 309.263);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.134 0.022 309.604);
--foreground: oklch(0.992 0.002 309.77);
--muted: oklch(0.163 0.013 308.995);
--muted-foreground: oklch(0.778 0.021 309.519);
--popover: oklch(0.134 0.022 309.604);
--popover-foreground: oklch(0.992 0.002 309.77);
--card: oklch(0.134 0.022 309.604);
--card-foreground: oklch(0.992 0.002 309.77);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.716 0.03 309.377);
--primary-foreground: oklch(0.166 0.008 309.337);
--secondary: oklch(0.204 0.021 308.74);
--secondary-foreground: oklch(0.74 0.047 309.158);
--accent: oklch(0.279 0.044 308.172);
--accent-foreground: oklch(0.807 0.042 309.269);
--destructive: oklch(0.677 0.174 43.981);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.716 0.03 309.377);
--chart-1: oklch(0.716 0.03 309.377);
--chart-2: oklch(0.204 0.021 308.74);
--chart-3: oklch(0.279 0.044 308.172);
--chart-4: oklch(0.235 0.027 308.639);
--chart-5: oklch(0.712 0.038 309.263);
}