Champion is a shadcn/ui theme built around a purple primary color (#c624ab) with green accents (#24c63f). The light mode uses a neutral background (#ffffff). Dark mode keeps the purple primary (#c624ab) on a purple-tinted background (#0f050d).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0f050dblack |
| Foreground | #080207black | #fdfcfdwhite |
| Card | #ffffffwhite | #0f050dblack |
| Card foreground | #080207black | #fdfcfdwhite |
| Popover | #ffffffwhite | #0f050dblack |
| Popover foreground | #080207black | #fdfcfdwhite |
| Primary | #c624abmediumvioletred | #c624abmediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #24c63flimegreen | #24c63flimegreen |
| Secondary foreground | #051a08black | #051a08black |
| Muted | #e9f1eawhitesmoke | #0e160fblack |
| Muted foreground | #656765dimgray | #989a98darkgray |
| Accent | #24c63flimegreen | #24c63flimegreen |
| Accent foreground | #051a08black | #051a08black |
| Destructive | #d51301red | #fe200bred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c624abmediumvioletred | #c624abmediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.54:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 4.93:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 5.35:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 4.93:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.98:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Champion in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.109 0.021 331.759);
--muted: oklch(0.951 0.013 150.631);
--muted-foreground: oklch(0.511 0.004 150.723);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.109 0.021 331.759);
--card: oklch(1 0 180);
--card-foreground: oklch(0.109 0.021 331.759);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.577 0.233 336.378);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.723 0.217 144.869);
--secondary-foreground: oklch(0.194 0.045 147.699);
--accent: oklch(0.723 0.217 144.869);
--accent-foreground: oklch(0.194 0.045 147.699);
--destructive: oklch(0.553 0.221 30.111);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.577 0.233 336.378);
--chart-1: oklch(0.577 0.233 336.378);
--chart-2: oklch(0.723 0.217 144.869);
--chart-3: oklch(0.723 0.217 144.869);
--chart-4: oklch(0.758 0.228 144.841);
--chart-5: oklch(0.582 0.239 336.562);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.026 332.624);
--foreground: oklch(0.992 0.001 330.833);
--muted: oklch(0.189 0.019 149.322);
--muted-foreground: oklch(0.684 0.003 150.753);
--popover: oklch(0.139 0.026 332.624);
--popover-foreground: oklch(0.992 0.001 330.833);
--card: oklch(0.139 0.026 332.624);
--card-foreground: oklch(0.992 0.001 330.833);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.577 0.233 336.378);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.723 0.217 144.869);
--secondary-foreground: oklch(0.194 0.045 147.699);
--accent: oklch(0.723 0.217 144.869);
--accent-foreground: oklch(0.194 0.045 147.699);
--destructive: oklch(0.634 0.249 30.043);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.577 0.233 336.378);
--chart-1: oklch(0.577 0.233 336.378);
--chart-2: oklch(0.723 0.217 144.869);
--chart-3: oklch(0.723 0.217 144.869);
--chart-4: oklch(0.758 0.228 144.841);
--chart-5: oklch(0.582 0.239 336.562);
}