Drag is a shadcn/ui theme built around a light orange primary color (#faf7f4) with light yellow accents (#fafaf4). The light mode uses a neutral background (#ffffff). Dark mode keeps the light orange primary (#faf7f4) on a neutral background (#080503).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #080503black |
| Foreground | #000000black | #faf7f5whitesmoke |
| Card | #ffffffwhite | #080503black |
| Card foreground | #000000black | #faf7f5whitesmoke |
| Popover | #ffffffwhite | #080503black |
| Popover foreground | #000000black | #faf7f5whitesmoke |
| Primary | #faf7f4whitesmoke | #faf7f4whitesmoke |
| Primary foreground | #3c2a1bdarkslategray | #3c2a1bdarkslategray |
| Secondary | #faf4f5whitesmoke | #faf4f5whitesmoke |
| Secondary foreground | #823a3esienna | #823a3esienna |
| Muted | #f3e7e8linen | #180c0dblack |
| Muted foreground | #69595adimgray | #a69697rosybrown |
| Accent | #fafaf4floralwhite | #fafaf4floralwhite |
| Accent foreground | #3c3a1bdarkslategray | #3c3a1bdarkslategray |
| Destructive | #b7410bfirebrick | #f37135tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #faf7f4whitesmoke | #faf7f4whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 12.79:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 5.49:1 | AA |
| Accent | 11.06:1 | AAA |
| Destructive | 5.54:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 12.79:1 | AAA |
| Secondary button | 7.38:1 | AAA |
| Muted text | 6.77:1 | AA |
| Accent | 11.06:1 | AAA |
| Destructive | 7.22:1 | AAA |
Paste this into your globals.css to use Drag in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.938 0.012 13.871);
--muted-foreground: oklch(0.48 0.02 14.46);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.978 0.005 62.127);
--primary-foreground: oklch(0.301 0.037 60.058);
--secondary: oklch(0.973 0.006 13.734);
--secondary-foreground: oklch(0.446 0.099 18.885);
--accent: oklch(0.984 0.007 104.098);
--accent-foreground: oklch(0.343 0.048 106.006);
--destructive: oklch(0.536 0.163 40.011);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.978 0.005 62.127);
--chart-1: oklch(0.978 0.005 62.127);
--chart-2: oklch(0.973 0.006 13.734);
--chart-3: oklch(0.984 0.007 104.098);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.978 0.005 62.122);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.117 0.011 69.534);
--foreground: oklch(0.978 0.004 62.141);
--muted: oklch(0.172 0.02 16.072);
--muted-foreground: oklch(0.688 0.018 14.142);
--popover: oklch(0.117 0.011 69.534);
--popover-foreground: oklch(0.978 0.004 62.141);
--card: oklch(0.117 0.011 69.534);
--card-foreground: oklch(0.978 0.004 62.141);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.978 0.005 62.127);
--primary-foreground: oklch(0.301 0.037 60.058);
--secondary: oklch(0.973 0.006 13.734);
--secondary-foreground: oklch(0.446 0.099 18.885);
--accent: oklch(0.984 0.007 104.098);
--accent-foreground: oklch(0.343 0.048 106.006);
--destructive: oklch(0.695 0.176 43.053);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.978 0.005 62.127);
--chart-1: oklch(0.978 0.005 62.127);
--chart-2: oklch(0.973 0.006 13.734);
--chart-3: oklch(0.984 0.007 104.098);
--chart-4: oklch(1 0 180);
--chart-5: oklch(0.978 0.005 62.122);
}