Smug is a shadcn/ui theme built around a vivid purple primary color (#ea42f0) with vivid teal accents (#42f0ea). The light mode uses a neutral background (#fdf6fd). Dark mode keeps the vivid purple primary (#ea42f0) on a neutral background (#040104).
| Token | Light | Dark |
|---|---|---|
| Background | #fdf6fdsnow | #040104black |
| Foreground | #0f0510black | #f8f6f8whitesmoke |
| Card | #fcf2fdghostwhite | #070308black |
| Card foreground | #0c030cblack | #fbf9fbsnow |
| Popover | #fcf2fdghostwhite | #070308black |
| Popover foreground | #0c030cblack | #fbf9fbsnow |
| Primary | #ea42f0orchid | #ea42f0orchid |
| Primary foreground | #000000black | #000000black |
| Secondary | #f0ea42gold | #f0ea42gold |
| Secondary foreground | #000000black | #000000black |
| Muted | #f1f1dfbeige | #20200eblack |
| Muted foreground | #595846darkolivegreen | #b9b9a6darkgray |
| Accent | #42f0eaturquoise | #42f0eaturquoise |
| Accent foreground | #000000black | #000000black |
| Destructive | #cc4b0fchocolate | #ee5b17chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ea42f0orchid | #ea42f0orchid |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.89:1 | AAA |
| Text on card | 18.63:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 16.53:1 | AAA |
| Muted text | 6.30:1 | AA |
| Accent | 14.84:1 | AAA |
| Destructive | 4.58:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.56:1 | AAA |
| Primary button | 6.53:1 | AA |
| Secondary button | 16.53:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 14.84:1 | AAA |
| Destructive | 3.43:1 | AA Large |
Paste this into your globals.css to use Smug in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.981 0.012 324.695);
--foreground: oklch(0.138 0.033 326.07);
--muted: oklch(0.953 0.023 105.23);
--muted-foreground: oklch(0.455 0.029 105.848);
--popover: oklch(0.972 0.018 324.735);
--popover-foreground: oklch(0.124 0.028 326.146);
--card: oklch(0.972 0.018 324.735);
--card-foreground: oklch(0.124 0.028 326.146);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.687 0.271 326.572);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.914 0.177 107.428);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.868 0.136 191.573);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.582 0.175 40.285);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.687 0.271 326.572);
--chart-1: oklch(0.687 0.271 326.572);
--chart-2: oklch(0.914 0.177 107.428);
--chart-3: oklch(0.868 0.136 191.573);
--chart-4: oklch(0.919 0.17 107.377);
--chart-5: oklch(0.691 0.277 326.591);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.017 326.014);
--foreground: oklch(0.976 0.003 324.64);
--muted: oklch(0.237 0.031 106.796);
--muted-foreground: oklch(0.781 0.025 105.362);
--popover: oklch(0.109 0.021 326.014);
--popover-foreground: oklch(0.984 0.002 324.633);
--card: oklch(0.109 0.021 326.014);
--card-foreground: oklch(0.984 0.002 324.633);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.687 0.271 326.572);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.914 0.177 107.428);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.868 0.136 191.573);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.655 0.194 40.584);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.687 0.271 326.572);
--chart-1: oklch(0.687 0.271 326.572);
--chart-2: oklch(0.914 0.177 107.428);
--chart-3: oklch(0.868 0.136 191.573);
--chart-4: oklch(0.919 0.17 107.377);
--chart-5: oklch(0.691 0.277 326.591);
}