discord is a shadcn/ui theme built around a pink primary color (#ba4f7d) with muted light pink accents (#dac8d0). The light mode uses a neutral background (#ffffff). Dark mode switches to a blue primary (#7289da) on a blue-tinted background (#282b30).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #282b30darkslategray |
| Foreground | #040102black | #fcf8fasnow |
| Card | #ffffffwhite | #1e2124black |
| Card foreground | #040102black | #fcf8fasnow |
| Popover | #ffffffwhite | #1e2124black |
| Popover foreground | #040102black | #fcf8fasnow |
| Primary | #ba4f7dindianred | #7289dacornflowerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e8e3e5gainsboro | #424549darkslategray |
| Secondary foreground | #55444bdarkslategray | #ffffffwhite |
| Muted | #f7eef2whitesmoke | #1e2124black |
| Muted foreground | #67565ddimgray | #9b9b9bdarkgray |
| Accent | #dac8d0thistle | #282b30darkslategray |
| Accent foreground | #432d37darkslategray | #7289dacornflowerblue |
| Destructive | #712504maroon | #da373ccrimson |
| Destructive foreground | #fcc4abpeachpuff | #ffffffwhite |
| Border | #f3f2f2whitesmoke | #2f2f2fdarkslategray |
| Input | #f3f2f2whitesmoke | #424549darkslategray |
| Ring | #ba4f7dindianred | #282b30darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.78:1 | AAA |
| Primary button | 4.65:1 | AA |
| Secondary button | 7.14:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 7.88:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 13.49:1 | AAA |
| Text on card | 15.36:1 | AAA |
| Primary button | 3.32:1 | AA Large |
| Secondary button | 9.63:1 | AAA |
| Muted text | 5.82:1 | AA |
| Accent | 4.26:1 | AA Large |
| Destructive | 4.57:1 | AA |
Paste this into your globals.css to use discord in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.084 0.015 348.404);
--muted: oklch(0.957 0.011 349.046);
--muted-foreground: oklch(0.472 0.025 350.144);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.084 0.015 348.404);
--card: oklch(1 0 180);
--card-foreground: oklch(0.084 0.015 348.404);
--border: oklch(0.961 0.002 348.778);
--input: oklch(0.961 0.002 348.778);
--primary: oklch(0.579 0.147 355.605);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.92 0.007 348.94);
--secondary-foreground: oklch(0.407 0.026 350.409);
--accent: oklch(0.85 0.023 349.473);
--accent-foreground: oklch(0.327 0.036 351.632);
--destructive: oklch(0.377 0.115 39.708);
--destructive-foreground: oklch(0.863 0.073 44.314);
--ring: oklch(0.579 0.147 355.605);
--chart-1: oklch(0.579 0.147 355.605);
--chart-2: oklch(0.92 0.007 348.94);
--chart-3: oklch(0.85 0.023 349.473);
--chart-4: oklch(0.944 0.005 348.874);
--chart-5: oklch(0.58 0.156 356.114);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.288 0.01 260.707);
--foreground: oklch(0.983 0.004 348.851);
--muted: oklch(0.246 0.007 248.122);
--muted-foreground: oklch(0.689 0 164.055);
--popover: oklch(0.246 0.007 248.122);
--popover-foreground: oklch(0.983 0.004 348.851);
--card: oklch(0.246 0.007 248.122);
--card-foreground: oklch(0.983 0.004 348.851);
--border: oklch(0.305 0 171.87);
--input: oklch(0.389 0.008 255.543);
--primary: oklch(0.647 0.124 270.623);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.389 0.008 255.543);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.288 0.01 260.707);
--accent-foreground: oklch(0.647 0.124 270.623);
--destructive: oklch(0.588 0.199 24.393);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.288 0.01 260.707);
--chart-1: oklch(0.647 0.124 270.623);
--chart-2: oklch(0.389 0.008 255.543);
--chart-3: oklch(0.288 0.01 260.707);
--chart-4: oklch(0.417 0.009 255.544);
--chart-5: oklch(0.644 0.131 270.422);
}