This is an epic to collect all css related issues and enhancements targeted for 2.0
Use CSS3 vars :D Would be nice to have to make theming easier.
@TheAifam5
We would love to use CSS variables! Sadly, IE11 support is a requirement for us. And CSS variables will not work in IE11. We are investigating our options. In the meantime, maybe you could start a campaign to get large companies to drop IE11 support? 馃槉
@mathisscott hmm yea, but the other option could be using JS to "apply" overrides on top of the current loaded styles , but I don't know how fast and efficient that could be.
@TheAifam5 - I've done some research into this and really like the custom properties a.k.a css variables approach for several reasons.
JS to "apply" overrides for Clarity on multiple levels like: a single attribute, a set of attributes, a single component or globally which would keep the service opt-in and only as heavy as the consumer needs it to beI _think_ we can accomplish something like this with postcss-custom-properties and my initial tests look promising. The challenge is that Clarity scss is organized around the components even though it rolls everything up into the one css file during build time and the easy example that I was testing with seemed to have difficulty with the way Clarity component variables are implemented. (it seemed like a scoping issue when I was testing the plugin)
That said, if you have some ideas for the JS to "apply" overrides let me know ... I'm happy to discuss it further. We 鉂わ笍 any help folks have to give for things like this.
This is what came from the top of my head:
Hi there 馃憢, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Most helpful comment
@TheAifam5
We would love to use CSS variables! Sadly, IE11 support is a requirement for us. And CSS variables will not work in IE11. We are investigating our options. In the meantime, maybe you could start a campaign to get large companies to drop IE11 support? 馃槉