Obvious is a shadcn/ui theme built around a deep pink primary color (#49222e) with deep teal accents (#22493d). The light mode uses a neutral background (#fdf7f9). Dark mode keeps the deep pink primary (#49222e) on a neutral background (#080304).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf7f9snow | #080304black |
| Foreground | #15050ablack | #fbf9fasnow |
| Card | #fbf3f6lavenderblush | #0b0406black |
| Card foreground | #100408black | #fdfcfcsnow |
| Popover | #fdf7f9snow | #080304black |
| Popover foreground | #15050ablack | #fbf9fasnow |
| Primary | #49222edarkslategray | #49222edarkslategray |
| Primary foreground | #e0bdc8thistle | #e0bdc8thistle |
| Secondary | #22493ddarkslategray | #22493ddarkslategray |
| Secondary foreground | #bde0d5powderblue | #bde0d5powderblue |
| Muted | #edf2f1whitesmoke | #0d1210black |
| Muted foreground | #3b4a45darkslategray | #b5c4bfsilver |
| Accent | #22493ddarkslategray | #22493ddarkslategray |
| Accent foreground | #bde0d5powderblue | #bde0d5powderblue |
| Destructive | #863a0esaddlebrown | #e86d26chocolate |
| Destructive foreground | #faddccbisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #49222edarkslategray | #49222edarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.76:1 | AAA |
| Text on card | 18.50:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 8.27:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.58:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 7.91:1 | AAA |
| Secondary button | 7.05:1 | AAA |
| Muted text | 10.45:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 6.66:1 | AA |
Paste this into your globals.css to use Obvious in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.006 355.797);
--foreground: oklch(0.146 0.032 359.052);
--muted: oklch(0.958 0.006 175.423);
--muted-foreground: oklch(0.393 0.02 174.026);
--popover: oklch(0.981 0.006 355.797);
--popover-foreground: oklch(0.146 0.032 359.052);
--card: oklch(0.972 0.009 355.891);
--card-foreground: oklch(0.133 0.028 357.119);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.31 0.062 1.229);
--primary-foreground: oklch(0.831 0.044 357.078);
--secondary: oklch(0.374 0.05 170.571);
--secondary-foreground: oklch(0.879 0.041 174.191);
--accent: oklch(0.374 0.05 170.571);
--accent-foreground: oklch(0.879 0.041 174.191);
--destructive: oklch(0.444 0.117 45.606);
--destructive-foreground: oklch(0.917 0.039 52.031);
--ring: oklch(0.31 0.062 1.229);
--chart-1: oklch(0.31 0.062 1.229);
--chart-2: oklch(0.374 0.05 170.571);
--chart-3: oklch(0.374 0.05 170.571);
--chart-4: oklch(0.408 0.056 170.44);
--chart-5: oklch(0.31 0.067 1.738);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.016 355.348);
--foreground: oklch(0.983 0.002 355.688);
--muted: oklch(0.176 0.009 173.972);
--muted-foreground: oklch(0.808 0.017 174.981);
--popover: oklch(0.107 0.016 355.348);
--popover-foreground: oklch(0.983 0.002 355.688);
--card: oklch(0.123 0.018 355.476);
--card-foreground: oklch(0.992 0.001 355.651);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.31 0.062 1.229);
--primary-foreground: oklch(0.831 0.044 357.078);
--secondary: oklch(0.374 0.05 170.571);
--secondary-foreground: oklch(0.879 0.041 174.191);
--accent: oklch(0.374 0.05 170.571);
--accent-foreground: oklch(0.879 0.041 174.191);
--destructive: oklch(0.673 0.172 46.184);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.31 0.062 1.229);
--chart-1: oklch(0.31 0.062 1.229);
--chart-2: oklch(0.374 0.05 170.571);
--chart-3: oklch(0.374 0.05 170.571);
--chart-4: oklch(0.408 0.056 170.44);
--chart-5: oklch(0.31 0.067 1.738);
}