Ornate is a shadcn/ui theme built around a vivid indigo primary color (#1f0ced) with muted light indigo accents (#b9b7d2). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the vivid indigo primary (#1f0ced) on an indigo-tinted background (#04030c).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #04030cblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #f5f4fbwhitesmoke | #060510black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8f8fcghostwhite | #04030cblack |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #1f0cedblue | #1f0cedblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #cdccdblightgrey | #25242edarkslategray |
| Secondary foreground | #323045darkslategray | #bcbac9silver |
| Muted | #ebeaf6lavender | #0a0915black |
| Muted foreground | #43424ddarkslategray | #b3b2bdsilver |
| Accent | #b9b7d2lightsteelblue | #323045darkslategray |
| Accent foreground | #232135darkslategray | #cdccdblightgrey |
| Destructive | #c64d0cchocolate | #f16113chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f0cedblue | #1f0cedblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.78:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 8.96:1 | AAA |
| Secondary button | 8.05:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 8.02:1 | AAA |
| Destructive | 4.72:1 | AA |
| Text on background | 20.47:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.96:1 | AAA |
| Secondary button | 8.04:1 | AAA |
| Muted text | 9.40:1 | AAA |
| Accent | 8.05:1 | AAA |
| Destructive | 6.45:1 | AA |
Paste this into your globals.css to use Ornate in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 290.132);
--foreground: oklch(0 0 0);
--muted: oklch(0.94 0.016 289.925);
--muted-foreground: oklch(0.383 0.019 289.279);
--popover: oklch(0.98 0.006 290.132);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.969 0.009 290.073);
--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.439 0.289 267.445);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.85 0.021 289.767);
--secondary-foreground: oklch(0.321 0.037 287.918);
--accent: oklch(0.789 0.038 289.322);
--accent-foreground: oklch(0.261 0.037 287.353);
--destructive: oklch(0.574 0.168 42.188);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.439 0.289 267.445);
--chart-1: oklch(0.439 0.289 267.445);
--chart-2: oklch(0.85 0.021 289.767);
--chart-3: oklch(0.789 0.038 289.322);
--chart-4: oklch(0.877 0.018 289.868);
--chart-5: oklch(0.442 0.294 266.846);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.11 0.024 287.222);
--foreground: oklch(1 0 180);
--muted: oklch(0.15 0.025 286.759);
--muted-foreground: oklch(0.768 0.016 289.848);
--popover: oklch(0.11 0.024 287.222);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.028 286.668);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.439 0.289 267.445);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.265 0.018 288.916);
--secondary-foreground: oklch(0.796 0.021 289.756);
--accent: oklch(0.321 0.037 287.918);
--accent-foreground: oklch(0.85 0.021 289.767);
--destructive: oklch(0.668 0.194 42.454);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.439 0.289 267.445);
--chart-1: oklch(0.439 0.289 267.445);
--chart-2: oklch(0.265 0.018 288.916);
--chart-3: oklch(0.321 0.037 287.918);
--chart-4: oklch(0.294 0.021 288.853);
--chart-5: oklch(0.442 0.294 266.846);
}