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

How to change colours? #175

Closed
JohIngs opened this issue Jun 2, 2023 · 7 comments · Fixed by #191
Closed

How to change colours? #175

JohIngs opened this issue Jun 2, 2023 · 7 comments · Fixed by #191

Comments

@JohIngs
Copy link

JohIngs commented Jun 2, 2023

Hi,

now that css is shipped as a bulma module, is there a possibility to change things like button colours, for example?
I can see where the color variables are defined in your style.sass, but I dont see how I can change them. Could you please share this information in the docs? It would improve the otherwise awesome theme so much!

Thank you!

@cryptobee-it
Copy link

Hi any updates on changing colors? I am stuck at this point. Would appreciate some hints howto change the colors and height/width as the changes seem to be overwritten when touching the sass file.

@cryptobee-it
Copy link

cryptobee-it commented Dec 16, 2023

To change colors in the hugo-fresh theme
I used to add hugo-fresh as a git submodule,

hugo new site website -f yml
cd website
git init
git submodule add https://github.com/jgthms/bulma.git themes/bulma
git submodule add https://github.com/StefMa/hugo-fresh.git themes/hugo-fresh

Then I entered the directory hugo-fresh/assets/fresh/partials
In the _colors.scss I defined my custom colors as variables.
Then I used the defined color variables in the different sass files like _hero.scss, _footer.scss etc.

@ok-kai
Copy link

ok-kai commented Dec 19, 2023

@cryptobee-it Can I take a look at your config file?

I set up a new site and used the hugo.yaml config file from hugo-fresh/exampleSite, but I'm getting an error.

error:

Error: command error: failed to load modules: module "github.com/StefMa/hugo-fresh" not found in "D:\Users\K\Working\Static-Sites\Hugo_Extended\Test\website\themes\github.com\StefMa\hugo-fresh"; either add it as a Hugo Module or store it in "D:\Users\K\Working\Static-Sites\Hugo_Extended\Test\website\themes".: module does not exist

@StefMa
Copy link
Owner

StefMa commented Dec 19, 2023

@ok-kai you have to change the config to use a theme as a submodule and not a hugo module.

Basically you can remove this one

module:
# uncomment line below for local development of module
# workspace: hugo.work
imports:
path: github.com/StefMa/hugo-fresh

and instead adding

theme: 'hugo-fresh'

@ok-kai
Copy link

ok-kai commented Dec 20, 2023

@StefMa

Hey author, truly appreciate your response ❤️


I've already removed the module part in the configuration file, but now there's a new error popping up.

The error message is as follows.

Error: command error: failed to load modules: module "github.com/jgthms/bulma" not found in "D:\Users\Keith\Working\Static-Sites\Hugo_Extended\Test\website\themes\github.com\jgthms\bulma"; either add it as a Hugo Module or store it in "D:\Users\Keith\Working\Static-Sites\Hugo_Extended\Test\website\themes".: module does not exist


The configuration file is as follows.

baseURL: http://something-fresh.org/
languageCode: en-us
title: Hugo Fresh Theme

theme: hugo-fresh


# module:
  # uncomment line below for local development of module
  # workspace: hugo.work
  # imports:
  #   path: github.com/StefMa/hugo-fresh

My file directory is as follows.

│  .gitmodules
│  hugo.toml.bak
│  hugo.yaml
│
├─archetypes
├─assets
├─content
├─data
├─i18n
├─layouts
├─static
└─themes
    ├─bulma
    │ ...Omit the directory structure of the Bulma theme.
    └─hugo-fresh
	  ...Omit the directory structure of the hugo-fresh theme.

@StefMa
Copy link
Owner

StefMa commented Dec 20, 2023

It seems that you have to point to the correct directoy from the hugo-fresh theme to the bulma module import.
In your website/themes/hugo-fresh/config.yml you should do:

module:
  imports:
-  - path: github.com/jgthms/bulma
+  - path: bulma
    mounts:

Does this help? 🤔

@ok-kai
Copy link

ok-kai commented Dec 20, 2023

@StefMa Thanks for your reply, it's working fine now after the changes. Thanks again.

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

Successfully merging a pull request may close this issue.

4 participants