Bony is a shadcn/ui theme built around a vivid light violet primary color (#dfd2fe) with muted light violet accents (#c1bccd). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the vivid light violet primary (#dfd2fe) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #000000black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f9f8fcghostwhite | #000000black |
| Card foreground | #000000black | #fcfcfdwhite |
| Popover | #f9f8fcghostwhite | #000000black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #dfd2felavender | #dfd2felavender |
| Primary foreground | #30029cindigo | #30029cindigo |
| Secondary | #d2d1d7lightgrey | #2f293ddarkslategray |
| Secondary foreground | #39373fdarkslategray | #c8c2d6thistle |
| Muted | #e6e4eclavender | #15131bblack |
| Muted foreground | #5b5b5ddimgray | #a3a2a4darkgray |
| Accent | #c1bccdsilver | #403659darkslategray |
| Accent foreground | #292532darkslategray | #ddd9e8gainsboro |
| Destructive | #af2512firebrick | #eb5642tomato |
| Destructive foreground | #fef7f6snow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dfd2felavender | #dfd2felavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.81:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 5.37:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.39:1 | AA |
| Text on background | 20.48:1 | AAA |
| Text on card | 20.48:1 | AAA |
| Primary button | 9.15:1 | AAA |
| Secondary button | 8.08:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 5.93:1 | AA |
Paste this into your globals.css to use Bony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 299.931);
--foreground: oklch(0 0 0);
--muted: oklch(0.922 0.012 299.819);
--muted-foreground: oklch(0.472 0.003 299.931);
--popover: oklch(0.98 0.006 299.931);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.006 299.931);
--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.888 0.062 298.852);
--primary-foreground: oklch(0.34 0.204 279.797);
--secondary: oklch(0.863 0.009 299.872);
--secondary-foreground: oklch(0.341 0.015 299.318);
--accent: oklch(0.804 0.025 299.511);
--accent-foreground: oklch(0.274 0.024 298.523);
--destructive: oklch(0.493 0.177 31.039);
--destructive-foreground: oklch(0.981 0.008 26.495);
--ring: oklch(0.888 0.062 298.852);
--chart-1: oklch(0.888 0.062 298.852);
--chart-2: oklch(0.863 0.009 299.872);
--chart-3: oklch(0.804 0.025 299.511);
--chart-4: oklch(0.887 0.007 299.906);
--chart-5: oklch(0.887 0.064 298.812);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 300.006);
--muted: oklch(0.192 0.018 298.455);
--muted-foreground: oklch(0.714 0.003 299.975);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 300.006);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 300.006);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.888 0.062 298.852);
--primary-foreground: oklch(0.34 0.204 279.797);
--secondary: oklch(0.296 0.037 297.858);
--secondary-foreground: oklch(0.825 0.029 299.446);
--accent: oklch(0.359 0.062 296.988);
--accent-foreground: oklch(0.893 0.021 299.637);
--destructive: oklch(0.649 0.188 30.396);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.888 0.062 298.852);
--chart-1: oklch(0.888 0.062 298.852);
--chart-2: oklch(0.296 0.037 297.858);
--chart-3: oklch(0.359 0.062 296.988);
--chart-4: oklch(0.323 0.042 297.785);
--chart-5: oklch(0.887 0.064 298.812);
}