Flawless is a shadcn/ui theme built around a muted yellow primary color (#a7976c) with muted green accents (#99a76c). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted yellow primary (#a7976c) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #080602black | #faf9f5whitesmoke |
| Card | #fcfcfcsnow | #080602black |
| Card foreground | #040301black | #fcfbf8snow |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #080602black | #faf9f5whitesmoke |
| Primary | #a7976cdarkkhaki | #a7976cdarkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #a77a6cgray | #a77a6cgray |
| Secondary foreground | #000000black | #000000black |
| Muted | #eeedeclinen | #131111black |
| Muted foreground | #4e403cdarkslategray | #c3b5b1silver |
| Accent | #99a76cdarkkhaki | #99a76cdarkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #7f2205maroon | #f0400aorangered |
| Destructive foreground | #fccabapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a7976cdarkkhaki | #a7976cdarkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.24:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 5.64:1 | AA |
| Muted text | 8.44:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 6.69:1 | AA |
| Text on background | 19.55:1 | AAA |
| Text on card | 19.52:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 5.64:1 | AA |
| Muted text | 9.45:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.86:1 | AA Large |
Paste this into your globals.css to use Flawless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.124 0.014 94.918);
--muted: oklch(0.946 0.002 37.732);
--muted-foreground: oklch(0.385 0.02 37.596);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.124 0.014 94.918);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.099 0.011 94.918);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.681 0.062 90.388);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.621 0.06 37.613);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.703 0.082 119.238);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.399 0.133 35.647);
--destructive-foreground: oklch(0.878 0.061 37.592);
--ring: oklch(0.681 0.062 90.388);
--chart-1: oklch(0.681 0.062 90.388);
--chart-2: oklch(0.621 0.06 37.613);
--chart-3: oklch(0.703 0.082 119.238);
--chart-4: oklch(0.646 0.056 37.602);
--chart-5: oklch(0.687 0.068 90.34);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.012 95.236);
--foreground: oklch(0.981 0.005 90.16);
--muted: oklch(0.181 0.003 37.671);
--muted-foreground: oklch(0.785 0.017 37.653);
--popover: oklch(0.099 0.012 95.236);
--popover-foreground: oklch(0.981 0.005 90.16);
--card: oklch(0.125 0.015 95.236);
--card-foreground: oklch(0.987 0.003 90.147);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.681 0.062 90.388);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.621 0.06 37.613);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.703 0.082 119.238);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.63 0.219 34.645);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.681 0.062 90.388);
--chart-1: oklch(0.681 0.062 90.388);
--chart-2: oklch(0.621 0.06 37.613);
--chart-3: oklch(0.703 0.082 119.238);
--chart-4: oklch(0.646 0.056 37.602);
--chart-5: oklch(0.687 0.068 90.34);
}