How to change certain colors (e.g. hyperlinks) in the theme? #64
Answered
by
wangchucheng
kimlaberinto
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Regenerating the assets may solve this problem.
You can comment the build config in config.yaml and install necessary packages in theme folder (npm install, etc.). Hugo pipes related docs in gohugo.io may help you.
…________________________________
发件人: Kim Laberinto <[email protected]>
发送时间: Wednesday, February 10, 2021 7:59:31 AM
收件人: wangchucheng/hugo-eureka <[email protected]>
抄送: Subscribed <[email protected]>
主题: [wangchucheng/hugo-eureka] How to change certain colors (e.g. hyperlinks) in the theme? (#64)
I'm interested in changing the teal color used in the theme. I think it's used for the hyperlinks. I thought I could change the color in the following file, but it didn't work when I tried it.
I found this file: assets/css/base.css
:root {
@apply font-serif bg-primary-bg text-primary-text;
--color-eureka: #38B2AC;
--color-primary-bg: rgba(242,242,247,1.00);
--color-secondary-bg: rgba(255,255,255,1.00);
--color-tertiary-bg: rgba(242,242,247,1.00);
--color-primary-text: rgba(0,0,0,0.85);
--color-secondary-text: rgba(0,0,0,0.7);
--color-tertiary-text: rgba(0,0,0,0.55);
}
.dark {
--color-eureka: #38B2AC;
--color-primary-bg: rgba(0,0,0,1.00);
--color-secondary-bg: rgba(28,28,30,1.00);
--color-tertiary-bg: rgba(44,44,46,1.00);
--color-primary-text: rgba(255,255,255,0.85);
--color-secondary-text: rgba(255,255,255,0.7);
--color-tertiary-text: rgba(255,255,255,0.55);
}
a:hover {
@apply text-eureka transition duration-300 ease-in-out;
}
But when I change --color-eureka and retest my site using Hugo (hugo serve) I don't see any changes. Am I doing something wrong?
Where can I change the color?
―
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#64>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJEXGNDCWSTWXGMYIWELQ2TS6HD6HANCNFSM4XL6CKMQ>.
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kimlaberinto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm interested in changing the teal color used in the theme. I think it's used for the hyperlinks. I thought I could change the color in the following file, but it didn't work when I tried it.
I found this file:
assets/css/base.css
But when I change
--color-eureka
and retest my site using Hugo (hugo serve
) I don't see any changes. Am I doing something wrong?Where can I change the color?
Beta Was this translation helpful? Give feedback.
All reactions