Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Explain how to override theme styles #6107
I'm glad to see this update. Lots of people have trouble trying to override Sass styles in Minima, and the process wasn't well documented. Thanks!
Re "An alternative, to continue getting theme updates on all stylesheets, is to use higher specificity CSS selectors in your own additional, originally named CSS files." Can you add some more detail here, including an example? This is an important detail that keeps tripping people up. I have seen this issue pop up half a dozen times in the forums.
Can a user add a _sass folder in their project, with a new partial and reference it in the main.css file? If so, would a user would also create an assets folder with main.scss that would be something like this?
I'm really not sure what the process is or what works. But I do feel that we need more detail around this point.
Also, should we add similar info into the themes page that explains how overriding Sass styles isn't done the same as overriding files in assets, layouts, or includes? This probably important information for theme developers to know.
I think that's exactly how it would work and didn't go into detail because I haven't totally figured it out myself yet and I'm hoping we can shed shed some light here.
On instructions for theme creators: if they were "to ship a default /assets/styles.scss" as the instructions on creating a theme put it, it would seem wise for the creator to update theme styles everywhere but in this file to allow users to modify it freely.