Facebook Tried Tailwind, Then Built This Instead

Facebook Tried Tailwind, Then Built This Instead

Theo - t3․gg

8 месяцев назад

125,818 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@AlNemec
@AlNemec - 15.12.2023 19:19

I spend a lot of my day in CSS so I don't see CSS specificity as any sort of issue and if anything I appreciate it. But its interesting how often I see devs complain about it and try to get rid of it in these libraries.

Ответить
@zzord
@zzord - 14.12.2023 19:56

That comparison table is a bit suspicious to me. Someone tried really hard to make this look better than it is. For example, styled components definitely support composition, and dynamic styles. And even the object style format (optionally).

Ответить
@thegrumpydeveloper
@thegrumpydeveloper - 14.12.2023 17:31

Last I checked the eslint validator didn’t work at scale.

Ответить
@RobCsaszar
@RobCsaszar - 14.12.2023 11:47

No.

Ответить
@QueeeeenZ
@QueeeeenZ - 12.12.2023 23:12

Tailwind better. Yes it is.

Ответить
@georgepamfilis7527
@georgepamfilis7527 - 12.12.2023 16:43

isnt this the same as stylesheet in react native?

Ответить
@TheNivk1994
@TheNivk1994 - 09.12.2023 20:32

Or the framework could just use the actual platform with shadow Dom to have scoped styles that can share the same file and will not produce all those stupid class-hash stuff, but using anything the browser just offers seems to be against everything the most people want… I would just use the newest css features maybe with post css to make it for old shitty browsers but just use the platform is always the best way. I can live with polyfill but frameworks and stuff should work that in the future it needs less code - not more as the browsers and the features progress

Ответить
@flohh
@flohh - 09.12.2023 17:04

This just seems like normal css but harder.

Ответить
@thatsalot3577
@thatsalot3577 - 08.12.2023 12:37

This is just react native stylesheet.

Ответить
@hectormanuelgomezmedina9387
@hectormanuelgomezmedina9387 - 07.12.2023 17:06

We need an update of this video

Ответить
@aaaaanh
@aaaaanh - 06.12.2023 05:47

the idea looks promising, sometimes I'm being lazy and write a const someComponentStyle = `some tailwind classes` and just reference that in multiple element/components' className and styleX might solve that(?), being able to have a centralized piece of code to update the style

Ответить
@anhvuuc8693
@anhvuuc8693 - 29.11.2023 15:20

This project seem like dead, no update from 2021

Ответить
@derschutz4737
@derschutz4737 - 28.11.2023 10:32

It's funny how 95% of the comments on here are people who have 0 idea what they're talking about and are extremely confident about it...🤣

Ответить
@MoorCoding
@MoorCoding - 27.11.2023 18:21

Have you ever tried UnoCSS? I replaced some time ago Tailwind by UnoCSS, I have all the power of tailwind but Is more customizable and is on demand. Maybe you can do a video about it :)

Ответить
@IAmOxidised7525
@IAmOxidised7525 - 25.11.2023 19:02

how the f*ck is different that classNames and scss modules ? I just want to say to React lib devs to go f*ck themselves at this point.

Ответить
@neptronix
@neptronix - 21.11.2023 07:58

Oof, this is not a better alternative to tailwind at all

Ответить
@dyunior
@dyunior - 21.11.2023 07:25

In TailwindCSS, CSS is the base knowledge, nothing more, except for the class names lol.

Go to vacation and get back after 3 weeks, you likely dig again to MUI docs for reference or similar framework, It just too much of "cognitive overhead". To add, once the framework updates there are more to dig in to docs.

Here's my top 2:
1. TailwindCSS for the win.
2. Styled-components

Ответить
@figmentfire
@figmentfire - 16.11.2023 08:33

Why use flow if you then have to also write more type for Typescript to support the same types that flow can't provide... That seems so contrary to the philosophy of the stylex project. And when it goes open source, who'll even want to touch it ¯\_(ツ)_/¯

Ответить
@SXsoft99
@SXsoft99 - 14.11.2023 14:26

must be nice for the guys at facebook to just experiment with different things
while us normal devs use solutions to reduce the time spent because out boss breathes down our neck to finish things faster

Ответить
@ghouston2712
@ghouston2712 - 09.11.2023 13:20

The whole concept of tailwind is that you don't have to write anything that resembles CSS, this StyleX approach could get messy very quickly and it will slow you down.

Ответить
@UP209D
@UP209D - 08.11.2023 10:40

This can't be direct compared to tailwind rather than a tool that can help tailwind write better code, instead of inline string, now tailwind can be rewritten to be more flexible in js way. Imagine, tailwindcss will be having a plugin using stylex that transform all exited classname style into javascript reference, much more dynamical than just a className string alone.

Ответить
@alexhinds7848
@alexhinds7848 - 08.11.2023 01:23

Stylex pre-dates Tailwind it's been used in facebook/meta for a very long time.

Ответить
@Lorofol
@Lorofol - 03.11.2023 09:08

Isn't this basically how react-native stylesheets work?

Ответить
@animancy9824
@animancy9824 - 02.11.2023 20:24

The more you write CSS, and understand design. The more you will notice you will not need these tools. That is what I realized as a front-end developer. Boostrap, Tailwind, etc. Are great for those who doesn't know how to create thier own neat scalable design systems, within 1 hour with (S)CSS. Facebook just made thier own design system it seems, and was nice enough to share with its community.

Ответить
@ilirbajrami2902
@ilirbajrami2902 - 01.11.2023 22:15

They didn't even bother to buy a domain name? hmm. smh

Ответить
@BarakaAndrew
@BarakaAndrew - 01.11.2023 16:57

I always thought react native styling is superior. This looks the same. Good

Ответить
@ninox14
@ninox14 - 01.11.2023 02:11

looks like tailwind variants and i guess CVA

Ответить
@AhmadMughal1
@AhmadMughal1 - 31.10.2023 18:15

so just what was already available in React Native then

Ответить
@Tom-rh2eq
@Tom-rh2eq - 31.10.2023 14:48

Naa, thanks. I'll pass ...

Ответить
@muhammadmejanulhaque3305
@muhammadmejanulhaque3305 - 29.10.2023 15:46

I like the pattern they followed, but being able to see all element's styles in one file is a huge help with Tailwind.

Ответить
@RLeichty
@RLeichty - 28.10.2023 05:30

Curious, but immediately turned off by having to name things again.

Ответить
@iamprincemuel
@iamprincemuel - 26.10.2023 10:59

I like stylex features for the same reason I liked pandacss when it first came out, but switching from tailwindcss is no bueno for me.

1. I don't miss naming things
2. I dislike the object syntax for styles.

Tailwind might be messy and repetitive e.g focus, active, dark mode states but it is still pretty readable. I can tell at a glance what classes are being applied on a component or easily debug issues. I really don't mind adding plugins like tailwind-merge and class-variance-authority.

Ответить
@roberthall9452
@roberthall9452 - 25.10.2023 22:26

Thsnks, I hate it.

Ответить
@netdoom
@netdoom - 25.10.2023 11:58

I absolutely hate tailwind. Loving this…

Ответить
@dawidwraga
@dawidwraga - 23.10.2023 22:04

This is just panda css but worse

Ответить
@shadokan87
@shadokan87 - 22.10.2023 17:41

I am trying stylex on a school project. But there is absolutely no help online for some bugs I encounter while setting it up.
This is my error
Error: stylex.create should never be called. It should be compiled away.

Ответить
@coolemur976
@coolemur976 - 20.10.2023 07:39

TW doesnt scale??? How? If you want to scale styles in component based frameworks - you are doing something wrong.

Ответить
@user-lq2ip9si7y
@user-lq2ip9si7y - 20.10.2023 06:29

nope sticking to tailwind

Ответить
@mladenknezovic7410
@mladenknezovic7410 - 18.10.2023 02:18

This is not a new pattern at all. There has been JSS since couple years already... And now there are bunch of others as well...

Ответить
@user-xo4gu2uu6r
@user-xo4gu2uu6r - 17.10.2023 18:21

I am still using sass modules for pretty much everything. It works. I hate writing any media queries so a function does it all. I also use twbs /rfs for font sizes and container padding mainly. I don't know if I can do it without rfs in the future. I am just afraid that rfs might die one day.

Ответить
@FourTwentyMagic
@FourTwentyMagic - 16.10.2023 19:51

Have you heard of vanilla-extract css?

Ответить
@rancohen1505
@rancohen1505 - 16.10.2023 15:29

The C(ascading) in CSS is an implementation detail, just that no one implemented it! It is up to our poor brains to go "How the heck should things cascade in order for this to happen? and how to achieve this using the minimal number of selectors?" instead of the other way around; I guess we never questioned it because it made us smart CSS Engineers instead of color pickers.

Ответить
@hammarhank
@hammarhank - 15.10.2023 13:24

Why do you look so scary? Are you not blinking enough, or is it the combination of blonde hair with a dark mustache? Thank you for the interesting videos!

Ответить
@SolidWorksMastery-hr4sg
@SolidWorksMastery-hr4sg - 15.10.2023 11:24

this look like react-native and styled-component ........i like tailwind cause i don't have to name a class name or a component so meh for me

Ответить
@nullquest
@nullquest - 15.10.2023 09:35

What the fuck

Ответить
@nikitaproit
@nikitaproit - 15.10.2023 03:28

Nothing new. However, css-in-js is created for only one purpose - cross-platform styling. And this is a big problem. We are no longer waiting for these cool CSS features in the browser. Because we are targeting the mobile platform. What a disgrace.

Ответить
@w00t360
@w00t360 - 14.10.2023 15:51

To me, I think you summarised it pretty well with StyleX requiring more "cognitive overhead" which is something I as a developer am not interested in.

Ответить
@joshualetcher4743
@joshualetcher4743 - 13.10.2023 06:59

Have you seen panda-css?

Ответить
@serhiiway
@serhiiway - 12.10.2023 19:35

Why just not use SASS?

Ответить
@ollydix
@ollydix - 12.10.2023 17:53

It doesn't scale lol? haha it's the definition of scaling with modeler components and tailwind.configs ...

Ответить