βui - One Light is a shadcn/ui theme built around a vivid blue primary color (#0c3da7) with neutral gray accents (#d4d4d4). The light mode uses a neutral background (#fafafa). Dark mode keeps the vivid blue primary (#0c3da7) on a neutral background (#fafafa).
| Token | Light | Dark |
|---|---|---|
| Background | #fafafasnow | #fafafasnow |
| Foreground | #383942darkslategray | #383942darkslategray |
| Card | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Card foreground | #2d2d34darkslategray | #2d2d34darkslategray |
| Popover | #f2f2f2whitesmoke | #f2f2f2whitesmoke |
| Popover foreground | #212127black | #212127black |
| Primary | #0c3da7darkslateblue | #0c3da7darkslateblue |
| Primary foreground | #e7eefdlavender | #e7eefdlavender |
| Secondary | #acb8d2lightsteelblue | #acb8d2lightsteelblue |
| Secondary foreground | #1b2232darkslategray | #1b2232darkslategray |
| Muted | #e9e2e2gainsboro | #e9e2e2gainsboro |
| Muted foreground | #564343darkslategray | #564343darkslategray |
| Accent | #d4d4d4lightgrey | #d4d4d4lightgrey |
| Accent foreground | #3b3b3bdarkslategray | #3b3b3bdarkslategray |
| Destructive | #710f04maroon | #710f04maroon |
| Destructive foreground | #fcb3ablightpink | #fcb3ablightpink |
| Border | #edededwhitesmoke | #edededwhitesmoke |
| Input | #e6e6e6gainsboro | #e6e6e6gainsboro |
| Ring | #0c3da7darkslateblue | #0c3da7darkslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.97:1 | AAA |
| Text on card | 12.51:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.85:1 | AA |
| Text on background | 10.97:1 | AAA |
| Text on card | 12.51:1 | AAA |
| Primary button | 8.07:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 7.22:1 | AAA |
| Accent | 7.53:1 | AAA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use βui - One Light in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.348 0.015 280.542);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.251 0.01 280.638);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.301 0.013 280.581);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.406 0.178 262.715);
--primary-foreground: oklch(0.949 0.022 265.889);
--secondary: oklch(0.782 0.04 265.702);
--secondary-foreground: oklch(0.253 0.032 265.037);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.354 0.133 30.83);
--destructive-foreground: oklch(0.834 0.086 26.16);
--ring: oklch(0.406 0.178 262.715);
--chart-1: oklch(0.406 0.178 262.715);
--chart-2: oklch(0.782 0.04 265.702);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.809 0.035 265.761);
--chart-5: oklch(0.406 0.183 262.741);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.985 0 180);
--foreground: oklch(0.348 0.015 280.542);
--muted: oklch(0.919 0.007 17.278);
--muted-foreground: oklch(0.404 0.025 18.259);
--popover: oklch(0.962 0 180);
--popover-foreground: oklch(0.251 0.01 280.638);
--card: oklch(0.97 0 180);
--card-foreground: oklch(0.301 0.013 280.581);
--border: oklch(0.947 0 180);
--input: oklch(0.923 0 153.435);
--primary: oklch(0.406 0.178 262.715);
--primary-foreground: oklch(0.949 0.022 265.889);
--secondary: oklch(0.782 0.04 265.702);
--secondary-foreground: oklch(0.253 0.032 265.037);
--accent: oklch(0.869 0 165.964);
--accent-foreground: oklch(0.351 0 167.471);
--destructive: oklch(0.354 0.133 30.83);
--destructive-foreground: oklch(0.834 0.086 26.16);
--ring: oklch(0.406 0.178 262.715);
--chart-1: oklch(0.406 0.178 262.715);
--chart-2: oklch(0.782 0.04 265.702);
--chart-3: oklch(0.869 0 165.964);
--chart-4: oklch(0.809 0.035 265.761);
--chart-5: oklch(0.406 0.183 262.741);
}