Rebellion is a shadcn/ui theme built around a light blue primary color (#e0e5fa) with light violet accents (#e9e0fa). The light mode uses a neutral background (#f8f9fc). Dark mode keeps the light blue primary (#e0e5fa) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f9fcghostwhite | #020203black |
| Foreground | #000000black | #ffffffwhite |
| Card | #f8f9fcghostwhite | #020203black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f9fcghostwhite | #020203black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #e0e5falavender | #e0e5falavender |
| Primary foreground | #182c90midnightblue | #182c90midnightblue |
| Secondary | #e0f1falavender | #e0f1falavender |
| Secondary foreground | #0a2939darkslategray | #0a2939darkslategray |
| Muted | #e6eceflavender | #101619black |
| Muted foreground | #4b5b63dimgray | #9cacb4darkgray |
| Accent | #e9e0falavender | #e9e0falavender |
| Accent foreground | #401890indigo | #401890indigo |
| Destructive | #a7350cfirebrick | #f16c3btomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e0e5falavender | #e0e5falavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.88:1 | AAA |
| Text on card | 19.88:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 13.09:1 | AAA |
| Muted text | 5.92:1 | AA |
| Accent | 9.45:1 | AAA |
| Destructive | 6.65:1 | AA |
| Text on background | 20.74:1 | AAA |
| Text on card | 20.74:1 | AAA |
| Primary button | 9.28:1 | AAA |
| Secondary button | 13.09:1 | AAA |
| Muted text | 7.80:1 | AAA |
| Accent | 9.45:1 | AAA |
| Destructive | 6.96:1 | AA |
Paste this into your globals.css to use Rebellion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.005 277.196);
--foreground: oklch(0 0 0);
--muted: oklch(0.94 0.008 228.861);
--muted-foreground: oklch(0.46 0.024 229.562);
--popover: oklch(0.981 0.005 277.196);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.981 0.005 277.196);
--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.924 0.029 276.807);
--primary-foreground: oklch(0.355 0.164 267.526);
--secondary: oklch(0.949 0.021 229.058);
--secondary-foreground: oklch(0.266 0.046 234.299);
--accent: oklch(0.922 0.035 300.879);
--accent-foreground: oklch(0.357 0.177 289.111);
--destructive: oklch(0.493 0.157 37.362);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.924 0.029 276.807);
--chart-1: oklch(0.924 0.029 276.807);
--chart-2: oklch(0.949 0.021 229.058);
--chart-3: oklch(0.922 0.035 300.879);
--chart-4: oklch(0.971 0.012 228.916);
--chart-5: oklch(0.923 0.03 276.786);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.007 274.003);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.011 229.69);
--muted-foreground: oklch(0.735 0.022 229.166);
--popover: oklch(0.086 0.007 274.003);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.086 0.007 274.003);
--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.924 0.029 276.807);
--primary-foreground: oklch(0.355 0.164 267.526);
--secondary: oklch(0.949 0.021 229.058);
--secondary-foreground: oklch(0.266 0.046 234.299);
--accent: oklch(0.922 0.035 300.879);
--accent-foreground: oklch(0.357 0.177 289.111);
--destructive: oklch(0.686 0.176 39.611);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.924 0.029 276.807);
--chart-1: oklch(0.924 0.029 276.807);
--chart-2: oklch(0.949 0.021 229.058);
--chart-3: oklch(0.922 0.035 300.879);
--chart-4: oklch(0.971 0.012 228.916);
--chart-5: oklch(0.923 0.03 276.786);
}