Sniffle is a shadcn/ui theme built around a green primary color (#98ac62) with purple accents (#ac6298). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the green primary (#98ac62) on a neutral background (#030401).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #030401black |
| Foreground | #060802black | #ffffffwhite |
| Card | #f9fcf3floralwhite | #060703black |
| Card foreground | #030401black | #ffffffwhite |
| Popover | #fbfdf7snow | #030401black |
| Popover foreground | #060802black | #ffffffwhite |
| Primary | #98ac62darkkhaki | #98ac62darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #6298accadetblue | #6298accadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #e6f0f4lavender | #0b1519black |
| Muted foreground | #4c5457darkslategray | #a8b0b3darkgray |
| Accent | #ac6298rosybrown | #ac6298rosybrown |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #921701darkred | #f72702orangered |
| Destructive foreground | #fed0c7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #98ac62darkkhaki | #98ac62darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.61:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 4.22:1 | AA Large |
| Destructive | 6.39:1 | AA |
| Text on background | 20.57:1 | AAA |
| Text on card | 20.17:1 | AAA |
| Primary button | 8.44:1 | AAA |
| Secondary button | 6.64:1 | AA |
| Muted text | 8.38:1 | AAA |
| Accent | 4.22:1 | AA Large |
| Destructive | 3.98:1 | AA Large |
Paste this into your globals.css to use Sniffle in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.008 118.699);
--foreground: oklch(0.129 0.018 118.649);
--muted: oklch(0.95 0.012 221.419);
--muted-foreground: oklch(0.441 0.012 221.572);
--popover: oklch(0.99 0.008 118.699);
--popover-foreground: oklch(0.129 0.018 118.649);
--card: oklch(0.986 0.011 118.767);
--card-foreground: oklch(0.102 0.014 118.649);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.713 0.102 121.244);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.651 0.065 223.018);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.598 0.119 337.733);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.426 0.16 32.017);
--destructive-foreground: oklch(0.895 0.054 29.806);
--ring: oklch(0.713 0.102 121.244);
--chart-1: oklch(0.713 0.102 121.244);
--chart-2: oklch(0.651 0.065 223.018);
--chart-3: oklch(0.598 0.119 337.733);
--chart-4: oklch(0.673 0.061 222.75);
--chart-5: oklch(0.722 0.11 121.47);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.1 0.011 118.633);
--foreground: oklch(1 0 180);
--muted: oklch(0.188 0.017 222.719);
--muted-foreground: oklch(0.752 0.01 221.431);
--popover: oklch(0.1 0.011 118.633);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.014 118.633);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.713 0.102 121.244);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.651 0.065 223.018);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.598 0.119 337.733);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.626 0.241 31.315);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.713 0.102 121.244);
--chart-1: oklch(0.713 0.102 121.244);
--chart-2: oklch(0.651 0.065 223.018);
--chart-3: oklch(0.598 0.119 337.733);
--chart-4: oklch(0.673 0.061 222.75);
--chart-5: oklch(0.722 0.11 121.47);
}