Show HN: CSS Extras
31–40 of 66 posts
Re: Show HN: CSS Extras
#32CSS is changing so fast. I guess we will see Doom in CSS shortly
This project is based on just one new proposed rule which won't be available in all mainstream browsers until 2027-28, and won't be safe for production use until close to the end of the decade.
Re: Show HN: CSS Extras
#33Not supported by Firefox or Safari https://caniuse.com/?search=%40function
Re: Show HN: CSS Extras
#34CSS is changing so fast. I guess we will see Doom in CSS shortly
This may feel true if you've re-engaged with CSS's progression in the last ~5–7 years. In reality, the last big qualitative leap was Grid in 2017. This project is based on just one new proposed rule which won't be available in all mainstream browsers until 2027-28, and won't be safe for production use until close to the end of the decade.
Of note from 2023: subgrids, :has, container queries, nesting... And in 2022, cascade layers (plus , I mean @scope, I mean :scope).
Re: Show HN: CSS Extras
#35Earlier quoted context omitted.
But there are also plenty of use cases where recalculation will be valuable in the client. CSS variables cascade so a preprocessor isn't going to be able to know ahead of time what any given variable value is.
Sure, the new syntax allows doing some nifty stuff with the cascade. In practice, however, I foresee most usage being simple one-time transformations of design tokens. I suppose it is more of a theme architecturing issue.
Re: Show HN: CSS Extras
#36Earlier quoted context omitted.
> is it really necessary to have this as an npm package ? Is anything really necessary? Not snark: almost nothing is necessary in life but many things are convenient .
Surely a cdn is more convenient. I don't want to install an entire package manager just to 'install' 2 CSS files.
Re: Show HN: CSS Extras
#37Welp, time to make a @function preprocessor. There is no reason for every single client to recalculate things which could have been completely or partially calculated at build time.
Is preprocessed CSS faster? Yes. Is it meaningfully faster? Probably not.
Re: Show HN: CSS Extras
#38Re: Show HN: CSS Extras
#39I’m so confused why people are ragging on this. Why is this considered detrimental? Looks pretty good to me…
Re: Show HN: CSS Extras
#40Earlier quoted context omitted.
> is it really necessary to have this as an npm package ? Is anything really necessary? Not snark: almost nothing is necessary in life but many things are convenient .
Surely a cdn is more convenient. I don't want to install an entire package manager just to 'install' 2 CSS files.
They also happen to be a great attack vector! You and your users are much better off not using them for anything but toys.