Sleeping is a shadcn/ui theme built around a muted deep purple primary color (#322930) with muted deep red accents (#32292b). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the muted deep purple primary (#322930) on a purple-tinted background (#0f050c).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #0f050cblack |
| Foreground | #0c0309black | #f9f6f8whitesmoke |
| Card | #fdfcfdwhite | #0f050cblack |
| Card foreground | #0c0309black | #f9f6f8whitesmoke |
| Popover | #fdfcfdwhite | #0f050cblack |
| Popover foreground | #0c0309black | #f9f6f8whitesmoke |
| Primary | #322930darkslategray | #322930darkslategray |
| Primary foreground | #cdc1c9silver | #cdc1c9silver |
| Secondary | #312932darkslategray | #312932darkslategray |
| Secondary foreground | #cac1cdsilver | #cac1cdsilver |
| Muted | #e6dde9gainsboro | #1f1622black |
| Muted foreground | #66516cdimgray | #a993aedarkgray |
| Accent | #32292bdarkslategray | #32292bdarkslategray |
| Accent foreground | #cdc1c4silver | #cdc1c4silver |
| Destructive | #ab2d03firebrick | #fc5822tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #322930darkslategray | #322930darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.77:1 | AA |
| Text on background | 18.66:1 | AAA |
| Text on card | 18.66:1 | AAA |
| Primary button | 8.03:1 | AAA |
| Secondary button | 8.02:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 8.04:1 | AAA |
| Destructive | 6.55:1 | AA |
Paste this into your globals.css to use Sleeping in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.002 335.916);
--foreground: oklch(0.123 0.027 336.778);
--muted: oklch(0.909 0.018 319.45);
--muted-foreground: oklch(0.467 0.049 319.465);
--popover: oklch(0.991 0.002 335.916);
--popover-foreground: oklch(0.123 0.027 336.778);
--card: oklch(0.991 0.002 335.916);
--card-foreground: oklch(0.123 0.027 336.778);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.295 0.017 336.945);
--primary-foreground: oklch(0.823 0.016 336.241);
--secondary: oklch(0.294 0.019 319.461);
--secondary-foreground: oklch(0.822 0.018 319.45);
--accent: oklch(0.293 0.014 4.445);
--accent-foreground: oklch(0.822 0.013 3.608);
--destructive: oklch(0.491 0.168 35.504);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.295 0.017 336.945);
--chart-1: oklch(0.295 0.017 336.945);
--chart-2: oklch(0.294 0.019 319.461);
--chart-3: oklch(0.293 0.014 4.445);
--chart-4: oklch(0.323 0.022 319.461);
--chart-5: oklch(0.293 0.023 337.263);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.026 337.889);
--foreground: oklch(0.975 0.005 335.968);
--muted: oklch(0.218 0.025 319.464);
--muted-foreground: oklch(0.692 0.045 319.461);
--popover: oklch(0.138 0.026 337.889);
--popover-foreground: oklch(0.975 0.005 335.968);
--card: oklch(0.138 0.026 337.889);
--card-foreground: oklch(0.975 0.005 335.968);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.295 0.017 336.945);
--primary-foreground: oklch(0.823 0.016 336.241);
--secondary: oklch(0.294 0.019 319.461);
--secondary-foreground: oklch(0.822 0.018 319.45);
--accent: oklch(0.293 0.014 4.445);
--accent-foreground: oklch(0.822 0.013 3.608);
--destructive: oklch(0.675 0.208 37.146);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.295 0.017 336.945);
--chart-1: oklch(0.295 0.017 336.945);
--chart-2: oklch(0.294 0.019 319.461);
--chart-3: oklch(0.293 0.014 4.445);
--chart-4: oklch(0.323 0.022 319.461);
--chart-5: oklch(0.293 0.023 337.263);
}