Saas theme 2 is a shadcn/ui theme built around a vivid light yellow primary color (#fffeb8) with muted light yellow accents (#edede9). The light mode uses a neutral background (#fefefb). Dark mode keeps the vivid light yellow primary (#fffeb8) on a neutral background (#030302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefefbwhite | #030302black |
| Foreground | #090902black | #fdfdfcwhite |
| Card | #fefefbwhite | #030302black |
| Card foreground | #090902black | #fdfdfcwhite |
| Popover | #fefefbwhite | #030302black |
| Popover foreground | #090902black | #fdfdfcwhite |
| Primary | #fffeb8lemonchiffon | #fffeb8lemonchiffon |
| Primary foreground | #1f1e00black | #1f1e00black |
| Secondary | #edede9linen | #2f2f23darkslategray |
| Secondary foreground | #5a5949darkolivegreen | #cbcbb9silver |
| Muted | #eaeae6linen | #191915black |
| Muted foreground | #595954dimgray | #ababa6darkgray |
| Accent | #edede9linen | #2f2f23darkslategray |
| Accent foreground | #5a5949darkolivegreen | #cbcbb9silver |
| Destructive | #701600maroon | #eb2f00orangered |
| Destructive foreground | #ffb6a3lightpink | #ffffffwhite |
| Border | #e7e7e4gainsboro | #1e1e1ablack |
| Input | #e7e7e4gainsboro | #1e1e1ablack |
| Ring | #fffeb8lemonchiffon | #fffeb8lemonchiffon |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.70:1 | AAA |
| Primary button | 16.15:1 | AAA |
| Secondary button | 6.02:1 | AA |
| Muted text | 5.83:1 | AA |
| Accent | 6.02:1 | AA |
| Destructive | 6.89:1 | AA |
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 16.15:1 | AAA |
| Secondary button | 8.26:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 8.26:1 | AAA |
| Destructive | 4.26:1 | AA Large |
Paste this into your globals.css to use Saas theme 2 in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.003 105.671);
--foreground: oklch(0.134 0.022 108.389);
--muted: oklch(0.936 0.005 105.708);
--muted-foreground: oklch(0.463 0.008 105.925);
--popover: oklch(0.995 0.003 105.671);
--popover-foreground: oklch(0.134 0.022 108.389);
--card: oklch(0.995 0.003 105.671);
--card-foreground: oklch(0.134 0.022 108.389);
--border: oklch(0.927 0.004 105.694);
--input: oklch(0.927 0.004 105.694);
--primary: oklch(0.981 0.089 107.11);
--primary-foreground: oklch(0.228 0.05 108.854);
--secondary: oklch(0.944 0.005 105.717);
--secondary-foreground: oklch(0.461 0.025 106.544);
--accent: oklch(0.944 0.005 105.717);
--accent-foreground: oklch(0.461 0.025 106.544);
--destructive: oklch(0.358 0.127 34.473);
--destructive-foreground: oklch(0.839 0.09 34.561);
--ring: oklch(0.981 0.089 107.11);
--chart-1: oklch(0.981 0.089 107.11);
--chart-2: oklch(0.944 0.005 105.717);
--chart-3: oklch(0.944 0.005 105.717);
--chart-4: oklch(0.965 0.003 105.678);
--chart-5: oklch(0.984 0.091 107.144);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.008 107.167);
--foreground: oklch(0.995 0.002 105.659);
--muted: oklch(0.211 0.007 106.187);
--muted-foreground: oklch(0.739 0.007 105.79);
--popover: oklch(0.099 0.008 107.167);
--popover-foreground: oklch(0.995 0.002 105.659);
--card: oklch(0.099 0.008 107.167);
--card-foreground: oklch(0.995 0.002 105.659);
--border: oklch(0.232 0.006 106.083);
--input: oklch(0.232 0.006 106.083);
--primary: oklch(0.981 0.089 107.11);
--primary-foreground: oklch(0.228 0.05 108.854);
--secondary: oklch(0.3 0.021 106.78);
--secondary-foreground: oklch(0.836 0.025 106.129);
--accent: oklch(0.3 0.021 106.78);
--accent-foreground: oklch(0.836 0.025 106.129);
--destructive: oklch(0.607 0.226 32.733);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.981 0.089 107.11);
--chart-1: oklch(0.981 0.089 107.11);
--chart-2: oklch(0.3 0.021 106.78);
--chart-3: oklch(0.3 0.021 106.78);
--chart-4: oklch(0.334 0.024 106.82);
--chart-5: oklch(0.984 0.091 107.144);
}