Tenant is a shadcn/ui theme built around a violet primary color (#ad83e7) with green accents (#83e7ad). The light mode uses a neutral background (#ffffff). Dark mode keeps the violet primary (#ad83e7) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #07030dblack | #ffffffwhite |
| Card | #fcfcfcsnow | #050307black |
| Card foreground | #050208black | #ffffffwhite |
| Popover | #fcfcfcsnow | #050307black |
| Popover foreground | #050208black | #ffffffwhite |
| Primary | #ad83e7mediumpurple | #ad83e7mediumpurple |
| Primary foreground | #19092fblack | #19092fblack |
| Secondary | #e7ad83burlywood | #e7ad83burlywood |
| Secondary foreground | #2f1909black | #2f1909black |
| Muted | #e2d7cfgainsboro | #30251ddarkslategray |
| Muted foreground | #4b413adarkslategray | #c5bbb4silver |
| Accent | #83e7adlightgreen | #83e7adlightgreen |
| Accent foreground | #092f19black | #092f19black |
| Destructive | #b90704firebrick | #e60805red |
| Destructive foreground | #fff0f0lavenderblush | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ad83e7mediumpurple | #ad83e7mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.03:1 | AAA |
| Accent | 9.79:1 | AAA |
| Destructive | 6.13:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 6.38:1 | AA |
| Secondary button | 8.45:1 | AAA |
| Muted text | 7.94:1 | AAA |
| Accent | 9.79:1 | AAA |
| Destructive | 4.77:1 | AA |
Paste this into your globals.css to use Tenant in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.112 0.03 306.094);
--muted: oklch(0.886 0.016 58.104);
--muted-foreground: oklch(0.383 0.018 57.69);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.098 0.026 306.499);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.098 0.026 306.499);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.69 0.149 301.865);
--primary-foreground: oklch(0.191 0.072 298.373);
--secondary: oklch(0.791 0.089 56.579);
--secondary-foreground: oklch(0.24 0.044 54.37);
--accent: oklch(0.852 0.127 156.77);
--accent-foreground: oklch(0.272 0.059 153.713);
--destructive: oklch(0.495 0.2 29.232);
--destructive-foreground: oklch(0.967 0.016 18.612);
--ring: oklch(0.69 0.149 301.865);
--chart-1: oklch(0.69 0.149 301.865);
--chart-2: oklch(0.791 0.089 56.579);
--chart-3: oklch(0.852 0.127 156.77);
--chart-4: oklch(0.812 0.079 56.874);
--chart-5: oklch(0.687 0.155 301.692);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.009 305.64);
--foreground: oklch(1 0 180);
--muted: oklch(0.273 0.022 57.174);
--muted-foreground: oklch(0.799 0.015 58.098);
--popover: oklch(0.108 0.012 305.64);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.108 0.012 305.64);
--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.69 0.149 301.865);
--primary-foreground: oklch(0.191 0.072 298.373);
--secondary: oklch(0.791 0.089 56.579);
--secondary-foreground: oklch(0.24 0.044 54.37);
--accent: oklch(0.852 0.127 156.77);
--accent-foreground: oklch(0.272 0.059 153.713);
--destructive: oklch(0.582 0.236 29.232);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.69 0.149 301.865);
--chart-1: oklch(0.69 0.149 301.865);
--chart-2: oklch(0.791 0.089 56.579);
--chart-3: oklch(0.852 0.127 156.77);
--chart-4: oklch(0.812 0.079 56.874);
--chart-5: oklch(0.687 0.155 301.692);
}