Skip to content

How to update color values in _color.scss or _palette.scss #189

Answered by razonyang
AidaIssayeva asked this question in Q&A
Discussion options

You must be logged in to vote

Hugo won't watch the files placed in src, since I use other tools(npm) for generating JS and CSS files.

You can change the color by modifying assets/css/custom.css with the following style:

.mode-light, .mode-dark {
  --hbs-primary: red !important;
  --hbs-primary-light: green !important;
}

--hbs-primary and --hbs-primary-light were used in light and dark mode respectively.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AidaIssayeva
Comment options

Answer selected by razonyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants