TEmplating is a shadcn/ui theme built around an indigo primary color (#644ede) with muted light blue accents (#d7d8e0). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the indigo primary (#4a34c5) on a neutral background (#0e0e0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #0e0e0eblack |
| Foreground | #010104black | #ffffffwhite |
| Card | #fbfbffghostwhite | #0f0f10black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbfbfeghostwhite | #0e0e0eblack |
| Popover foreground | #010104black | #ffffffwhite |
| Primary | #644edeslateblue | #4a34c5slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #eaeaeblavender | #1f2025black |
| Secondary foreground | #4f5054darkslategray | #f9f8ffghostwhite |
| Muted | #dedfe3gainsboro | #16171ablack |
| Muted foreground | #70717bdimgray | #70717bdimgray |
| Accent | #d7d8e0gainsboro | #19191eblack |
| Accent foreground | #3a3b4bdarkslategray | #e9ebfflavender |
| Destructive | #ca130cfirebrick | #f8312acrimson |
| Destructive foreground | #fffaf9snow | #ffffffwhite |
| Border | #e6e6eblavender | #1a1b1eblack |
| Input | #e6e6eblavender | #1a1b23black |
| Ring | #644edeslateblue | #4a34c5slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 5.69:1 | AA |
| Secondary button | 6.69:1 | AA |
| Muted text | 3.63:1 | AA Large |
| Accent | 7.75:1 | AAA |
| Destructive | 5.62:1 | AA |
| Text on background | 19.30:1 | AAA |
| Text on card | 19.15:1 | AAA |
| Primary button | 8.11:1 | AAA |
| Secondary button | 15.40:1 | AAA |
| Muted text | 3.70:1 | AA Large |
| Accent | 14.83:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use TEmplating in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 286.327);
--foreground: oklch(0.073 0.018 280.915);
--muted: oklch(0.904 0.006 274.96);
--muted-foreground: oklch(0.551 0.015 281.328);
--popover: oklch(0.989 0.004 286.327);
--popover-foreground: oklch(0.073 0.018 280.915);
--card: oklch(0.989 0.005 286.303);
--card-foreground: oklch(0 0 0);
--border: oklch(0.926 0.007 286.268);
--input: oklch(0.926 0.007 286.268);
--primary: oklch(0.532 0.209 283.679);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.937 0.001 286.374);
--secondary-foreground: oklch(0.432 0.007 274.842);
--accent: oklch(0.884 0.011 280.452);
--accent-foreground: oklch(0.358 0.028 282.095);
--destructive: oklch(0.533 0.211 29.178);
--destructive-foreground: oklch(0.989 0.006 31.053);
--ring: oklch(0.532 0.209 283.679);
--chart-1: oklch(0.452 0.211 280.679);
--chart-2: oklch(1 0 180);
--chart-3: oklch(0.81 0.142 96.209);
--chart-4: oklch(0.532 0.209 283.679);
--chart-5: oklch(0.532 0.209 283.679);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.164 0 180);
--foreground: oklch(1 0 180);
--muted: oklch(0.205 0.006 271.107);
--muted-foreground: oklch(0.551 0.015 281.328);
--popover: oklch(0.164 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.169 0.002 286.177);
--card-foreground: oklch(1 0 180);
--border: oklch(0.222 0.006 271.139);
--input: oklch(0.225 0.016 279.462);
--primary: oklch(0.452 0.211 280.679);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.245 0.01 276.688);
--secondary-foreground: oklch(0.982 0.009 292.8);
--accent: oklch(0.216 0.01 285.555);
--accent-foreground: oklch(0.945 0.027 281.318);
--destructive: oklch(0.634 0.233 28.309);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.452 0.211 280.679);
--chart-1: oklch(0.532 0.209 283.679);
--chart-2: oklch(0.276 0.041 275.482);
--chart-3: oklch(0.873 0.179 92.224);
--chart-4: oklch(0.452 0.211 280.679);
--chart-5: oklch(0.452 0.211 280.679);
}