Sign is a shadcn/ui theme built around a deep violet primary color (#170f2e) with muted light violet accents (#beb7d1). The light mode uses a neutral background (#f9f8fc). Dark mode keeps the deep violet primary (#170f2e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f9f8fcghostwhite | #000000black |
| Foreground | #000000black | #f9f8fcghostwhite |
| Card | #f9f8fcghostwhite | #000000black |
| Card foreground | #000000black | #f9f8fcghostwhite |
| Popover | #f9f8fcghostwhite | #000000black |
| Popover foreground | #000000black | #f9f8fcghostwhite |
| Primary | #170f2eblack | #170f2eblack |
| Primary foreground | #a593dcmediumpurple | #a593dcmediumpurple |
| Secondary | #cecbd8lightgrey | #292537darkslategray |
| Secondary foreground | #343040darkslategray | #c1bcd2silver |
| Muted | #e3dff1lavender | #120e20black |
| Muted foreground | #4b4a4fdarkslategray | #b1b0b5darkgray |
| Accent | #beb7d1silver | #352d4ddarkslategray |
| Accent foreground | #272235darkslategray | #d1cce1lightgrey |
| Destructive | #ad2000firebrick | #ff2f00orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #170f2eblack | #170f2eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.80:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 6.72:1 | AA |
| Accent | 7.99:1 | AAA |
| Destructive | 7.02:1 | AAA |
| Text on background | 19.86:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 6.82:1 | AA |
| Secondary button | 8.06:1 | AAA |
| Muted text | 8.78:1 | AAA |
| Accent | 8.19:1 | AAA |
| Destructive | 3.71:1 | AA Large |
Paste this into your globals.css to use Sign in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 297.713);
--foreground: oklch(0 0 0);
--muted: oklch(0.912 0.025 297.333);
--muted-foreground: oklch(0.413 0.008 297.494);
--popover: oklch(0.98 0.006 297.713);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.98 0.006 297.713);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.199 0.06 291.5);
--primary-foreground: oklch(0.707 0.106 295.032);
--secondary: oklch(0.848 0.018 297.448);
--secondary-foreground: oklch(0.321 0.028 296.245);
--accent: oklch(0.794 0.037 296.999);
--accent-foreground: oklch(0.266 0.036 295.351);
--destructive: oklch(0.484 0.18 32.71);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.06 291.5);
--chart-1: oklch(0.199 0.06 291.5);
--chart-2: oklch(0.848 0.018 297.448);
--chart-3: oklch(0.794 0.037 296.999);
--chart-4: oklch(0.873 0.015 297.523);
--chart-5: oklch(0.197 0.063 290.977);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.005 297.728);
--muted: oklch(0.179 0.037 293.802);
--muted-foreground: oklch(0.76 0.007 297.671);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.005 297.728);
--card: oklch(0 0 0);
--card-foreground: oklch(0.981 0.005 297.728);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.199 0.06 291.5);
--primary-foreground: oklch(0.707 0.106 295.032);
--secondary: oklch(0.277 0.034 295.575);
--secondary-foreground: oklch(0.806 0.032 297.121);
--accent: oklch(0.322 0.056 294.528);
--accent-foreground: oklch(0.855 0.03 297.207);
--destructive: oklch(0.644 0.243 32.1);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.199 0.06 291.5);
--chart-1: oklch(0.199 0.06 291.5);
--chart-2: oklch(0.277 0.034 295.575);
--chart-3: oklch(0.322 0.056 294.528);
--chart-4: oklch(0.304 0.039 295.485);
--chart-5: oklch(0.197 0.063 290.977);
}