I'm finding that most CSS-in-JS libraries aren't radical and strict enough. Ban descendent selectors, whitelist pseudo selectors, don't allow dynamic values. What I really want is just styles-in-JS. Get rid of the cascade.
-
Show this thread
-
Replying to @sebmck
Can you elaborate even further on the dynamic values you would ban? Would you ban CSS variables & emerging CSS color functions involving shade & etc?
1 reply 0 retweets 1 like
Replying to @KevinLozandier
Sebastian Retweeted Sebastian
I would ban deriving style values from dynamic JS values.https://twitter.com/sebmck/status/1027294724435075072 …
Sebastian added,
12:03 PM - 9 Aug 2018
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 