CSS Hooks
65 posts

CSS Hooks retweetledi

@sebastienlorber Inline styles are the best option for most of your apps
English
CSS Hooks retweetledi

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!
Daniel Nagy@danielnagydotme
Are inline styles a performance sleeper pick? #webdev #html #css danielnagy.me/posts/Post_tsr…
English
CSS Hooks retweetledi

Switching to Inline Styles Could Save You 15% or More on Page Speed danielnagy.me/posts/Post_cap…
English

You either die writing CSS or you live long enough to see yourself writing inline styles. — @danimal_channel
English

When everything else has bugs, you accept the performance hit (assuming it even matters).
Ryan Florence@ryanflorence
@agilecoder @thdxr Because everything else has bugs and the performance hit is rarely observed (I’ve never seen it matter and I flush sync with state at the root all the time)
English

CSS Hooks v2 in a nutshell
navi𐙚˚⊹@vinnie_navi
This was one of the most interesting topics to me in my entire CS degree 🙌
English
CSS Hooks retweetledi

@gregwilker How do you change an element's background color on hover with inline styles?
English

P. S. Not a fan of the new API? You can still upgrade with a little help from github.com/nsaunders/css-….
English

v2 has landed with a more composable model for hooks, adding flexibility and promoting reuse. With locally-defined combinational logic, you can invert a hook or combine it with other hooks using and/or operators. Check out the details on the new website! css-hooks.com
English

Are you a @QwikDev in need of a simple styling solution? We've got you covered with our latest framework integration. Visit our website to get started...quick. 🙃
css-hooks.com

English

@b_e_n_t_e_n_ Great question! `recommended` is a shortcut for an opinionated set of hooks, but the existing API remains unchanged.
That means you can still configure hooks directly, e.g.
const [hooks, css] = createHooks({
md: "@media (600px <= width < 1000px)"
});
English

We'd like to extend a special thanks to @markdalgleish for the general design of this API!
English

@_poteboy_ @sebastienlorber @agilecoder @Poteboy Hi @_poteboy_, we've removed this phrase from the homepage and updated our "predictable performance" highlight to explain that hooks don't use style injection. Thanks again for your feedback and please keep it coming!
English

@_poteboy_ @sebastienlorber @agilecoder Thanks for the kind words and feedback @poteboy. We'll review our use of the phrase "practically zero runtime".
English

From CSS madness to CSS Hooks - @agilecoder
This new @CSSHooks lib is so cool!
Just give me better inline styles, this is the ideal DX for me 🙏
This is the closest we can get, thanks to a CSS var trick explained in this article:
nsaunders.dev/posts/css-madn…

English

