Conduct is a shadcn/ui theme built around a light red primary color (#dbb2ad) with muted light red accents (#e5dcdc). The light mode uses a neutral background (#fcf8f7). Dark mode keeps the light red primary (#dbb2ad) on a red-tinted background (#0f0706).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f7snow | #0f0706black |
| Foreground | #120402black | #faf5f4whitesmoke |
| Card | #fcf8f7snow | #0f0706black |
| Card foreground | #120402black | #faf5f4whitesmoke |
| Popover | #fcf8f7snow | #0f0706black |
| Popover foreground | #120402black | #faf5f4whitesmoke |
| Primary | #dbb2adtan | #dbb2adtan |
| Primary foreground | #3c1e1ablack | #3c1e1ablack |
| Secondary | #e5dcdcgainsboro | #303030darkslategray |
| Secondary foreground | #533e3cdarkslategray | #c9c9c9silver |
| Muted | #eee3e2mistyrose | #1d1111black |
| Muted foreground | #554b4adarkslategray | #b5aaaadarkgray |
| Accent | #e5dcdcgainsboro | #303030darkslategray |
| Accent foreground | #533e3cdarkslategray | #c9c9c9silver |
| Destructive | #831507maroon | #f3341borangered |
| Destructive foreground | #fcc7c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dbb2adtan | #dbb2adtan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.71:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 18.48:1 | AAA |
| Text on card | 18.48:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 8.16:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.94:1 | AA Large |
Paste this into your globals.css to use Conduct in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 25.03);
--foreground: oklch(0.133 0.031 32.887);
--muted: oklch(0.924 0.013 25.107);
--muted-foreground: oklch(0.421 0.014 25.283);
--popover: oklch(0.982 0.005 25.03);
--popover-foreground: oklch(0.133 0.031 32.887);
--card: oklch(0.982 0.005 25.03);
--card-foreground: oklch(0.133 0.031 32.887);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.799 0.049 25.601);
--primary-foreground: oklch(0.275 0.048 27.307);
--secondary: oklch(0.903 0.01 25.08);
--secondary-foreground: oklch(0.387 0.029 25.787);
--accent: oklch(0.903 0.01 25.08);
--accent-foreground: oklch(0.387 0.029 25.787);
--destructive: oklch(0.395 0.146 31.058);
--destructive-foreground: oklch(0.874 0.061 27.066);
--ring: oklch(0.799 0.049 25.601);
--chart-1: oklch(0.799 0.049 25.601);
--chart-2: oklch(0.903 0.01 25.08);
--chart-3: oklch(0.903 0.01 25.08);
--chart-4: oklch(0.927 0.007 25.054);
--chart-5: oklch(0.798 0.052 25.661);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.016 28.137);
--foreground: oklch(0.974 0.006 25.04);
--muted: oklch(0.193 0.022 19.243);
--muted-foreground: oklch(0.749 0.013 17.442);
--popover: oklch(0.138 0.016 28.137);
--popover-foreground: oklch(0.974 0.006 25.04);
--card: oklch(0.138 0.016 28.137);
--card-foreground: oklch(0.974 0.006 25.04);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.799 0.049 25.601);
--primary-foreground: oklch(0.275 0.048 27.307);
--secondary: oklch(0.311 0 180);
--secondary-foreground: oklch(0.837 0 171.254);
--accent: oklch(0.311 0 180);
--accent-foreground: oklch(0.837 0 171.254);
--destructive: oklch(0.627 0.228 31.028);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.799 0.049 25.601);
--chart-1: oklch(0.799 0.049 25.601);
--chart-2: oklch(0.311 0 180);
--chart-3: oklch(0.311 0 180);
--chart-4: oklch(0.341 0 158.199);
--chart-5: oklch(0.798 0.052 25.661);
}