Okra is a shadcn/ui theme built around a light indigo primary color (#ae9df1) with light violet accents (#d89df1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light indigo primary (#ae9df1) on a neutral background (#020104).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #020104black |
| Foreground | #000000black | #f6f5fawhitesmoke |
| Card | #ffffffwhite | #020104black |
| Card foreground | #000000black | #f6f5fawhitesmoke |
| Popover | #ffffffwhite | #020104black |
| Popover foreground | #000000black | #f6f5fawhitesmoke |
| Primary | #ae9df1lightsteelblue | #ae9df1lightsteelblue |
| Primary foreground | #190b50midnightblue | #190b50midnightblue |
| Secondary | #9db6f1lightsteelblue | #9db6f1lightsteelblue |
| Secondary foreground | #0b2050midnightblue | #0b2050midnightblue |
| Muted | #eeeff2whitesmoke | #0d0e11black |
| Muted foreground | #5e636edimgray | #9196a1lightslategray |
| Accent | #d89df1plum | #d89df1plum |
| Accent foreground | #3c0b50midnightblue | #3c0b50midnightblue |
| Destructive | #631708maroon | #ed4726orangered |
| Destructive foreground | #f8b3a5lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ae9df1lightsteelblue | #ae9df1lightsteelblue |
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 | 7.36:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 5.22:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 7.22:1 | AAA |
| Text on background | 19.16:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 7.36:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.36:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Okra in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.952 0.004 267.394);
--muted-foreground: oklch(0.499 0.019 267.154);
--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.742 0.12 292.392);
--primary-foreground: oklch(0.231 0.115 281.663);
--secondary: oklch(0.779 0.089 266.411);
--secondary-foreground: oklch(0.261 0.093 263.701);
--accent: oklch(0.781 0.132 315.383);
--accent-foreground: oklch(0.277 0.119 312.993);
--destructive: oklch(0.333 0.111 33.089);
--destructive-foreground: oklch(0.828 0.083 31.578);
--ring: oklch(0.742 0.12 292.392);
--chart-1: oklch(0.742 0.12 292.392);
--chart-2: oklch(0.779 0.089 266.411);
--chart-3: oklch(0.781 0.132 315.383);
--chart-4: oklch(0.809 0.076 266.629);
--chart-5: oklch(0.739 0.125 292.235);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.013 294.878);
--foreground: oklch(0.972 0.007 295.446);
--muted: oklch(0.166 0.007 267.142);
--muted-foreground: oklch(0.672 0.018 267.248);
--popover: oklch(0.081 0.013 294.878);
--popover-foreground: oklch(0.972 0.007 295.446);
--card: oklch(0.081 0.013 294.878);
--card-foreground: oklch(0.972 0.007 295.446);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.742 0.12 292.392);
--primary-foreground: oklch(0.231 0.115 281.663);
--secondary: oklch(0.779 0.089 266.411);
--secondary-foreground: oklch(0.261 0.093 263.701);
--accent: oklch(0.781 0.132 315.383);
--accent-foreground: oklch(0.277 0.119 312.993);
--destructive: oklch(0.634 0.208 33.097);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.742 0.12 292.392);
--chart-1: oklch(0.742 0.12 292.392);
--chart-2: oklch(0.779 0.089 266.411);
--chart-3: oklch(0.781 0.132 315.383);
--chart-4: oklch(0.809 0.076 266.629);
--chart-5: oklch(0.739 0.125 292.235);
}