I'm looking to change the color of the primary button class in Bootstrap 5 with SASS using a PHP installation.
I had initially included Bootstrap via CDN with the knowledge that I can make a custom .css
file. I know I have to make sure to cover all flavors of the primary class, but it is a relatively quick and easy way to change the button color.
But that feels very 2010, and there seem to be more upgrade-friendly ways to accomplish this. Since a customized bootstrap longer exists, it looks like the latest customization recommendations are to use SASS.
To accomplish this, I switched to the composer installation of bootstrap in the hope that would provide the the necessary SASS files, and from there I could add a customization and then compile for my installation. But the composer package doesn't include any SCSS files, so I now feel a bit stuck. This is my first time using SASS, and I can't seem to find anything on how to do this with PHP. I've also looked at other resources to try and piece it together:
This all seems like it gets me a bit closer to using SASS to customize bootstrap (I think). But it also feels like a lot of extra stuff to just change the color of the button.
Can I use SASS with PHP to customize the button color? What steps should I take?