Commit a0fb155
committed
fix: support Tailwind opacity modifiers with CSS variable accent colors
The accent colors were changed from hardcoded hex to CSS variables for
per-campaign theming, but Tailwind v3 cannot decompose var() values to
apply opacity modifiers (/20, /10, etc.), breaking all @apply directives
using accent/{opacity} (16 occurrences).
Fix: add parallel --color-accent-rgb CSS custom properties holding
space-separated RGB channels. Tailwind config uses these with the
<alpha-value> placeholder for opacity support. Raw CSS/JS continues
using the hex-based --color-accent variables unchanged.
https://claude.ai/code/session_01WJEjfBqjZaGatHiXXXDupo1 parent aedfce4 commit a0fb155
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
60 | 67 | | |
61 | 68 | | |
62 | 69 | | |
| |||
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
86 | | - | |
| 93 | + | |
87 | 94 | | |
88 | 95 | | |
89 | 96 | | |
| |||
845 | 852 | | |
846 | 853 | | |
847 | 854 | | |
848 | | - | |
| 855 | + | |
849 | 856 | | |
850 | 857 | | |
851 | 858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments