New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS easy to customize #4
Comments
Hi @appieschot, thank you for getting in touch & thank you for the kind words 😊.
This question comes up quite a lot, see #2 (comment) & #1 (comment). I have not documented the process on Here's what you can do to add your own CSS:
I hope that helps. Let me know if this is what you had in mind. Kind regards 👋 , PS: I updated the README with the instructions mentioned above. Check out https://github.com/janraasch/hugo-scroll#adding-your-branding--colors--css. |
Thanks for the clarification! Definitely got it working, however I only wanted to add CSS so I could apply asset bundling for optimal speed. |
Sure 👍.
That sounds like something one should have 😛 😇 😊. In that case, you would (for the time being 😊) have to overwrite layouts/partials/head.html with a local copy including your asset bundling solution. That should fix the issue for you then 😊. If you have some time, I would also like to see how we could integrate this into the theme. In a dream world scenario, I would love to have the Anyway, if your up for it, feel free to open a pr (for asset bundling and/or the dream world scenario 😉). Then we can carry on the conversation with some real source code to get a better feel for this feature. |
Sure, just created a fork where I added a _customvars.scss. Basics works, so I will go through the CSS file and properly construct the theme. It does require the extended version of Hugo but so far things look good ;-). Will use the weekend to update and create a PR 😎 |
#98 goes towards this goal |
@appieschot We finally implemented CSS variables for overriding. It's the first version that may still evolve a bit throughout 2.0 release planned for this year |
First off compliments on the template! I love it! However I would love to apply my own branding (colours) so it would be awesome to support CSS overrides. I am more than happy to submit a PR that implements a CSS override option if you are open to that!
I could imagine using the head.html to add an
override.css
in case the parameter is specified. We could even use the asset bundling option Hugo provides to combine CSS files. Feel free to assign to me and let me know if you want me to pick it up.The text was updated successfully, but these errors were encountered: