CSS Hooks

63 posts

CSS Hooks banner
CSS Hooks

CSS Hooks

@CSSHooks

Присоединился Ağustos 2023
77 Подписки478 Подписчики
CSS Hooks ретвитнул
JLarky
JLarky@JLarky·
@sebastienlorber Inline styles are the best option for most of your apps
English
1
1
3
911
CSS Hooks
CSS Hooks@CSSHooks·
You either die writing CSS or you live long enough to see yourself writing inline styles. — @danimal_channel
English
1
1
3
854
CSS Hooks
CSS Hooks@CSSHooks·
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
0
0
0
607
CSS Hooks ретвитнул
Tailwind CSS
Tailwind CSS@tailwindcss·
@gregwilker How do you change an element's background color on hover with inline styles?
English
6
4
219
30.1K
CSS Hooks
CSS Hooks@CSSHooks·
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
2
6
27
2.3K
CSS Hooks
CSS Hooks@CSSHooks·
As of today's v1.8 release, CSS Hooks supports @supports!
English
0
0
2
425
CSS Hooks
CSS Hooks@CSSHooks·
v1.7 is out! The `css` function now accepts a variable number of style object arguments, merging them in a more predictable manner than spreading. Enabling the new `sort` option ensures that the last declaration in input order always has the highest priority. Default in v2?
English
0
0
10
641
CSS Hooks
CSS Hooks@CSSHooks·
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
CSS Hooks tweet media
English
1
6
25
6K
CSS Hooks
CSS Hooks@CSSHooks·
@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
0
0
1
59
CSS Hooks
CSS Hooks@CSSHooks·
We recently published v1.4 featuring a new "recommended" hooks API that offers a convenient way to configure pseudo-class and media query hooks - with more options to come! All hooks are now opt-in, further reducing the size of your style sheet. Ours went from ~3.5kB to ~0.6kB!
CSS Hooks tweet media
English
2
2
39
11.7K
CSS Hooks
CSS Hooks@CSSHooks·
We'd like to extend a special thanks to @markdalgleish for the general design of this API!
English
1
0
10
635
CSS Hooks
CSS Hooks@CSSHooks·
This comes with one caveat, which is that you'll need to upgrade to TypeScript v5.3 to use the new `recommended` function. If you can't upgrade yet, don't worry: The existing `createHooks` API remains unaffected.
English
1
0
4
698