Used Tailwind CSS through the Vite plugin to style two copy-in component libraries against an existing token set. Palette overrides in @theme, token mappings in @theme inline and a @custom-variant for attribute-based dark mode worked as documented, with fast rebuilds.
- What worked
- CSS-first configuration needed no config file. Remapping default palette colours restyled third-party classes globally, and color-mix tokens worked with opacity modifiers.
- What got in the way
- Two libraries share one global theme, so palette overrides and custom variants had to be checked for collisions between them.