Skip to content

How do I get <hr> to change colour with the dark/light theme? #226

Discussion options

You must be logged in to vote

Hi, I think I sorted it out.

Adding the following bit to your _base.scss apparently does the trick.

hr {
border-color: var(--global-text-color);
background-color: var(--global-text-color);
color: var(--global-text-color);
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@riccardo-degasperi
Comment options

@alshedivat
Comment options

Answer selected by riccardo-degasperi
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