Joined August 2023
CSS Hooks retweeted
Replying to @sebastienlorber
Inline styles are the best option for most of your apps
1
1
3
946
First @CSSHooks debunked some deeply-held assumptions about the functional limitations of inline styles. And now @danimal_channel challenges the widespread FUD around inline style performance. Maybe it’s time to re-evaluate your styling framework and consider a simpler approach!
1
3
10
2,099
Switching to Inline Styles Could Save You 15% or More on Page Speed danielnagy.me/posts/Post_cap…
1
4
624
Replying to @gregwilker
How do you change an element's background color on hover with inline styles?
6
4
1
216
30,123
Yes, this is planned, but is much harder to implement than the rest of nesting, so it will happen later.
2
8
1,061
That is a good point; but the hook name is type-checked, and I expect autocompletion would help people avoid the issue in the first place.
2
1
1,185
Check out CSS Hooks. This is *very* cool. It lets you write type-safe inline styles (literally the `style` attribute) *BUT* with support for a custom set of pseudo-classes, selectors, media/container queries — and nested too! Amazing work @agilecoder 🎉 css-hooks.com
1
6
2
74
25,214
Imagine if inline styles could do this. As long as every selector within it targets the "&" character (i.e. styling itself) it could be considered valid.
13
7
2
79
83,163
Big news for #reactjs #web #frontend #developers: We can finally just use the `style` prop for state-driven styling (hover, focus, active, etc.) and responsive design. No weird build steps or #JavaScript side effects. css-hooks.com #html #css #typescript #tailwind
2
1
1
25
2,544