Ordinary Blue Dahlia is a shadcn/ui theme built around a blue primary color (#3e5aa3) with muted deep indigo accents (#3a3c55). The light mode uses an indigo-tinted background (#1b1c27). Dark mode keeps the blue primary (#3e5aa3) on an indigo-tinted background (#1b1c27).
| Token | Light | Dark |
|---|---|---|
| Background | #1b1c27black | #1b1c27black |
| Foreground | #a9b1d6lightsteelblue | #a9b1d6lightsteelblue |
| Card | #171821black | #171821black |
| Card foreground | #bac1delightsteelblue | #bac1delightsteelblue |
| Popover | #15151eblack | #15151eblack |
| Popover foreground | #cbd0e6lightgrey | #cbd0e6lightgrey |
| Primary | #3e5aa3darkslateblue | #3e5aa3darkslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acb7d2lightsteelblue | #acb7d2lightsteelblue |
| Secondary foreground | #1b2132darkslategray | #1b2132darkslategray |
| Muted | #262731darkslategray | #262731darkslategray |
| Muted foreground | #a1a2b5darkgray | #a1a2b5darkgray |
| Accent | #3a3c55darkslategray | #3a3c55darkslategray |
| Accent foreground | #dbdce6gainsboro | #dbdce6gainsboro |
| Destructive | #d13115firebrick | #d13115firebrick |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2a2a32darkslategray | #2a2a32darkslategray |
| Input | #31323adarkslategray | #31323adarkslategray |
| Ring | #3e5aa3darkslateblue | #3e5aa3darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 8.01:1 | AAA |
| Text on card | 9.92:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 5.05:1 | AA |
| Text on background | 8.01:1 | AAA |
| Text on card | 9.92:1 | AAA |
| Primary button | 6.55:1 | AA |
| Secondary button | 7.98:1 | AAA |
| Muted text | 5.89:1 | AA |
| Accent | 7.85:1 | AAA |
| Destructive | 5.05:1 | AA |
Paste this into your globals.css to use Ordinary Blue Dahlia in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.23 0.022 280.437);
--foreground: oklch(0.767 0.053 275.156);
--muted: oklch(0.276 0.018 281.084);
--muted-foreground: oklch(0.718 0.027 281.571);
--popover: oklch(0.201 0.018 280.609);
--popover-foreground: oklch(0.861 0.031 275.674);
--card: oklch(0.211 0.019 280.545);
--card-foreground: oklch(0.814 0.042 275.44);
--border: oklch(0.289 0.014 281.384);
--input: oklch(0.318 0.016 281.352);
--primary: oklch(0.484 0.121 265.821);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.78 0.041 268.343);
--secondary-foreground: oklch(0.251 0.033 267.437);
--accent: oklch(0.365 0.043 280.019);
--accent-foreground: oklch(0.896 0.015 281.94);
--destructive: oklch(0.564 0.2 32.15);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.484 0.121 265.821);
--chart-1: oklch(0.484 0.121 265.821);
--chart-2: oklch(0.78 0.041 268.343);
--chart-3: oklch(0.365 0.043 280.019);
--chart-4: oklch(0.807 0.036 268.425);
--chart-5: oklch(0.481 0.129 265.579);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.23 0.022 280.437);
--foreground: oklch(0.767 0.053 275.156);
--muted: oklch(0.276 0.018 281.084);
--muted-foreground: oklch(0.718 0.027 281.571);
--popover: oklch(0.201 0.018 280.609);
--popover-foreground: oklch(0.861 0.031 275.674);
--card: oklch(0.211 0.019 280.545);
--card-foreground: oklch(0.814 0.042 275.44);
--border: oklch(0.289 0.014 281.384);
--input: oklch(0.318 0.016 281.352);
--primary: oklch(0.484 0.121 265.821);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.78 0.041 268.343);
--secondary-foreground: oklch(0.251 0.033 267.437);
--accent: oklch(0.365 0.043 280.019);
--accent-foreground: oklch(0.896 0.015 281.94);
--destructive: oklch(0.564 0.2 32.15);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.484 0.121 265.821);
--chart-1: oklch(0.484 0.121 265.821);
--chart-2: oklch(0.78 0.041 268.343);
--chart-3: oklch(0.365 0.043 280.019);
--chart-4: oklch(0.807 0.036 268.425);
--chart-5: oklch(0.481 0.129 265.579);
}