roots / sage

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow
https://roots.io/sage/
MIT License
12.69k stars 3.06k forks source link

fix: update default app.css tailwind syntax to use @tailwind (#3149) #3150

Closed talss89 closed 11 months ago

talss89 commented 11 months ago

Minor change to switch from older @import 'tailwindcss/... syntax to @tailwind as recommended in Tailwind docs.

This encourages users to avoid a possible cache invalidation issue.

See: https://tailwindcss.com/docs/installation#:~:text=Add%20the%20Tailwind,main%20CSS%20file. See: https://github.com/roots/bud/issues/2455

The cache invalidation logic for @tailwind was introduced in Tailwind 3.0.24. Sage's app.css was written originally for Tailwind 2.0.2 on Sage 10.0.0-beta.1

retlehs commented 11 months ago

Thank you!