Light Lavender :) is a shadcn/ui theme built around a vivid light violet primary color (#ddc3fe) with neutral gray accents (#d1d1d1). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#ddc3fe) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020104black | #f7f6f9whitesmoke |
| Card | #ffffffwhite | #0f0e10black |
| Card foreground | #020104black | #f7f6f9whitesmoke |
| Popover | #ffffffwhite | #020104black |
| Popover foreground | #020104black | #f7f6f9whitesmoke |
| Primary | #ddc3felavender | #ddc3felavender |
| Primary foreground | #40028dindigo | #40028dindigo |
| Secondary | #d1d1d1lightgrey | #231f28black |
| Secondary foreground | #383838darkslategray | #bcb4c5silver |
| Muted | #eae6e6linen | #171519black |
| Muted foreground | #534646darkslategray | #b2acb9darkgray |
| Accent | #d1d1d1lightgrey | #231f28black |
| Accent foreground | #383838darkslategray | #bcb4c5silver |
| Destructive | #8d2207darkred | #b21919firebrick |
| Destructive foreground | #fcd4c9bisque | #ffffffwhite |
| Border | #f2f1f3whitesmoke | #1c1a1eblack |
| Input | #f2f1f3whitesmoke | #1c1a1eblack |
| Ring | #ddc3felavender | #ddc3felavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.81:1 | AAA |
| Text on card | 20.81:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.68:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.50:1 | AAA |
| Text on card | 17.88:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.18:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.86:1 | AA |
Paste this into your globals.css to use Light Lavender :) in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.077 0.022 308.214);
--muted: oklch(0.929 0.003 17.22);
--muted-foreground: oklch(0.408 0.017 17.857);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.077 0.022 308.214);
--card: oklch(1 0 180);
--card-foreground: oklch(0.077 0.022 308.214);
--border: oklch(0.961 0.002 306.4);
--input: oklch(0.961 0.002 306.4);
--primary: oklch(0.858 0.086 305.146);
--primary-foreground: oklch(0.338 0.187 291.991);
--secondary: oklch(0.861 0 180);
--secondary-foreground: oklch(0.341 0 158.199);
--accent: oklch(0.861 0 180);
--accent-foreground: oklch(0.341 0 158.199);
--destructive: oklch(0.425 0.147 33.962);
--destructive-foreground: oklch(0.901 0.048 34.343);
--ring: oklch(0.858 0.086 305.146);
--chart-1: oklch(0.858 0.086 305.146);
--chart-2: oklch(0.861 0 180);
--chart-3: oklch(0.861 0 180);
--chart-4: oklch(0.885 0 180);
--chart-5: oklch(0.857 0.088 305.103);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.974 0.005 306.361);
--muted: oklch(0.2 0.007 306.002);
--muted-foreground: oklch(0.754 0.018 306.118);
--popover: oklch(0.082 0.015 307.548);
--popover-foreground: oklch(0.974 0.005 306.361);
--card: oklch(0.166 0.004 308.165);
--card-foreground: oklch(0.974 0.005 306.361);
--border: oklch(0.223 0.007 306.036);
--input: oklch(0.223 0.007 306.036);
--primary: oklch(0.858 0.086 305.146);
--primary-foreground: oklch(0.338 0.187 291.991);
--secondary: oklch(0.248 0.018 305.486);
--secondary-foreground: oklch(0.782 0.026 306.011);
--accent: oklch(0.248 0.018 305.486);
--accent-foreground: oklch(0.782 0.026 306.011);
--destructive: oklch(0.491 0.186 27.654);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.858 0.086 305.146);
--chart-1: oklch(0.858 0.086 305.146);
--chart-2: oklch(0.248 0.018 305.486);
--chart-3: oklch(0.248 0.018 305.486);
--chart-4: oklch(0.278 0.022 305.433);
--chart-5: oklch(0.857 0.088 305.103);
}