Grounded is a shadcn/ui theme built around a vivid deep cyan primary color (#012737) with vivid deep blue accents (#010c37). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep cyan primary (#012737) on a cyan-tinted background (#060c0e).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060c0eblack |
| Foreground | #010304black | #fcfdfdwhite |
| Card | #ffffffwhite | #060c0eblack |
| Card foreground | #010304black | #fcfdfdwhite |
| Popover | #ffffffwhite | #060c0eblack |
| Popover foreground | #010304black | #fcfdfdwhite |
| Primary | #012737midnightblue | #012737midnightblue |
| Primary foreground | #0bb2f9deepskyblue | #0bb2f9deepskyblue |
| Secondary | #01372cdarkslategray | #01372cdarkslategray |
| Secondary foreground | #0bf9c9darkturquoise | #0bf9c9darkturquoise |
| Muted | #e4f2eflavender | #0d1b19black |
| Muted foreground | #585a5adimgray | #a5a7a6darkgray |
| Accent | #010c37black | #010c37black |
| Accent foreground | #6f8bfbcornflowerblue | #6f8bfbcornflowerblue |
| Destructive | #880d02darkred | #fc3d2corangered |
| Destructive foreground | #fec3belightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #012737midnightblue | #012737midnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.66:1 | AAA |
| Text on card | 20.66:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 9.75:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 6.09:1 | AA |
| Destructive | 6.55:1 | AA |
| Text on background | 19.32:1 | AAA |
| Text on card | 19.32:1 | AAA |
| Primary button | 6.51:1 | AA |
| Secondary button | 9.75:1 | AAA |
| Muted text | 7.28:1 | AAA |
| Accent | 6.09:1 | AA |
| Destructive | 3.59:1 | AA Large |
Paste this into your globals.css to use Grounded in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.093 0.009 219.744);
--muted: oklch(0.949 0.015 182.745);
--muted-foreground: oklch(0.466 0.002 183.047);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.093 0.009 219.744);
--card: oklch(1 0 180);
--card-foreground: oklch(0.093 0.009 219.744);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.255 0.05 231.65);
--primary-foreground: oklch(0.722 0.155 236.606);
--secondary: oklch(0.3 0.056 174.766);
--secondary-foreground: oklch(0.875 0.168 172.118);
--accent: oklch(0.182 0.085 264.033);
--accent-foreground: oklch(0.668 0.169 270.697);
--destructive: oklch(0.399 0.155 30.463);
--destructive-foreground: oklch(0.869 0.068 24.524);
--ring: oklch(0.255 0.05 231.65);
--chart-1: oklch(0.255 0.05 231.65);
--chart-2: oklch(0.3 0.056 174.766);
--chart-3: oklch(0.182 0.085 264.033);
--chart-4: oklch(0.351 0.066 174.016);
--chart-5: oklch(0.256 0.052 231.83);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.148 0.012 223.94);
--foreground: oklch(0.993 0.001 224.99);
--muted: oklch(0.21 0.02 180.179);
--muted-foreground: oklch(0.726 0.002 183.105);
--popover: oklch(0.148 0.012 223.94);
--popover-foreground: oklch(0.993 0.001 224.99);
--card: oklch(0.148 0.012 223.94);
--card-foreground: oklch(0.993 0.001 224.99);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.255 0.05 231.65);
--primary-foreground: oklch(0.722 0.155 236.606);
--secondary: oklch(0.3 0.056 174.766);
--secondary-foreground: oklch(0.875 0.168 172.118);
--accent: oklch(0.182 0.085 264.033);
--accent-foreground: oklch(0.668 0.169 270.697);
--destructive: oklch(0.65 0.228 29.761);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.255 0.05 231.65);
--chart-1: oklch(0.255 0.05 231.65);
--chart-2: oklch(0.3 0.056 174.766);
--chart-3: oklch(0.182 0.085 264.033);
--chart-4: oklch(0.351 0.066 174.016);
--chart-5: oklch(0.256 0.052 231.83);
}