Buckle is a shadcn/ui theme built around a light yellow primary color (#fafaeb) with light green accents (#f2faeb). The light mode uses a neutral background (#fefefb). Dark mode keeps the light yellow primary (#fafaeb) on a neutral background (#070703).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #070703black |
| Foreground | #040401black | #ffffffwhite |
| Card | #fdfdf6snow | #0b0b05black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fdfdf6snow | #0b0b05black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #fafaebfloralwhite | #fafaebfloralwhite |
| Primary foreground | #3c3c10darkolivegreen | #3c3c10darkolivegreen |
| Secondary | #faf2eblinen | #faf2eblinen |
| Secondary foreground | #3c2610black | #3c2610black |
| Muted | #eae0d7gainsboro | #281f15black |
| Muted foreground | #635e5adimgray | #a5a19cdarkgray |
| Accent | #f2faebhoneydew | #f2faebhoneydew |
| Accent foreground | #263c10darkgreen | #263c10darkgreen |
| Destructive | #c43708firebrick | #f66331tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fafaebfloralwhite | #fafaebfloralwhite |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.63:1 | AAA |
| Primary button | 10.76:1 | AAA |
| Secondary button | 12.85:1 | AAA |
| Muted text | 4.93:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 5.39:1 | AA |
| Text on background | 20.16:1 | AAA |
| Text on card | 19.76:1 | AAA |
| Primary button | 10.76:1 | AAA |
| Secondary button | 12.85:1 | AAA |
| Muted text | 6.32:1 | AA |
| Accent | 11.29:1 | AAA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Buckle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.997 0.005 106.484);
--foreground: oklch(0.107 0.018 109.084);
--muted: oklch(0.913 0.016 67.626);
--muted-foreground: oklch(0.486 0.01 67.6);
--popover: oklch(0.993 0.009 106.569);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.993 0.009 106.569);
--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.98 0.019 106.753);
--primary-foreground: oklch(0.348 0.063 109.282);
--secondary: oklch(0.966 0.013 67.676);
--secondary-foreground: oklch(0.292 0.048 63.908);
--accent: oklch(0.974 0.021 128.702);
--accent-foreground: oklch(0.328 0.074 131.92);
--destructive: oklch(0.546 0.184 35.682);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.98 0.019 106.753);
--chart-1: oklch(0.98 0.019 106.753);
--chart-2: oklch(0.966 0.013 67.676);
--chart-3: oklch(0.974 0.021 128.702);
--chart-4: oklch(0.986 0.005 67.766);
--chart-5: oklch(0.981 0.02 106.77);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.127 0.013 108.11);
--foreground: oklch(1 0 180);
--muted: oklch(0.246 0.022 66.519);
--muted-foreground: oklch(0.71 0.009 67.686);
--popover: oklch(0.146 0.015 108.112);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.146 0.015 108.112);
--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.98 0.019 106.753);
--primary-foreground: oklch(0.348 0.063 109.282);
--secondary: oklch(0.966 0.013 67.676);
--secondary-foreground: oklch(0.292 0.048 63.908);
--accent: oklch(0.974 0.021 128.702);
--accent-foreground: oklch(0.328 0.074 131.92);
--destructive: oklch(0.681 0.192 37.998);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.98 0.019 106.753);
--chart-1: oklch(0.98 0.019 106.753);
--chart-2: oklch(0.966 0.013 67.676);
--chart-3: oklch(0.974 0.021 128.702);
--chart-4: oklch(0.986 0.005 67.766);
--chart-5: oklch(0.981 0.02 106.77);
}