Technique is a shadcn/ui theme built around a muted light violet primary color (#beb6d2) with muted light violet accents (#dedbe6). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the muted light violet primary (#beb6d2) on a violet-tinted background (#06050b).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #06050bblack |
| Foreground | #020104black | #fcfcfdwhite |
| Card | #f9f8fcghostwhite | #06050bblack |
| Card foreground | #020104black | #fcfcfdwhite |
| Popover | #f9f8fcghostwhite | #06050bblack |
| Popover foreground | #020104black | #fcfcfdwhite |
| Primary | #beb6d2silver | #beb6d2silver |
| Primary foreground | #262136darkslategray | #262136darkslategray |
| Secondary | #dedbe6gainsboro | #2e2c35darkslategray |
| Secondary foreground | #413a55darkslategray | #c7c4cfsilver |
| Muted | #e1dee8gainsboro | #1a1721black |
| Muted foreground | #4e4d51darkslategray | #afaeb2darkgray |
| Accent | #dedbe6gainsboro | #2e2c35darkslategray |
| Accent foreground | #413a55darkslategray | #c7c4cfsilver |
| Destructive | #de2702orangered | #e82902orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #beb6d2silver | #beb6d2silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.63:1 | AAA |
| Text on card | 19.63:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 7.81:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 4.77:1 | AA |
| Text on background | 19.83:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 8.00:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 8.01:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.41:1 | AA Large |
Paste this into your globals.css to use Technique in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 298.456);
--foreground: oklch(0.077 0.018 298.408);
--muted: oklch(0.905 0.014 298.298);
--muted-foreground: oklch(0.422 0.008 298.239);
--popover: oklch(0.98 0.006 298.456);
--popover-foreground: oklch(0.077 0.018 298.408);
--card: oklch(0.98 0.006 298.456);
--card-foreground: oklch(0.077 0.018 298.408);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.792 0.04 297.675);
--primary-foreground: oklch(0.264 0.039 295.877);
--secondary: oklch(0.896 0.016 298.253);
--secondary-foreground: oklch(0.367 0.047 296.263);
--accent: oklch(0.896 0.016 298.253);
--accent-foreground: oklch(0.367 0.047 296.263);
--destructive: oklch(0.58 0.219 31.875);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.792 0.04 297.675);
--chart-1: oklch(0.792 0.04 297.675);
--chart-2: oklch(0.896 0.016 298.253);
--chart-3: oklch(0.896 0.016 298.253);
--chart-4: oklch(0.922 0.012 298.34);
--chart-5: oklch(0.789 0.045 297.556);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.119 0.017 298.449);
--foreground: oklch(0.991 0.002 298.537);
--muted: oklch(0.213 0.02 296.889);
--muted-foreground: oklch(0.752 0.007 298.408);
--popover: oklch(0.119 0.017 298.449);
--popover-foreground: oklch(0.991 0.002 298.537);
--card: oklch(0.119 0.017 298.449);
--card-foreground: oklch(0.991 0.002 298.537);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.792 0.04 297.675);
--primary-foreground: oklch(0.264 0.039 295.877);
--secondary: oklch(0.298 0.018 297.524);
--secondary-foreground: oklch(0.826 0.015 298.247);
--accent: oklch(0.298 0.018 297.524);
--accent-foreground: oklch(0.826 0.015 298.247);
--destructive: oklch(0.599 0.227 31.823);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.792 0.04 297.675);
--chart-1: oklch(0.792 0.04 297.675);
--chart-2: oklch(0.298 0.018 297.524);
--chart-3: oklch(0.298 0.018 297.524);
--chart-4: oklch(0.327 0.02 297.488);
--chart-5: oklch(0.789 0.045 297.556);
}