Scholarship is a shadcn/ui theme built around a vivid light purple primary color (#f89bf5) with muted light purple accents (#dccbdb). The light mode uses a neutral background (#fefbfe). Dark mode keeps the vivid light purple primary (#f89bf5) on a purple-tinted background (#0e070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfewhite | #0e070eblack |
| Foreground | #090109black | #fdfbfdsnow |
| Card | #fefbfewhite | #0e070eblack |
| Card foreground | #090109black | #fdfbfdsnow |
| Popover | #fefbfewhite | #0e070eblack |
| Popover foreground | #090109black | #fdfbfdsnow |
| Primary | #f89bf5violet | #f89bf5violet |
| Primary foreground | #5b0658indigo | #5b0658indigo |
| Secondary | #dccbdbthistle | #231f23black |
| Secondary foreground | #463045darkslategray | #beb7bdsilver |
| Muted | #f1eff1whitesmoke | #100e10black |
| Muted foreground | #464346darkslategray | #bcb9bbsilver |
| Accent | #dccbdbthistle | #231f23black |
| Accent foreground | #463045darkslategray | #beb7bdsilver |
| Destructive | #8a1f0fdarkred | #e9482ftomato |
| Destructive foreground | #fad6d1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f89bf5violet | #f89bf5violet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 7.71:1 | AAA |
| Muted text | 8.51:1 | AAA |
| Accent | 7.71:1 | AAA |
| Destructive | 6.80:1 | AA |
| Text on background | 19.36:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 6.81:1 | AA |
| Secondary button | 8.25:1 | AAA |
| Muted text | 9.85:1 | AAA |
| Accent | 8.25:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Scholarship in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 326.584);
--foreground: oklch(0.105 0.036 328.64);
--muted: oklch(0.953 0.003 326.569);
--muted-foreground: oklch(0.388 0.006 326.668);
--popover: oklch(0.991 0.005 326.584);
--popover-foreground: oklch(0.105 0.036 328.64);
--card: oklch(0.991 0.005 326.584);
--card-foreground: oklch(0.105 0.036 328.64);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.813 0.158 328.078);
--primary-foreground: oklch(0.332 0.144 329.864);
--secondary: oklch(0.862 0.028 326.82);
--secondary-foreground: oklch(0.342 0.047 327.667);
--accent: oklch(0.862 0.028 326.82);
--accent-foreground: oklch(0.342 0.047 327.667);
--destructive: oklch(0.418 0.145 31.648);
--destructive-foreground: oklch(0.906 0.041 28.229);
--ring: oklch(0.813 0.158 328.078);
--chart-1: oklch(0.813 0.158 328.078);
--chart-2: oklch(0.862 0.028 326.82);
--chart-3: oklch(0.862 0.028 326.82);
--chart-4: oklch(0.886 0.023 326.763);
--chart-5: oklch(0.813 0.163 328.124);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.02 327.632);
--foreground: oklch(0.992 0.003 326.569);
--muted: oklch(0.169 0.005 326.78);
--muted-foreground: oklch(0.788 0.005 326.594);
--popover: oklch(0.141 0.02 327.632);
--popover-foreground: oklch(0.992 0.003 326.569);
--card: oklch(0.141 0.02 327.632);
--card-foreground: oklch(0.992 0.003 326.569);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.813 0.158 328.078);
--primary-foreground: oklch(0.332 0.144 329.864);
--secondary: oklch(0.246 0.008 326.809);
--secondary-foreground: oklch(0.786 0.012 326.673);
--accent: oklch(0.246 0.008 326.809);
--accent-foreground: oklch(0.786 0.012 326.673);
--destructive: oklch(0.629 0.202 31.599);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.813 0.158 328.078);
--chart-1: oklch(0.813 0.158 328.078);
--chart-2: oklch(0.246 0.008 326.809);
--chart-3: oklch(0.246 0.008 326.809);
--chart-4: oklch(0.278 0.009 326.825);
--chart-5: oklch(0.813 0.163 328.124);
}