Skip to content
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

What is the best way to change the accent color '#21b2a6' without changing the theme code? #25

Open
RackReaver opened this issue May 3, 2023 · 3 comments

Comments

@RackReaver
Copy link

I want to change this color (#21b2a6) in assets/css/main.css to align better with a non-profits branding. I don't want to alter the theme code though in case there are updates in the future.

How do you go about changing the color without changing the underlining code? There might also be a way using Hugo natively but I have not found anything in the documentation as of yet.

I can only assume I am not the only one trying to overcome this problem, hoping someone has the solution.

@Isaacium
Copy link

Isaacium commented Jul 4, 2023

  1. Create a modifications.css file and put it in the static folder.
  2. Copy and paste the relevant section from the main.css file and change the color.
  3. Change the custom_css parameter in config.toml to modifications.css
    image

@martindonat
Copy link

martindonat commented Nov 8, 2023

Hugo doesn't render if I do this, even if my custom.css is empty.
The error message is:
execute of template failed: template: partials/stylesheets.html:8:36: executing "partials/stylesheets.html" at <minify>: wrong type for value; expected resources.ResourceTransformer; got resource.Resource

@mansoorbarri
Copy link

@martindonat, make sure your custom.css is in /assets/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants