Girdle is a shadcn/ui theme built around a yellow primary color (#cea94b) with violet accents (#a94bce). The light mode uses a neutral background (#fefdfb). Dark mode keeps the yellow primary (#cea94b) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #070603black |
| Foreground | #040301black | #faf8f5whitesmoke |
| Card | #fefdfbsnow | #070603black |
| Card foreground | #040301black | #faf8f5whitesmoke |
| Popover | #fefdfbsnow | #070603black |
| Popover foreground | #040301black | #faf8f5whitesmoke |
| Primary | #cea94bperu | #cea94bperu |
| Primary foreground | #000000black | #000000black |
| Secondary | #4bcea9mediumaquamarine | #4bcea9mediumaquamarine |
| Secondary foreground | #103c30darkslategray | #103c30darkslategray |
| Muted | #f1f4f3whitesmoke | #0b0e0dblack |
| Muted foreground | #4f5956darkslategray | #a6b0addarkgray |
| Accent | #a94bcemediumorchid | #a94bcemediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #b00707firebrick | #f62c2ccrimson |
| Destructive foreground | #feebeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #cea94bperu | #cea94bperu |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 6.53:1 | AA |
| Accent | 4.59:1 | AA |
| Destructive | 6.33:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 9.36:1 | AAA |
| Secondary button | 6.23:1 | AA |
| Muted text | 8.70:1 | AAA |
| Accent | 4.59:1 | AA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Girdle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 88.814);
--foreground: oklch(0.101 0.016 95.565);
--muted: oklch(0.964 0.003 177.628);
--muted-foreground: oklch(0.455 0.013 176.83);
--popover: oklch(0.995 0.003 88.814);
--popover-foreground: oklch(0.101 0.016 95.565);
--card: oklch(0.995 0.003 88.814);
--card-foreground: oklch(0.101 0.016 95.565);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.749 0.12 87.51);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.769 0.127 170.73);
--secondary-foreground: oklch(0.322 0.053 170.839);
--accent: oklch(0.588 0.204 315.03);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.479 0.193 28.825);
--destructive-foreground: oklch(0.956 0.02 17.516);
--ring: oklch(0.749 0.12 87.51);
--chart-1: oklch(0.749 0.12 87.51);
--chart-2: oklch(0.769 0.127 170.73);
--chart-3: oklch(0.588 0.204 315.03);
--chart-4: oklch(0.782 0.121 171.477);
--chart-5: oklch(0.755 0.124 87.279);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.012 93.364);
--foreground: oklch(0.98 0.004 88.82);
--muted: oklch(0.161 0.004 176.894);
--muted-foreground: oklch(0.748 0.012 177.242);
--popover: oklch(0.123 0.012 93.364);
--popover-foreground: oklch(0.98 0.004 88.82);
--card: oklch(0.123 0.012 93.364);
--card-foreground: oklch(0.98 0.004 88.82);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.749 0.12 87.51);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.769 0.127 170.73);
--secondary-foreground: oklch(0.322 0.053 170.839);
--accent: oklch(0.588 0.204 315.03);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.629 0.234 27.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.749 0.12 87.51);
--chart-1: oklch(0.749 0.12 87.51);
--chart-2: oklch(0.769 0.127 170.73);
--chart-3: oklch(0.588 0.204 315.03);
--chart-4: oklch(0.782 0.121 171.477);
--chart-5: oklch(0.755 0.124 87.279);
}