Dining is a shadcn/ui theme built around a muted violet primary color (#514059) with muted purple accents (#594055). The light mode uses a neutral background (#fbf7fc). Dark mode keeps the muted violet primary (#514059) on a violet-tinted background (#0c0510).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fcghostwhite | #0c0510black |
| Foreground | #030104black | #ffffffwhite |
| Card | #fbf7fcghostwhite | #0c0510black |
| Card foreground | #030104black | #ffffffwhite |
| Popover | #fbf7fcghostwhite | #0c0510black |
| Popover foreground | #030104black | #ffffffwhite |
| Primary | #514059darkslategray | #514059darkslategray |
| Primary foreground | #e7e1ealavender | #e7e1ealavender |
| Secondary | #444059darkslategray | #444059darkslategray |
| Secondary foreground | #e3e1eagainsboro | #e3e1eagainsboro |
| Muted | #eae9eclavender | #131316black |
| Muted foreground | #3c3a45darkslategray | #bbbac5silver |
| Accent | #594055darkslategray | #594055darkslategray |
| Accent foreground | #eae1e8gainsboro | #eae1e8gainsboro |
| Destructive | #c03102firebrick | #fd5f2btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #514059darkslategray | #514059darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.65:1 | AAA |
| Text on card | 19.65:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 9.22:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 5.69:1 | AA |
| Text on background | 20.12:1 | AAA |
| Text on card | 20.12:1 | AAA |
| Primary button | 7.33:1 | AAA |
| Secondary button | 7.61:1 | AAA |
| Muted text | 9.65:1 | AAA |
| Accent | 7.17:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Dining in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.008 314.789);
--foreground: oklch(0.08 0.023 317.273);
--muted: oklch(0.936 0.004 293.989);
--muted-foreground: oklch(0.355 0.02 293.007);
--popover: oklch(0.981 0.008 314.789);
--popover-foreground: oklch(0.08 0.023 317.273);
--card: oklch(0.981 0.008 314.789);
--card-foreground: oklch(0.08 0.023 317.273);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.399 0.045 314.27);
--primary-foreground: oklch(0.918 0.012 314.761);
--secondary: oklch(0.387 0.041 291.987);
--secondary-foreground: oklch(0.914 0.011 293.84);
--accent: oklch(0.407 0.046 332.28);
--accent-foreground: oklch(0.919 0.013 331.006);
--destructive: oklch(0.533 0.185 35.179);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.399 0.045 314.27);
--chart-1: oklch(0.399 0.045 314.27);
--chart-2: oklch(0.387 0.041 291.987);
--chart-3: oklch(0.407 0.046 332.28);
--chart-4: oklch(0.412 0.045 291.952);
--chart-5: oklch(0.396 0.054 314.155);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.029 315.091);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.006 293.491);
--muted-foreground: oklch(0.792 0.016 293.684);
--popover: oklch(0.133 0.029 315.091);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.133 0.029 315.091);
--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.399 0.045 314.27);
--primary-foreground: oklch(0.918 0.012 314.761);
--secondary: oklch(0.387 0.041 291.987);
--secondary-foreground: oklch(0.914 0.011 293.84);
--accent: oklch(0.407 0.046 332.28);
--accent-foreground: oklch(0.919 0.013 331.006);
--destructive: oklch(0.686 0.202 37.632);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.399 0.045 314.27);
--chart-1: oklch(0.399 0.045 314.27);
--chart-2: oklch(0.387 0.041 291.987);
--chart-3: oklch(0.407 0.046 332.28);
--chart-4: oklch(0.412 0.045 291.952);
--chart-5: oklch(0.396 0.054 314.155);
}