Input is a shadcn/ui theme built around a vivid light violet primary color (#f1e6fe) with neutral gray accents (#ccc9cf). The light mode uses a neutral background (#faf8fc). Dark mode keeps the vivid light violet primary (#f1e6fe) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #020104black |
| Foreground | #000000black | #fcfcfdwhite |
| Card | #f7f4fawhitesmoke | #050208black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #faf8fcghostwhite | #020104black |
| Popover foreground | #000000black | #fcfcfdwhite |
| Primary | #f1e6felavender | #f1e6felavender |
| Primary foreground | #4e06acindigo | #4e06acindigo |
| Secondary | #ccc9cflightgrey | #171717black |
| Secondary foreground | #333036darkslategray | #b0afb1darkgray |
| Muted | #e0dee3gainsboro | #1e1c21black |
| Muted foreground | #666468dimgray | #99979bdarkgray |
| Accent | #ccc9cflightgrey | #171717black |
| Accent foreground | #333036darkslategray | #b0afb1darkgray |
| Destructive | #a9400fsaddlebrown | #ee733atomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f1e6felavender | #f1e6felavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 4.38:1 | AA Large |
| Accent | 7.94:1 | AAA |
| Destructive | 6.15:1 | AA |
| Text on background | 20.28:1 | AAA |
| Text on card | 20.60:1 | AAA |
| Primary button | 9.00:1 | AAA |
| Secondary button | 8.22:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 8.22:1 | AAA |
| Destructive | 7.14:1 | AAA |
Paste this into your globals.css to use Input in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 305.66);
--foreground: oklch(0 0 0);
--muted: oklch(0.904 0.007 305.637);
--muted-foreground: oklch(0.506 0.007 305.563);
--popover: oklch(0.981 0.006 305.66);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.972 0.009 305.619);
--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.941 0.033 305.267);
--primary-foreground: oklch(0.391 0.216 290.76);
--secondary: oklch(0.841 0.007 305.622);
--secondary-foreground: oklch(0.315 0.009 305.341);
--accent: oklch(0.841 0.007 305.622);
--accent-foreground: oklch(0.315 0.009 305.341);
--destructive: oklch(0.51 0.149 40.886);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.941 0.033 305.267);
--chart-1: oklch(0.941 0.033 305.267);
--chart-2: oklch(0.841 0.007 305.622);
--chart-3: oklch(0.841 0.007 305.622);
--chart-4: oklch(0.865 0.006 305.643);
--chart-5: oklch(0.941 0.035 305.252);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.08 0.018 307.034);
--foreground: oklch(0.991 0.002 305.717);
--muted: oklch(0.232 0.01 305.177);
--muted-foreground: oklch(0.679 0.006 305.617);
--popover: oklch(0.08 0.018 307.034);
--popover-foreground: oklch(0.991 0.002 305.717);
--card: oklch(0.101 0.022 307.034);
--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.941 0.033 305.267);
--primary-foreground: oklch(0.391 0.216 290.76);
--secondary: oklch(0.204 0.001 305.677);
--secondary-foreground: oklch(0.756 0.002 305.698);
--accent: oklch(0.204 0.001 305.677);
--accent-foreground: oklch(0.756 0.002 305.698);
--destructive: oklch(0.691 0.167 43.473);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.941 0.033 305.267);
--chart-1: oklch(0.941 0.033 305.267);
--chart-2: oklch(0.204 0.001 305.677);
--chart-3: oklch(0.204 0.001 305.677);
--chart-4: oklch(0.237 0.001 305.671);
--chart-5: oklch(0.941 0.035 305.252);
}