Django is a shadcn/ui theme built around a deep teal primary color (#0c4b33) with neutral gray accents (#d1d1d1). The light mode uses a neutral background (#f7f7f7). Dark mode keeps the deep teal primary (#0c4b33) on a neutral background (#f7f7f7).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Foreground | #0c4b33darkslategray | #0c4b33darkslategray |
| Card | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Card foreground | #093524darkgreen | #093524darkgreen |
| Popover | #f0f0f0whitesmoke | #f0f0f0whitesmoke |
| Popover foreground | #051f15black | #051f15black |
| Primary | #0c4b33darkslategray | #0c4b33darkslategray |
| Primary foreground | #42e0a4mediumaquamarine | #42e0a4mediumaquamarine |
| Secondary | #acd2c4silver | #acd2c4silver |
| Secondary foreground | #1b3229darkslategray | #1b3229darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d1d1d1lightgrey | #d1d1d1lightgrey |
| Accent foreground | #383838darkslategray | #383838darkslategray |
| Destructive | #b01403firebrick | #b01403firebrick |
| Destructive foreground | #ffe8e6mistyrose | #ffe8e6mistyrose |
| Border | #ebebeblinen | #ebebeblinen |
| Input | #e3e3e3gainsboro | #e3e3e3gainsboro |
| Ring | #0c4b33darkslategray | #0c4b33darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 9.49:1 | AAA |
| Text on card | 12.15:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.09:1 | AA |
| Text on background | 9.49:1 | AAA |
| Text on card | 12.15:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 8.34:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.68:1 | AAA |
| Destructive | 6.09:1 | AA |
Paste this into your globals.css to use Django in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.977 0 180);
--foreground: oklch(0.366 0.074 162.113);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.954 0 180);
--popover-foreground: oklch(0.214 0.038 164.977);
--card: oklch(0.962 0 180);
--card-foreground: oklch(0.293 0.056 162.956);
--border: oklch(0.939 0 180);
--input: oklch(0.916 0 180);
--primary: oklch(0.366 0.074 162.113);
--primary-foreground: oklch(0.812 0.157 162.913);
--secondary: oklch(0.833 0.045 169.92);
--secondary-foreground: oklch(0.294 0.033 167.674);
--accent: oklch(0.861 0 180);
--accent-foreground: oklch(0.341 0 158.199);
--destructive: oklch(0.482 0.188 30.526);
--destructive-foreground: oklch(0.949 0.025 25.221);
--ring: oklch(0.366 0.074 162.113);
--chart-1: oklch(0.366 0.074 162.113);
--chart-2: oklch(0.833 0.045 169.92);
--chart-3: oklch(0.861 0 180);
--chart-4: oklch(0.853 0.04 170.173);
--chart-5: oklch(0.37 0.076 161.746);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.977 0 180);
--foreground: oklch(0.366 0.074 162.113);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.954 0 180);
--popover-foreground: oklch(0.214 0.038 164.977);
--card: oklch(0.962 0 180);
--card-foreground: oklch(0.293 0.056 162.956);
--border: oklch(0.939 0 180);
--input: oklch(0.916 0 180);
--primary: oklch(0.366 0.074 162.113);
--primary-foreground: oklch(0.812 0.157 162.913);
--secondary: oklch(0.833 0.045 169.92);
--secondary-foreground: oklch(0.294 0.033 167.674);
--accent: oklch(0.861 0 180);
--accent-foreground: oklch(0.341 0 158.199);
--destructive: oklch(0.482 0.188 30.526);
--destructive-foreground: oklch(0.949 0.025 25.221);
--ring: oklch(0.366 0.074 162.113);
--chart-1: oklch(0.366 0.074 162.113);
--chart-2: oklch(0.833 0.045 169.92);
--chart-3: oklch(0.861 0 180);
--chart-4: oklch(0.853 0.04 170.173);
--chart-5: oklch(0.37 0.076 161.746);
}