Casino is a shadcn/ui theme built around a deep purple primary color (#411a42) with muted light purple accents (#dbc7db). The light mode uses a neutral background (#fefbfe). Dark mode keeps the deep purple primary (#411a42) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #000000black |
| Foreground | #040104black | #fdfcfdwhite |
| Card | #fefbfewhite | #000000black |
| Card foreground | #040104black | #fdfcfdwhite |
| Popover | #fefbfewhite | #000000black |
| Popover foreground | #040104black | #fdfcfdwhite |
| Primary | #411a42darkslategray | #411a42darkslategray |
| Primary foreground | #dfaee0plum | #dfaee0plum |
| Secondary | #e9e2e9lavender | #1a141ablack |
| Secondary foreground | #574257darkslategray | #bba4bcdarkgray |
| Muted | #f6eef6whitesmoke | #100911black |
| Muted foreground | #5f535fdimgray | #aca0acdarkgray |
| Accent | #dbc7dbthistle | #2e1e2edarkslategray |
| Accent foreground | #442c44darkslategray | #ccb2cdthistle |
| Destructive | #6a1d0bmaroon | #eb5d3dtomato |
| Destructive foreground | #f7bdb1lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #411a42darkslategray | #411a42darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.11:1 | AAA |
| Muted text | 6.41:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 7.18:1 | AAA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 7.76:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.15:1 | AA |
Paste this into your globals.css to use Casino in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.006 325.142);
--foreground: oklch(0.085 0.023 326.924);
--muted: oklch(0.958 0.013 325.194);
--muted-foreground: oklch(0.459 0.025 325.475);
--popover: oklch(0.991 0.006 325.142);
--popover-foreground: oklch(0.085 0.023 326.924);
--card: oklch(0.991 0.006 325.142);
--card-foreground: oklch(0.085 0.023 326.924);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.294 0.086 326.848);
--primary-foreground: oklch(0.811 0.086 325.804);
--secondary: oklch(0.92 0.012 325.192);
--secondary-foreground: oklch(0.409 0.044 325.818);
--accent: oklch(0.852 0.035 325.382);
--accent-foreground: oklch(0.332 0.053 326.136);
--destructive: oklch(0.354 0.113 33.9);
--destructive-foreground: oklch(0.848 0.069 32.915);
--ring: oklch(0.294 0.086 326.848);
--chart-1: oklch(0.294 0.086 326.848);
--chart-2: oklch(0.92 0.012 325.192);
--chart-3: oklch(0.852 0.035 325.382);
--chart-4: oklch(0.944 0.008 325.163);
--chart-5: oklch(0.294 0.091 326.926);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.003 325.119);
--muted: oklch(0.154 0.02 325.963);
--muted-foreground: oklch(0.718 0.023 325.317);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.003 325.119);
--card: oklch(0 0 0);
--card-foreground: oklch(0.992 0.003 325.119);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.294 0.086 326.848);
--primary-foreground: oklch(0.811 0.086 325.804);
--secondary: oklch(0.201 0.017 325.671);
--secondary-foreground: oklch(0.747 0.043 325.486);
--accent: oklch(0.263 0.037 326.016);
--accent-foreground: oklch(0.794 0.047 325.503);
--destructive: oklch(0.657 0.182 34.153);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.294 0.086 326.848);
--chart-1: oklch(0.294 0.086 326.848);
--chart-2: oklch(0.201 0.017 325.671);
--chart-3: oklch(0.263 0.037 326.016);
--chart-4: oklch(0.233 0.022 325.728);
--chart-5: oklch(0.294 0.091 326.926);
}