Senator is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#030203). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the near-black primary (#030203) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fbf7fdghostwhite | #000000black |
| Foreground | #0c0410black | #fdfcfdwhite |
| Card | #fbf7fdghostwhite | #000000black |
| Card foreground | #0c0410black | #fdfcfdwhite |
| Popover | #fbf7fdghostwhite | #000000black |
| Popover foreground | #0c0410black | #fdfcfdwhite |
| Primary | #030203black | #030203black |
| Primary foreground | #a580b7mediumpurple | #a580b7mediumpurple |
| Secondary | #020203black | #020203black |
| Secondary foreground | #c6c1dcthistle | #c6c1dcthistle |
| Muted | #e8e7eelavender | #121118black |
| Muted foreground | #494659darkslategray | #aaa6b9darkgray |
| Accent | #030203black | #030203black |
| Accent foreground | #b780aerosybrown | #b780aerosybrown |
| Destructive | #9c3911saddlebrown | #e6531achocolate |
| Destructive foreground | #fceae3linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.00:1 | AAA |
| Text on card | 19.00:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 11.91:1 | AAA |
| Muted text | 7.43:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 6.00:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.51:1 | AAA |
| Primary button | 6.28:1 | AA |
| Secondary button | 11.91:1 | AAA |
| Muted text | 7.92:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 3.74:1 | AA Large |
Paste this into your globals.css to use Senator in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.01 314.778);
--foreground: oklch(0.132 0.031 315.126);
--muted: oklch(0.931 0.009 293.878);
--muted-foreground: oklch(0.403 0.032 292.556);
--popover: oklch(0.98 0.01 314.778);
--popover-foreground: oklch(0.132 0.031 315.126);
--card: oklch(0.98 0.01 314.778);
--card-foreground: oklch(0.132 0.031 315.126);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.088 0.009 315.73);
--primary-foreground: oklch(0.654 0.091 314.138);
--secondary: oklch(0.085 0.008 293.455);
--secondary-foreground: oklch(0.823 0.038 293.194);
--accent: oklch(0.089 0.009 331.33);
--accent-foreground: oklch(0.67 0.093 332.579);
--destructive: oklch(0.479 0.141 39.271);
--destructive-foreground: oklch(0.95 0.021 42.941);
--ring: oklch(0.088 0.009 315.73);
--chart-1: oklch(0.088 0.009 315.73);
--chart-2: oklch(0.085 0.008 293.455);
--chart-3: oklch(0.089 0.009 331.33);
--chart-4: oklch(0.135 0.013 293.039);
--chart-5: oklch(0.087 0.01 315.832);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.003 314.813);
--muted: oklch(0.182 0.014 292.576);
--muted-foreground: oklch(0.735 0.027 293.367);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.003 314.813);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.003 314.813);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.088 0.009 315.73);
--primary-foreground: oklch(0.654 0.091 314.138);
--secondary: oklch(0.085 0.008 293.455);
--secondary-foreground: oklch(0.823 0.038 293.194);
--accent: oklch(0.089 0.009 331.33);
--accent-foreground: oklch(0.67 0.093 332.579);
--destructive: oklch(0.634 0.192 38.811);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.088 0.009 315.73);
--chart-1: oklch(0.088 0.009 315.73);
--chart-2: oklch(0.085 0.008 293.455);
--chart-3: oklch(0.089 0.009 331.33);
--chart-4: oklch(0.135 0.013 293.039);
--chart-5: oklch(0.087 0.01 315.832);
}