Osmosis is a shadcn/ui theme built around a pink primary color (#dd3c69) with teal accents (#3cddaf). The light mode uses a neutral background (#fefbfc). Dark mode keeps the pink primary (#dd3c69) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #000000black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fefbfcsnow | #000000black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #fefbfcsnow | #000000black |
| Popover foreground | #000000black | #fdfcfcsnow |
| Primary | #dd3c69indianred | #dd3c69indianred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #3cddafturquoise | #3cddafturquoise |
| Secondary foreground | #0b4132darkslategray | #0b4132darkslategray |
| Muted | #dce0dfgainsboro | #1f2322black |
| Muted foreground | #425751darkslategray | #a8bdb7darkgray |
| Accent | #3cddafturquoise | #3cddafturquoise |
| Accent foreground | #0b4132darkslategray | #0b4132darkslategray |
| Destructive | #9d3a0csaddlebrown | #f06f33tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dd3c69indianred | #dd3c69indianred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.43:1 | AAA |
| Text on card | 20.43:1 | AAA |
| Primary button | 4.27:1 | AA Large |
| Secondary button | 6.66:1 | AA |
| Muted text | 5.79:1 | AA |
| Accent | 6.66:1 | AA |
| Destructive | 6.93:1 | AA |
| Text on background | 20.50:1 | AAA |
| Text on card | 20.50:1 | AAA |
| Primary button | 4.27:1 | AA Large |
| Secondary button | 6.66:1 | AA |
| Muted text | 8.04:1 | AAA |
| Accent | 6.66:1 | AA |
| Destructive | 7.00:1 | AAA |
Paste this into your globals.css to use Osmosis in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 357.791);
--foreground: oklch(0 0 0);
--muted: oklch(0.902 0.004 177.592);
--muted-foreground: oklch(0.438 0.028 175.701);
--popover: oklch(0.991 0.003 357.791);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.003 357.791);
--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.606 0.198 8.74);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.804 0.146 169.218);
--secondary-foreground: oklch(0.337 0.061 169.349);
--accent: oklch(0.804 0.146 169.218);
--accent-foreground: oklch(0.337 0.061 169.349);
--destructive: oklch(0.481 0.142 40.738);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.606 0.198 8.74);
--chart-1: oklch(0.606 0.198 8.74);
--chart-2: oklch(0.804 0.146 169.218);
--chart-3: oklch(0.804 0.146 169.218);
--chart-4: oklch(0.814 0.14 170.115);
--chart-5: oklch(0.608 0.204 9.324);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.991 0.002 357.772);
--muted: oklch(0.252 0.005 177.108);
--muted-foreground: oklch(0.781 0.025 176.758);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.991 0.002 357.772);
--card: oklch(0 0 0);
--card-foreground: oklch(0.991 0.002 357.772);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.606 0.198 8.74);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.804 0.146 169.218);
--secondary-foreground: oklch(0.337 0.061 169.349);
--accent: oklch(0.804 0.146 169.218);
--accent-foreground: oklch(0.337 0.061 169.349);
--destructive: oklch(0.687 0.174 43.013);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.606 0.198 8.74);
--chart-1: oklch(0.606 0.198 8.74);
--chart-2: oklch(0.804 0.146 169.218);
--chart-3: oklch(0.804 0.146 169.218);
--chart-4: oklch(0.814 0.14 170.115);
--chart-5: oklch(0.608 0.204 9.324);
}