Snappy is a shadcn/ui theme built around a vivid light green primary color (#91fdba) with vivid light teal accents (#91fdf0). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid light green primary (#91fdba) on a neutral background (#010402).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #010402black |
| Foreground | #04160bblack | #f8fcf9mintcream |
| Card | #f5faf7whitesmoke | #030805black |
| Card foreground | #031109black | #fbfdfcwhite |
| Popover | #f5faf7whitesmoke | #030805black |
| Popover foreground | #031109black | #fbfdfcwhite |
| Primary | #91fdbaaquamarine | #91fdbaaquamarine |
| Primary foreground | #025a24darkgreen | #025a24darkgreen |
| Secondary | #9efd91palegreen | #9efd91palegreen |
| Secondary foreground | #0c5a02darkgreen | #0c5a02darkgreen |
| Muted | #dbedd9gainsboro | #152612black |
| Muted foreground | #3e483ddarkslategray | #b9c2b7silver |
| Accent | #91fdf0aquamarine | #91fdf0aquamarine |
| Accent foreground | #025a50darkslategray | #025a50darkslategray |
| Destructive | #760404maroon | #f72222crimson |
| Destructive foreground | #fcb0b0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #91fdbaaquamarine | #91fdbaaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.01:1 | AAA |
| Text on card | 18.29:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 7.78:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 6.68:1 | AA |
| Text on background | 19.90:1 | AAA |
| Text on card | 19.80:1 | AAA |
| Primary button | 6.80:1 | AA |
| Secondary button | 6.80:1 | AA |
| Muted text | 8.71:1 | AAA |
| Accent | 6.77:1 | AA |
| Destructive | 4.03:1 | AA Large |
Paste this into your globals.css to use Snappy in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 159.356);
--foreground: oklch(0.179 0.035 155.729);
--muted: oklch(0.927 0.032 141.994);
--muted-foreground: oklch(0.388 0.021 141.922);
--popover: oklch(0.98 0.008 159.297);
--popover-foreground: oklch(0.162 0.03 157.322);
--card: oklch(0.98 0.008 159.297);
--card-foreground: oklch(0.162 0.03 157.322);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.911 0.137 155.445);
--primary-foreground: oklch(0.409 0.114 148.998);
--secondary: oklch(0.909 0.169 141.506);
--secondary-foreground: oklch(0.407 0.134 141.612);
--accent: oklch(0.925 0.102 185.938);
--accent-foreground: oklch(0.42 0.075 181.607);
--destructive: oklch(0.358 0.143 28.669);
--destructive-foreground: oklch(0.83 0.089 19.133);
--ring: oklch(0.911 0.137 155.445);
--chart-1: oklch(0.911 0.137 155.445);
--chart-2: oklch(0.909 0.169 141.506);
--chart-3: oklch(0.925 0.102 185.938);
--chart-4: oklch(0.919 0.147 141.576);
--chart-5: oklch(0.914 0.14 155.322);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.097 0.012 159.319);
--foreground: oklch(0.987 0.005 159.346);
--muted: oklch(0.246 0.043 141.537);
--muted-foreground: oklch(0.804 0.018 142.036);
--popover: oklch(0.122 0.015 159.319);
--popover-foreground: oklch(0.994 0.003 159.408);
--card: oklch(0.122 0.015 159.319);
--card-foreground: oklch(0.994 0.003 159.408);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.911 0.137 155.445);
--primary-foreground: oklch(0.409 0.114 148.998);
--secondary: oklch(0.909 0.169 141.506);
--secondary-foreground: oklch(0.407 0.134 141.612);
--accent: oklch(0.925 0.102 185.938);
--accent-foreground: oklch(0.42 0.075 181.607);
--destructive: oklch(0.623 0.241 27.981);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.911 0.137 155.445);
--chart-1: oklch(0.911 0.137 155.445);
--chart-2: oklch(0.909 0.169 141.506);
--chart-3: oklch(0.925 0.102 185.938);
--chart-4: oklch(0.919 0.147 141.576);
--chart-5: oklch(0.914 0.14 155.322);
}