Giter VIP home page Giter VIP logo

Comments (3)

textbook avatar textbook commented on July 19, 2024

The Bulma colour scheme is designed to be overridden from the Sass side, see e.g. the customisation docs, which isn't easy do hook into in a static site generator. As a rule of thumb, you can tell which Bulma classes are associated with colours because they have examples of changing the colour with e.g. is-info (like the button). You can also just inspect the site in your browser to see what's going on.

That said I've already done that, so the stylesheet in my personal blog linked from #12 is a more-or-less complete list of the classes you need to override; it covers everything that uses the primary colour, for example. I'd recommend you copy that into your own site verbatim, then you can just change the colours in that file.

Thanks for the suggestion, I'll have a think about how I can make it clearer in the appropriate section of the README.

from bulrush.

deutrino avatar deutrino commented on July 19, 2024

Yeah, I put another 90 min in on learning just enough to determine that it's too much work / too many moving parts for me. I could change @primary in main.less to a color of my choosing, but the output only overrode a few classes with it, and the color of the banner, the headings, etc., didn't change. The lowest-effort thing to do for now might be to warn users in the docs that if they want to change the default colors, they will need to know what they're doing.

from bulrush.

textbook avatar textbook commented on July 19, 2024

Note that that's exactly what I'm saying in the other issue, the @primary colour in main.less does not override Bulma. It's a copy of Bulma's existing primary colour, so you can see what things not set by Bulma I'm making that colour.

However, the overall point is that you shouldn't need to edit the theme's files at all, unless you really want to and know what you're doing. That's why I added the provision for custom styling, which is documented, so you can add your own file that overrides whatever you want without having to delve into the theme code. And, again, the resulting overrides for my own blog (https://blog.jonrshar.pe) are relatively short; there aren't that many places that need overriding.

So I'd suggest you literally just copy that file into your own project, reference it in the config, and start making changes from there. You shouldn't need to touch Bulrush's files at all.

from bulrush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.