ReUI II Dark is a shadcn/ui theme built around a light yellow primary color (#f8f8f2) with muted blue accents (#3c475d). The light mode uses a blue-tinted background (#1e232e). Dark mode keeps the light yellow primary (#f8f8f2) on a blue-tinted background (#1e232e).
| Token | Light | Dark |
|---|---|---|
| Background | #1e232edarkslategray | #1e232edarkslategray |
| Foreground | #ffffffwhite | #ffffffwhite |
| Card | #1a1f28black | #1a1f28black |
| Card foreground | #ffffffwhite | #ffffffwhite |
| Popover | #181c25black | #181c25black |
| Popover foreground | #ffffffwhite | #ffffffwhite |
| Primary | #f8f8f2whitesmoke | #f8f8f2whitesmoke |
| Primary foreground | #35351ddarkslategray | #35351ddarkslategray |
| Secondary | #4d4d33darkolivegreen | #4d4d33darkolivegreen |
| Secondary foreground | #e0e0d1gainsboro | #e0e0d1gainsboro |
| Muted | #2b2e36darkslategray | #2b2e36darkslategray |
| Muted foreground | #a6acb9darkgray | #a6acb9darkgray |
| Accent | #3c475ddarkslategray | #3c475ddarkslategray |
| Accent foreground | #e0e4eblavender | #e0e4eblavender |
| Destructive | #ef4343tomato | #ef4343tomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2d3139darkslategray | #2d3139darkslategray |
| Input | #343841darkslategray | #343841darkslategray |
| Ring | #f8f8f2whitesmoke | #f8f8f2whitesmoke |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 15.67:1 | AAA |
| Text on card | 16.57:1 | AAA |
| Primary button | 11.72:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.94:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 3.78:1 | AA Large |
| Text on background | 15.67:1 | AAA |
| Text on card | 16.57:1 | AAA |
| Primary button | 11.72:1 | AAA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.94:1 | AA |
| Accent | 7.34:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use ReUI II Dark in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.257 0.022 265.413);
--foreground: oklch(1 0 180);
--muted: oklch(0.302 0.015 265.703);
--muted-foreground: oklch(0.745 0.02 265.867);
--popover: oklch(0.227 0.018 265.463);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.237 0.02 265.445);
--card-foreground: oklch(1 0 180);
--border: oklch(0.313 0.015 265.731);
--input: oklch(0.341 0.016 265.721);
--primary: oklch(0.977 0.008 106.548);
--primary-foreground: oklch(0.322 0.04 108.432);
--secondary: oklch(0.411 0.04 108.031);
--secondary-foreground: oklch(0.904 0.02 106.802);
--accent: oklch(0.397 0.04 265.283);
--accent-foreground: oklch(0.917 0.011 265.952);
--destructive: oklch(0.636 0.208 25.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.977 0.008 106.548);
--chart-1: oklch(0.977 0.008 106.548);
--chart-2: oklch(0.411 0.04 108.031);
--chart-3: oklch(0.397 0.04 265.283);
--chart-4: oklch(0.444 0.044 108.055);
--chart-5: oklch(0.978 0.009 106.563);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.257 0.022 265.413);
--foreground: oklch(1 0 180);
--muted: oklch(0.302 0.015 265.703);
--muted-foreground: oklch(0.745 0.02 265.867);
--popover: oklch(0.227 0.018 265.463);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.237 0.02 265.445);
--card-foreground: oklch(1 0 180);
--border: oklch(0.313 0.015 265.731);
--input: oklch(0.341 0.016 265.721);
--primary: oklch(0.977 0.008 106.548);
--primary-foreground: oklch(0.322 0.04 108.432);
--secondary: oklch(0.411 0.04 108.031);
--secondary-foreground: oklch(0.904 0.02 106.802);
--accent: oklch(0.397 0.04 265.283);
--accent-foreground: oklch(0.917 0.011 265.952);
--destructive: oklch(0.636 0.208 25.378);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.977 0.008 106.548);
--chart-1: oklch(0.977 0.008 106.548);
--chart-2: oklch(0.411 0.04 108.031);
--chart-3: oklch(0.397 0.04 265.283);
--chart-4: oklch(0.444 0.044 108.055);
--chart-5: oklch(0.978 0.009 106.563);
}