Make `textDecorationColor` use Variable Colours
See original GitHub issueIs your feature request related to a problem? Please describe.
Kind of, bit of a pain in dev.
Describe the solution you’d like
For the same thing to happen for color
and textDecorationColor
Thanks for reading my request!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
text-decoration-color - CSS: Cascading Style Sheets | MDN
The text-decoration-color CSS property sets the color of decorations added to text by text-decoration-line.
Read more >Working with text decoration color - Stack Overflow
I want to change text decoration underline color on hover. But I want underline color to be different than text color. I have...
Read more >Winning with CSS Variables | hey it's violet
I'll be walking through the basics of CSS variables, how they are different from Sass variables, and how to provide legacy support. How...
Read more >"currentColor", the first CSS variable - DEV Community
The currentColor keyword is basically what it sounds like: it's a special keyword that holds the value of the color property at the...
Read more >CSS Variables - The var() function - W3Schools
CSS variables have access to the DOM, which means that you can create ... A good way to use CSS variables is when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oh that’s great, thank you for the tip @fcisio !
Hey, in addition to the PR, I would recommend the use of the
currentColor
CSS property.It works like this:
This property allows affecting the value of the
color
property to any other property. It’s a bit more efficient way to handle that kind of use case. This way you can define the color only once.So if you have to change the color at any point you can change it in a single place. Hope this helps 👋