Sky is a shadcn/ui theme built around a vivid blue primary color (#6375ee) with neutral gray accents (#cecfd4). The light mode uses a neutral background (#fbfcfe). Dark mode keeps the vivid blue primary (#6375ee) on a blue-tinted background (#06070e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfcfewhite | #06070eblack |
| Foreground | #050714black | #f8f9fcghostwhite |
| Card | #f8f8fcghostwhite | #080912black |
| Card foreground | #040610black | #fcfcfdwhite |
| Popover | #f8f8fcghostwhite | #080912black |
| Popover foreground | #040610black | #fcfcfdwhite |
| Primary | #6375eemediumslateblue | #6375eemediumslateblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #dddddfgainsboro | #1b1d27black |
| Secondary foreground | #434446darkslategray | #adb1c7silver |
| Muted | #e3e4e8gainsboro | #17181cblack |
| Muted foreground | #494a50darkslategray | #afb0b6darkgray |
| Accent | #cecfd4lightgrey | #24283ddarkslategray |
| Accent foreground | #34353cdarkslategray | #bcc0d7lightsteelblue |
| Destructive | #b1190bfirebrick | #f34e3ftomato |
| Destructive foreground | #fef2f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6375eemediumslateblue | #6375eemediumslateblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.49:1 | AAA |
| Text on card | 19.08:1 | AAA |
| Primary button | 3.94:1 | AA Large |
| Secondary button | 7.20:1 | AAA |
| Muted text | 6.93:1 | AA |
| Accent | 7.83:1 | AAA |
| Destructive | 6.34:1 | AA |
| Text on background | 19.06:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 3.94:1 | AA Large |
| Secondary button | 7.92:1 | AAA |
| Muted text | 8.22:1 | AAA |
| Accent | 8.09:1 | AAA |
| Destructive | 3.51:1 | AA Large |
Paste this into your globals.css to use Sky in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.003 279.299);
--foreground: oklch(0.137 0.029 273.66);
--muted: oklch(0.918 0.006 279.242);
--muted-foreground: oklch(0.409 0.011 278.92);
--popover: oklch(0.98 0.006 279.256);
--popover-foreground: oklch(0.126 0.024 273.271);
--card: oklch(0.98 0.006 279.256);
--card-foreground: oklch(0.126 0.024 273.271);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.611 0.18 273.296);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.899 0.002 279.315);
--secondary-foreground: oklch(0.387 0.004 279.183);
--accent: oklch(0.855 0.008 279.204);
--accent-foreground: oklch(0.331 0.012 278.769);
--destructive: oklch(0.488 0.187 30.092);
--destructive-foreground: oklch(0.97 0.013 23.719);
--ring: oklch(0.611 0.18 273.296);
--chart-1: oklch(0.611 0.18 273.296);
--chart-2: oklch(0.899 0.002 279.315);
--chart-3: oklch(0.855 0.008 279.204);
--chart-4: oklch(0.922 0.001 279.321);
--chart-5: oklch(0.608 0.187 272.983);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.016 275.821);
--foreground: oklch(0.981 0.004 279.274);
--muted: oklch(0.209 0.009 278.673);
--muted-foreground: oklch(0.757 0.009 279.151);
--popover: oklch(0.144 0.019 276.323);
--popover-foreground: oklch(0.991 0.002 279.308);
--card: oklch(0.144 0.019 276.323);
--card-foreground: oklch(0.991 0.002 279.308);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.611 0.18 273.296);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.232 0.021 277.793);
--secondary-foreground: oklch(0.763 0.033 278.663);
--accent: oklch(0.282 0.039 276.882);
--accent-foreground: oklch(0.811 0.033 278.7);
--destructive: oklch(0.653 0.203 28.996);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.611 0.18 273.296);
--chart-1: oklch(0.611 0.18 273.296);
--chart-2: oklch(0.232 0.021 277.793);
--chart-3: oklch(0.282 0.039 276.882);
--chart-4: oklch(0.261 0.025 277.682);
--chart-5: oklch(0.608 0.187 272.983);
}