I want to pass some variables to my css, without using inline styles. In myDuring some research I comefound different sources pointing to the same solution in different sources. For example here on the Joomla forum.
Basicly they explain how to use a php file as a stylesheet and incluse the php it like that:
<?php $document->addStyleSheet(.../my-custom-file.css.php'); ?>
I wonder ifIs this is good practice.? Should I do it like that or is there a better way provided by Joomla? Would this be able to cache? Would it be able to be combined and compressed by some other plugings for performance?
Any insights are most appreciated. Thanks!