Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Can’t override style.css

  • #5673
    Avatar photo[anonymous]

    I want to override the default cookie color #24a931 of “simple” theme to #5FD9F3. The overridden file location is “…/input/themes/simple-override/assets/css/style.css”. However even this file is getting overridden. I read somewhere that “main.css” churns out “style.css”. Could this be the problem? How can I solve this? Help please!

    #5674
    Avatar photo[anonymous]

    Publii’s rendering process is explained here: https://getpublii.com/dev/how-the-theme-is-rendered

    The final css generated is a sum of five CSS sources
    `theme-variables.js output + main.css + GDPR popup CSS + visual-overrides.js output + custom CSS`
    So you should not edit the styles.css, but instead edit main.css or add via Publii Left menu bar>Tools>Custom CSS

    #5676
    Avatar photo[anonymous]

    @shaun2k Thanks.