Bluish is a shadcn/ui theme built around a blue primary color (#2e6c90) with blue accents (#417fa2). The light mode uses a neutral background (#fcfcfc). Dark mode switches to a green primary (#3e8948) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcfcsnow | #000000black |
| Foreground | #030c05black | #f8fbf9mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #030c05black | #f8fbf9mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #030c05black | #f8fbf9mintcream |
| Primary | #2e6c90steelblue | #3e8948seagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e3bb5csandybrown | #483e89darkslateblue |
| Secondary foreground | #000000black | #fcfbfdsnow |
| Muted | #e8e8e8lavender | #0e0e11black |
| Muted foreground | #000000black | #9c98b3darkgray |
| Accent | #417fa2steelblue | #89483esienna |
| Accent foreground | #ffffffwhite | #fdfcfbsnow |
| Destructive | #e14014orangered | #f43601orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #edededwhitesmoke | #1c211dblack |
| Input | #dadadagainsboro | #1c211dblack |
| Ring | #000000black | #3e8948seagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.33:1 | AAA |
| Text on card | 19.83:1 | AAA |
| Primary button | 5.71:1 | AA |
| Secondary button | 11.52:1 | AAA |
| Muted text | 17.12:1 | AAA |
| Accent | 4.40:1 | AA Large |
| Destructive | 4.25:1 | AA Large |
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 4.29:1 | AA Large |
| Secondary button | 8.78:1 | AAA |
| Muted text | 6.92:1 | AA |
| Accent | 6.70:1 | AA |
| Destructive | 3.92:1 | AA Large |
Paste this into your globals.css to use Bluish in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0 180);
--foreground: oklch(0.14 0.024 148.513);
--muted: oklch(0.931 0 206.565);
--muted-foreground: oklch(0 0 0);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.14 0.024 148.513);
--card: oklch(1 0 180);
--card-foreground: oklch(0.14 0.024 148.513);
--border: oklch(0.945 0 158.199);
--input: oklch(0.887 0 180);
--primary: oklch(0.508 0.085 236.785);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.809 0.122 86.571);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.569 0.084 236.29);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.605 0.204 34.762);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0 0 0);
--chart-1: oklch(0.508 0.085 236.785);
--chart-2: oklch(0.809 0.122 86.571);
--chart-3: oklch(0.569 0.084 236.29);
--chart-4: oklch(0.823 0.115 86.973);
--chart-5: oklch(0.51 0.089 237.199);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.005 149.624);
--muted: oklch(0.166 0.005 291.96);
--muted-foreground: oklch(0.693 0.039 291.462);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.005 149.624);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.005 149.624);
--border: oklch(0.241 0.011 149.119);
--input: oklch(0.241 0.011 149.119);
--primary: oklch(0.566 0.124 146.393);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.414 0.121 285.903);
--secondary-foreground: oklch(0.99 0.003 292.495);
--accent: oklch(0.479 0.091 29.959);
--accent-foreground: oklch(0.991 0.002 27.942);
--destructive: oklch(0.628 0.229 33.319);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.566 0.124 146.393);
--chart-1: oklch(0.566 0.124 146.393);
--chart-2: oklch(0.414 0.121 285.903);
--chart-3: oklch(0.479 0.091 29.959);
--chart-4: oklch(0.436 0.129 285.82);
--chart-5: oklch(0.573 0.132 146.165);
}