Probation is a shadcn/ui theme built around a vivid light yellow primary color (#f4f4ae) with vivid light green accents (#d1f4ae). The light mode uses a neutral background (#fdfdf7). Dark mode keeps the vivid light yellow primary (#f4f4ae) on a yellow-tinted background (#0b0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf7snow | #0b0b04black |
| Foreground | #101005black | #ffffffwhite |
| Card | #fcfcf2floralwhite | #0e0e06black |
| Card foreground | #0c0c03black | #ffffffwhite |
| Popover | #fdfdf7snow | #0b0b04black |
| Popover foreground | #101005black | #ffffffwhite |
| Primary | #f4f4aepalegoldenrod | #f4f4aepalegoldenrod |
| Primary foreground | #090901black | #090901black |
| Secondary | #f4d1aewheat | #f4d1aewheat |
| Secondary foreground | #63380dsaddlebrown | #63380dsaddlebrown |
| Muted | #dfdbd8gainsboro | #272420black |
| Muted foreground | #584f46darkolivegreen | #b9b0a7darkgray |
| Accent | #d1f4aepalegoldenrod | #d1f4aepalegoldenrod |
| Accent foreground | #050901black | #050901black |
| Destructive | #6a190bmaroon | #e9472bchocolate |
| Destructive foreground | #f7bbb1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4f4aepalegoldenrod | #f4f4aepalegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 17.50:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 5.82:1 | AA |
| Accent | 16.50:1 | AAA |
| Destructive | 7.20:1 | AAA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.31:1 | AAA |
| Primary button | 17.50:1 | AAA |
| Secondary button | 6.94:1 | AA |
| Muted text | 7.24:1 | AAA |
| Accent | 16.50:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Probation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 106.56);
--foreground: oklch(0.168 0.023 108.661);
--muted: oklch(0.894 0.006 67.753);
--muted-foreground: oklch(0.434 0.018 67.318);
--popover: oklch(0.993 0.009 106.56);
--popover-foreground: oklch(0.168 0.023 108.661);
--card: oklch(0.99 0.013 106.639);
--card-foreground: oklch(0.15 0.02 108.606);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.951 0.089 107.974);
--primary-foreground: oklch(0.136 0.024 109.189);
--secondary: oklch(0.882 0.061 66.904);
--secondary-foreground: oklch(0.386 0.081 60.338);
--accent: oklch(0.925 0.098 129.733);
--accent-foreground: oklch(0.13 0.026 126.982);
--destructive: oklch(0.35 0.116 32.361);
--destructive-foreground: oklch(0.844 0.071 30.006);
--ring: oklch(0.951 0.089 107.974);
--chart-1: oklch(0.951 0.089 107.974);
--chart-2: oklch(0.882 0.061 66.904);
--chart-3: oklch(0.925 0.098 129.733);
--chart-4: oklch(0.901 0.05 67.114);
--chart-5: oklch(0.954 0.092 108.02);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.016 108.181);
--foreground: oklch(1 0 180);
--muted: oklch(0.261 0.008 67.485);
--muted-foreground: oklch(0.762 0.016 67.588);
--popover: oklch(0.146 0.016 108.181);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.163 0.018 108.234);
--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.951 0.089 107.974);
--primary-foreground: oklch(0.136 0.024 109.189);
--secondary: oklch(0.882 0.061 66.904);
--secondary-foreground: oklch(0.386 0.081 60.338);
--accent: oklch(0.925 0.098 129.733);
--accent-foreground: oklch(0.13 0.026 126.982);
--destructive: oklch(0.627 0.203 32.382);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.951 0.089 107.974);
--chart-1: oklch(0.951 0.089 107.974);
--chart-2: oklch(0.882 0.061 66.904);
--chart-3: oklch(0.925 0.098 129.733);
--chart-4: oklch(0.901 0.05 67.114);
--chart-5: oklch(0.954 0.092 108.02);
}