Significance is a shadcn/ui theme built around a blue primary color (#41559f) with violet accents (#5c419f). The light mode uses a neutral background (#ffffff). Dark mode keeps the blue primary (#41559f) on a blue-tinted background (#05060a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #05060ablack |
| Foreground | #05070fblack | #fcfcfdwhite |
| Card | #fcfcfcsnow | #07080eblack |
| Card foreground | #04050bblack | #ffffffwhite |
| Popover | #fcfcfcsnow | #07080eblack |
| Popover foreground | #04050bblack | #ffffffwhite |
| Primary | #41559fdarkslateblue | #41559fdarkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #41859fsteelblue | #41859fsteelblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dde9eelavender | #111d22black |
| Muted foreground | #38474cdarkslategray | #b3c1c7silver |
| Accent | #5c419frebeccapurple | #5c419frebeccapurple |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #690807maroon | #d8110ered |
| Destructive foreground | #f9aaa9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #41559fdarkslateblue | #41559fdarkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.11:1 | AAA |
| Text on card | 19.91:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 4.14:1 | AA Large |
| Muted text | 7.81:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.74:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 6.90:1 | AA |
| Secondary button | 4.14:1 | AA Large |
| Muted text | 9.28:1 | AAA |
| Accent | 7.73:1 | AAA |
| Destructive | 5.25:1 | AA |
Paste this into your globals.css to use Significance in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.132 0.019 268.684);
--muted: oklch(0.927 0.015 223.3);
--muted-foreground: oklch(0.386 0.021 223.842);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.12 0.016 267.809);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.12 0.016 267.809);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.473 0.121 269.668);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.582 0.08 226.471);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.455 0.146 292.699);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.334 0.129 28.508);
--destructive-foreground: oklch(0.814 0.094 20.393);
--ring: oklch(0.473 0.121 269.668);
--chart-1: oklch(0.473 0.121 269.668);
--chart-2: oklch(0.582 0.08 226.471);
--chart-3: oklch(0.455 0.146 292.699);
--chart-4: oklch(0.611 0.084 226.508);
--chart-5: oklch(0.469 0.13 269.271);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.011 269.762);
--foreground: oklch(0.992 0.001 273.858);
--muted: oklch(0.223 0.02 224.653);
--muted-foreground: oklch(0.802 0.018 223.371);
--popover: oklch(0.136 0.013 270.521);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.013 270.521);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.473 0.121 269.668);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.582 0.08 226.471);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.455 0.146 292.699);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.558 0.223 28.936);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.473 0.121 269.668);
--chart-1: oklch(0.473 0.121 269.668);
--chart-2: oklch(0.582 0.08 226.471);
--chart-3: oklch(0.455 0.146 292.699);
--chart-4: oklch(0.611 0.084 226.508);
--chart-5: oklch(0.469 0.13 269.271);
}