Schooner is a shadcn/ui theme built around a near-black primary color (#030203) with near-black accents (#030202). The light mode uses a neutral background (#fefbfd). Dark mode keeps the near-black primary (#030203) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #030203black |
| Foreground | #160412black | #fdfcfdwhite |
| Card | #fcf7fbsnow | #070306black |
| Card foreground | #11030eblack | #ffffffwhite |
| Popover | #fcf7fbsnow | #070306black |
| Popover foreground | #11030eblack | #ffffffwhite |
| Primary | #030203black | #030203black |
| Primary foreground | #a2969fdarkgray | #a2969fdarkgray |
| Secondary | #030203black | #030203black |
| Secondary foreground | #9e96a2darkgray | #9e96a2darkgray |
| Muted | #e9deedlavender | #1d1221black |
| Muted foreground | #4a424ddarkslategray | #bab2bdsilver |
| Accent | #030202black | #030202black |
| Accent foreground | #a29699darkgray | #a29699darkgray |
| Destructive | #9a3f0esaddlebrown | #ea661fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #030203black | #030203black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.28:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 7.40:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 20.25:1 | AAA |
| Text on card | 20.46:1 | AAA |
| Primary button | 7.28:1 | AAA |
| Secondary button | 7.22:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 7.25:1 | AAA |
| Destructive | 6.43:1 | AA |
Paste this into your globals.css to use Schooner in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 332.673);
--foreground: oklch(0.149 0.044 335.962);
--muted: oklch(0.913 0.024 316.533);
--muted-foreground: oklch(0.39 0.022 316.446);
--popover: oklch(0.982 0.007 332.731);
--popover-foreground: oklch(0.135 0.039 335.27);
--card: oklch(0.982 0.007 332.731);
--card-foreground: oklch(0.135 0.039 335.27);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.091 0.002 332.705);
--primary-foreground: oklch(0.685 0.019 333.048);
--secondary: oklch(0.091 0.002 316.799);
--secondary-foreground: oklch(0.683 0.02 316.524);
--accent: oklch(0.091 0.001 357.695);
--accent-foreground: oklch(0.683 0.015 358.33);
--destructive: oklch(0.485 0.134 43.662);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.091 0.002 332.705);
--chart-1: oklch(0.091 0.002 332.705);
--chart-2: oklch(0.091 0.002 316.799);
--chart-3: oklch(0.091 0.001 357.695);
--chart-4: oklch(0.144 0.003 316.573);
--chart-5: oklch(0.091 0.003 332.749);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.088 0.011 333.124);
--foreground: oklch(0.992 0.002 332.643);
--muted: oklch(0.203 0.034 316.09);
--muted-foreground: oklch(0.773 0.018 316.539);
--popover: oklch(0.111 0.014 333.124);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.111 0.014 333.124);
--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.091 0.002 332.705);
--primary-foreground: oklch(0.685 0.019 333.048);
--secondary: oklch(0.091 0.002 316.799);
--secondary-foreground: oklch(0.683 0.02 316.524);
--accent: oklch(0.091 0.001 357.695);
--accent-foreground: oklch(0.683 0.015 358.33);
--destructive: oklch(0.666 0.181 44.016);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.091 0.002 332.705);
--chart-1: oklch(0.091 0.002 332.705);
--chart-2: oklch(0.091 0.002 316.799);
--chart-3: oklch(0.091 0.001 357.695);
--chart-4: oklch(0.144 0.003 316.573);
--chart-5: oklch(0.091 0.003 332.749);
}