Import is a shadcn/ui theme built around an indigo primary color (#6a60c3) with green accents (#b9c360). The light mode uses a neutral background (#ffffff). Dark mode keeps the indigo primary (#6a60c3) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030208black |
| Foreground | #020208black | #fcfcfdwhite |
| Card | #ffffffwhite | #030208black |
| Card foreground | #020208black | #fcfcfdwhite |
| Popover | #ffffffwhite | #030208black |
| Popover foreground | #020208black | #fcfcfdwhite |
| Primary | #6a60c3slateblue | #6a60c3slateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #b9c360darkkhaki | #b9c360darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #f3f3f1whitesmoke | #0d0e0cblack |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #b9c360darkkhaki | #b9c360darkkhaki |
| Accent foreground | #000000black | #000000black |
| Destructive | #682803maroon | #f97224tomato |
| Destructive foreground | #fdc2a1navajowhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6a60c3slateblue | #6a60c3slateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.69:1 | AAA |
| Text on card | 20.69:1 | AAA |
| Primary button | 5.15:1 | AA |
| Secondary button | 11.00:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 11.00:1 | AAA |
| Destructive | 7.06:1 | AAA |
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 5.15:1 | AA |
| Secondary button | 11.00:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 11.00:1 | AAA |
| Destructive | 7.49:1 | AAA |
Paste this into your globals.css to use Import in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.025 287.648);
--muted: oklch(0.964 0.002 111.053);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.025 287.648);
--card: oklch(1 0 180);
--card-foreground: oklch(0.093 0.025 287.648);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.547 0.149 284.895);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.788 0.124 113.981);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.788 0.124 113.981);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.366 0.103 44.672);
--destructive-foreground: oklch(0.859 0.081 51.369);
--ring: oklch(0.547 0.149 284.895);
--chart-1: oklch(0.547 0.149 284.895);
--chart-2: oklch(0.788 0.124 113.981);
--chart-3: oklch(0.788 0.124 113.981);
--chart-4: oklch(0.802 0.117 113.735);
--chart-5: oklch(0.541 0.158 284.315);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.022 288.081);
--foreground: oklch(0.991 0.001 290.991);
--muted: oklch(0.161 0.003 111.382);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.095 0.022 288.081);
--popover-foreground: oklch(0.991 0.001 290.991);
--card: oklch(0.095 0.022 288.081);
--card-foreground: oklch(0.991 0.001 290.991);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.547 0.149 284.895);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.788 0.124 113.981);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.788 0.124 113.981);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.705 0.185 45.629);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.547 0.149 284.895);
--chart-1: oklch(0.547 0.149 284.895);
--chart-2: oklch(0.788 0.124 113.981);
--chart-3: oklch(0.788 0.124 113.981);
--chart-4: oklch(0.802 0.117 113.735);
--chart-5: oklch(0.541 0.158 284.315);
}