Search is a shadcn/ui theme built around a neutral gray primary color (#3b3c39) with neutral gray accents (#3a393c). The light mode uses a neutral background (#fdfefb). Dark mode keeps the neutral gray primary (#3b3c39) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #000000black |
| Foreground | #030401black | #fbfcf8snow |
| Card | #fdfefbwhite | #000000black |
| Card foreground | #030401black | #fbfcf8snow |
| Popover | #fdfefbwhite | #000000black |
| Popover foreground | #030401black | #fbfcf8snow |
| Primary | #3b3c39darkslategray | #3b3c39darkslategray |
| Primary foreground | #d4d5d3lightgrey | #d4d5d3lightgrey |
| Secondary | #3a393cdarkslategray | #3a393cdarkslategray |
| Secondary foreground | #d3d3d5lightgrey | #d3d3d5lightgrey |
| Muted | #dedce5gainsboro | #1c1a23black |
| Muted foreground | #4e4860darkslategray | #a59fb7darkgray |
| Accent | #3a393cdarkslategray | #3a393cdarkslategray |
| Accent foreground | #d3d3d5lightgrey | #d3d3d5lightgrey |
| Destructive | #700101maroon | #f40101red |
| Destructive foreground | #ffa4a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3b3c39darkslategray | #3b3c39darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.32:1 | AAA |
| Text on card | 20.32:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 6.38:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 6.57:1 | AA |
| Text on background | 20.38:1 | AAA |
| Text on card | 20.38:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.63:1 | AAA |
| Muted text | 6.74:1 | AA |
| Accent | 7.63:1 | AAA |
| Destructive | 4.34:1 | AA Large |
Paste this into your globals.css to use Search in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 117.904);
--foreground: oklch(0.105 0.018 118.059);
--muted: oklch(0.898 0.013 297.575);
--muted-foreground: oklch(0.418 0.039 296.119);
--popover: oklch(0.996 0.004 117.904);
--popover-foreground: oklch(0.105 0.018 118.059);
--card: oklch(0.996 0.004 117.904);
--card-foreground: oklch(0.105 0.018 118.059);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.354 0.004 118.028);
--primary-foreground: oklch(0.871 0.002 117.873);
--secondary: oklch(0.348 0.004 297.616);
--secondary-foreground: oklch(0.867 0.002 297.775);
--accent: oklch(0.348 0.004 297.616);
--accent-foreground: oklch(0.867 0.002 297.775);
--destructive: oklch(0.342 0.14 29.147);
--destructive-foreground: oklch(0.808 0.108 19.698);
--ring: oklch(0.354 0.004 118.028);
--chart-1: oklch(0.354 0.004 118.028);
--chart-2: oklch(0.348 0.004 297.616);
--chart-3: oklch(0.348 0.004 297.616);
--chart-4: oklch(0.377 0.005 297.611);
--chart-5: oklch(0.359 0.01 118.323);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.988 0.005 117.908);
--muted: oklch(0.225 0.018 296.386);
--muted-foreground: oklch(0.715 0.034 296.965);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.988 0.005 117.908);
--card: oklch(0 0 0);
--card-foreground: oklch(0.988 0.005 117.908);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.354 0.004 118.028);
--primary-foreground: oklch(0.871 0.002 117.873);
--secondary: oklch(0.348 0.004 297.616);
--secondary-foreground: oklch(0.867 0.002 297.775);
--accent: oklch(0.348 0.004 297.616);
--accent-foreground: oklch(0.867 0.002 297.775);
--destructive: oklch(0.607 0.249 29.2);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.354 0.004 118.028);
--chart-1: oklch(0.354 0.004 118.028);
--chart-2: oklch(0.348 0.004 297.616);
--chart-3: oklch(0.348 0.004 297.616);
--chart-4: oklch(0.377 0.005 297.611);
--chart-5: oklch(0.359 0.01 118.323);
}