Sunrise is a shadcn/ui theme built around a green primary color (#8fea9d) with teal accents (#8feaca). The light mode uses a neutral background (#f7fcf8). Dark mode keeps the green primary (#8fea9d) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcf8mintcream | #000000black |
| Foreground | #000000black | #f6f9f6whitesmoke |
| Card | #f7fcf8mintcream | #000000black |
| Card foreground | #000000black | #f6f9f6whitesmoke |
| Popover | #f7fcf8mintcream | #000000black |
| Popover foreground | #000000black | #f6f9f6whitesmoke |
| Primary | #8fea9dlightgreen | #8fea9dlightgreen |
| Primary foreground | #0b3c12darkgreen | #0b3c12darkgreen |
| Secondary | #afea8fpalegreen | #afea8fpalegreen |
| Secondary foreground | #1c3c0bdarkgreen | #1c3c0bdarkgreen |
| Muted | #dfe4ddgainsboro | #1e221bblack |
| Muted foreground | #4e534bdarkslategray | #afb4acdarkgray |
| Accent | #8feacaaquamarine | #8feacaaquamarine |
| Accent foreground | #0b3c2bdarkslategray | #0b3c2bdarkslategray |
| Destructive | #83260csaddlebrown | #ea471aorangered |
| Destructive foreground | #fad2c7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8fea9dlightgreen | #8fea9dlightgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 6.10:1 | AA |
| Accent | 8.75:1 | AAA |
| Destructive | 6.74:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 8.66:1 | AAA |
| Secondary button | 8.84:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 8.75:1 | AAA |
| Destructive | 3.87:1 | AA Large |
Paste this into your globals.css to use Sunrise in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.008 150.143);
--foreground: oklch(0 0 0);
--muted: oklch(0.913 0.01 134.282);
--muted-foreground: oklch(0.435 0.014 134.407);
--popover: oklch(0.987 0.008 150.143);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.987 0.008 150.143);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.139 147.853);
--primary-foreground: oklch(0.315 0.086 145.428);
--secondary: oklch(0.877 0.135 135.259);
--secondary-foreground: oklch(0.321 0.084 136.818);
--accent: oklch(0.872 0.099 169.593);
--accent-foreground: oklch(0.32 0.06 165.001);
--destructive: oklch(0.411 0.132 35.32);
--destructive-foreground: oklch(0.895 0.047 35.95);
--ring: oklch(0.862 0.139 147.853);
--chart-1: oklch(0.862 0.139 147.853);
--chart-2: oklch(0.877 0.135 135.259);
--chart-3: oklch(0.872 0.099 169.593);
--chart-4: oklch(0.89 0.12 135.094);
--chart-5: oklch(0.865 0.144 147.753);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.979 0.004 150.19);
--muted: oklch(0.245 0.014 134.553);
--muted-foreground: oklch(0.763 0.012 134.312);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.979 0.004 150.19);
--card: oklch(0 0 0);
--card-foreground: oklch(0.979 0.004 150.19);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.139 147.853);
--primary-foreground: oklch(0.315 0.086 145.428);
--secondary: oklch(0.877 0.135 135.259);
--secondary-foreground: oklch(0.321 0.084 136.818);
--accent: oklch(0.872 0.099 169.593);
--accent-foreground: oklch(0.32 0.06 165.001);
--destructive: oklch(0.627 0.206 35.086);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.139 147.853);
--chart-1: oklch(0.862 0.139 147.853);
--chart-2: oklch(0.877 0.135 135.259);
--chart-3: oklch(0.872 0.099 169.593);
--chart-4: oklch(0.89 0.12 135.094);
--chart-5: oklch(0.865 0.144 147.753);
}