Aglet is a shadcn/ui theme built around a muted light violet primary color (#d8d5dd) with muted light purple accents (#dcd5dd). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted light violet primary (#d8d5dd) on a neutral background (#020203).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020203black |
| Foreground | #07040cblack | #ffffffwhite |
| Card | #fcfcfcsnow | #050307black |
| Card foreground | #050208black | #ffffffwhite |
| Popover | #ffffffwhite | #020203black |
| Popover foreground | #07040cblack | #ffffffwhite |
| Primary | #d8d5ddgainsboro | #d8d5ddgainsboro |
| Primary foreground | #3f3947darkslategray | #3f3947darkslategray |
| Secondary | #d5d5ddgainsboro | #d5d5ddgainsboro |
| Secondary foreground | #393a47darkslategray | #393a47darkslategray |
| Muted | #e5e6eblavender | #14141ablack |
| Muted foreground | #4e5065dimgray | #9a9cb1darkgray |
| Accent | #dcd5ddgainsboro | #dcd5ddgainsboro |
| Accent foreground | #463947darkslategray | #463947darkslategray |
| Destructive | #c93503firebrick | #f64004orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d8d5ddgainsboro | #d8d5ddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.35:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.31:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 5.27:1 | AA |
| Text on background | 20.75:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 7.64:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 6.76:1 | AA |
| Accent | 7.52:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Aglet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.117 0.023 305.932);
--muted: oklch(0.925 0.007 282.079);
--muted-foreground: oklch(0.436 0.035 280.766);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.117 0.023 305.932);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.102 0.02 306.107);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.877 0.012 304.855);
--primary-foreground: oklch(0.355 0.025 304.066);
--secondary: oklch(0.875 0.011 282.01);
--secondary-foreground: oklch(0.352 0.022 281.091);
--accent: oklch(0.88 0.014 323.208);
--accent-foreground: oklch(0.363 0.029 323.494);
--destructive: oklch(0.552 0.191 35.167);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.877 0.012 304.855);
--chart-1: oklch(0.877 0.012 304.855);
--chart-2: oklch(0.875 0.011 282.01);
--chart-3: oklch(0.88 0.014 323.208);
--chart-4: oklch(0.901 0.008 282.057);
--chart-5: oklch(0.875 0.015 304.803);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.085 0.01 305.661);
--foreground: oklch(1 0 180);
--muted: oklch(0.195 0.011 281.224);
--muted-foreground: oklch(0.698 0.031 281.442);
--popover: oklch(0.085 0.01 305.661);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.107 0.012 305.661);
--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.877 0.012 304.855);
--primary-foreground: oklch(0.355 0.025 304.066);
--secondary: oklch(0.875 0.011 282.01);
--secondary-foreground: oklch(0.352 0.022 281.091);
--accent: oklch(0.88 0.014 323.208);
--accent-foreground: oklch(0.363 0.029 323.494);
--destructive: oklch(0.641 0.224 34.823);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.877 0.012 304.855);
--chart-1: oklch(0.877 0.012 304.855);
--chart-2: oklch(0.875 0.011 282.01);
--chart-3: oklch(0.88 0.014 323.208);
--chart-4: oklch(0.901 0.008 282.057);
--chart-5: oklch(0.875 0.015 304.803);
}