Тёмный

Facebook Tried Tailwind, Then Built This Instead 

Theo - t3․gg
Подписаться 339 тыс.
Просмотров 128 тыс.
50% 1

Much more into StyleX than I expected. Genuinely hyped on their philosophy and general direction. Learned all the right lessons from Tailwind, Vanilla Extract, Styled Components and more. Turns out the React team really does pay attention 🤣
Link to the site stylexjs.com/
ALL MY VIDEOS ARE POSTED EARLY ON PATREON / t3dotgg
Everything else (Twitch, Twitter, Discord & my blog): t3.gg/links
S/O Ph4se0n3 for the awesome edit 🙏

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 408   
@goldforest06
@goldforest06 Год назад
the second I see a css library that requires you to name things I get fatigued XD
@JT-mr3db
@JT-mr3db Год назад
From a shareable styles perspective this does look pretty cool. Dev experience wise it doesn't cut tailwinds lunch, not even close.
@andrueanderson8637
@andrueanderson8637 Год назад
cut their lunch? never heard that phrase, is that a bad thing?
@cyrus01337
@cyrus01337 Год назад
@@andrueanderson8637 It doesn't even come close, is what it means.
@JT-mr3db
@JT-mr3db Год назад
It translates to "Make a move on someones territory". Typically used in the pejorative but not in this case.@@andrueanderson8637
@portalteam5832
@portalteam5832 Год назад
@@andrueanderson8637 its like stealing a girlfriend... so this isn't going to takes developers from tailwind, at least not ones that care more about dev experience than shareability
@LabhamJain
@LabhamJain Год назад
​@@andrueanderson8637meaning it can't compete with tailwind
@zdeneksc2895
@zdeneksc2895 Год назад
So we need to again come up with these lovely names like .card-primary-container just to create a flex-box column. The only thing I'm not missing is naming things.
@iamghezali
@iamghezali Год назад
finding correct names for the components is enough of it self lmao
@andrewkosenko2757
@andrewkosenko2757 Год назад
And this is exactly the reason why tailwind is a no-brainer. It’s better than bootstrap, easier to write with. If you need to reuse styles, just put them into string variable and use interpolation in classname. The only drawback to that approach is that you’ll need to name it something. And that you have several pieces depending on the same variable, but that’s fixable by overriding what’s needed
@tahamohammedi5898
@tahamohammedi5898 Год назад
@@andrewkosenko2757 The comparison with bootstrap is offensive at this point, Bootstrap provides uncostumizable components tailwind gives you classes to use like pure css, there's nothing in common
@boenrobot
@boenrobot Год назад
It seems like with stylex, you are allowed to just repeat yourself, so you may not have to come up with uniformed names... If your resulting style object is the same, it will compose the same way, regardless of its name. During pre-compilation, style objects with the same props and values end up with the same css class name across the project.
@andrewkosenko2757
@andrewkosenko2757 Год назад
@@boenrobot you will still have to create names for unique things, which is an overhead, tailwind allows you to remove this overhead completely AND is still mostly easily readable (except some obscure cases with millions of props per div)
@crade47
@crade47 Год назад
this is literally how you do styles in react native
@halilsmith8162
@halilsmith8162 Год назад
haha fr
@leonardodavinci2856
@leonardodavinci2856 7 месяцев назад
was about to write the exact thing @@halilsmith8162
@matthall8845
@matthall8845 6 месяцев назад
which I'm really pleased about, I really don't like the Tailwind approach personally
@vichetnoeng706
@vichetnoeng706 Год назад
I prefer Tailwind😁
@quantran4704
@quantran4704 Год назад
ReactJS from FB is enough :))
@MarkJaquith
@MarkJaquith Год назад
I like this sort of video. Even if you aren't going to use something, you can learn a lot from seeing how different projects choose different values and tradeoffs.
@DryBones111
@DryBones111 Год назад
Just remember that Facebook made this to solve Facebook problems. This looks like a big step back to me for many other types of projects, and comes with a lot the same drawbacks that CSSinJS usually comes with. I also find the claim of colocation laughable considering all of their examples import some nonsense CSSinJS objects from the depths.
@seghirissam2662
@seghirissam2662 Год назад
Just remember facebook create react to solving their problems too But you used it any way or other developers used it
@TheNeonRaven
@TheNeonRaven Год назад
@@seghirissam2662 and this is why the warning from @Drybones111 is justified. Too many devs jump on every hype train and cause massive amounts of tech debt, bloated slow applications for the end user, and tonnes of friction on starting up new projects. Nothing wrong with using this or React, but the caution is to introduce new tech when/IF you need it.
@DryBones111
@DryBones111 Год назад
@@seghirissam2662 You made my point for me.
@jacksonbourne
@jacksonbourne Год назад
@@seghirissam2662 Sure, but it turns out React is a steaming pile of garbage that is dragging the frontend ecosystem to a standstill for a lot of developers
@CottidaeSEA
@CottidaeSEA Год назад
@@seghirissam2662 React is unnecessary for most websites, so I do not see the issue.
@EvilTim1911
@EvilTim1911 Год назад
I never really understood why people shy away from just regular old (S)CSS. The project I'm working on right now just has SCSS and Vue scoped styles and I never felt like I needed a fancier solution than that. I can pump out pages with responsive layouts just as quickly as with tailwind and I'm still in the "Tailwind makes my markup look messy and horrible" camp so I prefer this approach. Overall when I think about it I probably spend less than 5% of my time styling things so I never felt that was an area where I needed a 10% improvement in my workflow. But hey, your mileage can vary.
@Chainwax
@Chainwax Год назад
The whole time I watched this I was thinking the same thing. I recently made a couple of SvelteKit apps and just rolled with the component scoped css + a global file. All this over-engineering to avoid writing css seems a little ridiculous. Even at work, where we have a very large codebase, the internal component library was completely done with styled components, which is basically just giving you scoped css in a Reacty way. The premise of “writing css is confusing/not scalable/time consuming” really isn’t true if you… know how to write it.
@ctw-home
@ctw-home Год назад
if you think that plain scoped css is good, then your are definitely missing what tailwindcss can do for you. which is basically the same as plain CSS but with super-mega-dupper powers. No, seriously, if you take the time to play with it you'll see.
@huge_letters
@huge_letters Год назад
ScopedCSS does solve some of the same problems Tailwind solves but not all of them - the main one being that with ScopedCSS 2 components with similar CSS will create 2 separate CSS "modules". That's not the case with Tailwind, ALL of your styles are reused do to its atomic nature. This leads to smaller bundle size.
@EAlexHaywood
@EAlexHaywood Год назад
Tailwind is a lot less fancy than SCSS lol, but I agree Stylex is just like all the other css in js solutions: overengineered
@tuananhdo1870
@tuananhdo1870 Год назад
I can not live without tailwind now. Why make your life harder without it
@Viviko
@Viviko Год назад
I think this is great if you are making a component library. For apps, I will stick with Tailwind.
@dv_interval42
@dv_interval42 Год назад
The fact that they said "kind of" for colocation in Tailwind triggered me. Stylex seems like a step backward but whatever floats one's boat I guess.
@MarkJaquith
@MarkJaquith Год назад
Yeah, but there was a big disclaimer over that section... that might have been one person's spur-of-the-moment judgment, thinking "well, the actual CSS rules are elsewhere". So maybe they'll change that. To me, Tailwind has BETTER colocation... the styles are on the elements, not just in the same file.
@NamanGoel34
@NamanGoel34 Год назад
@@MarkJaquithThat’s exactly what it was. That table is the least complete part of the docs. It’s not released yet, I was just trying to get some early feedback. PandaCSS checks all the boxes too for example.
@2penry2
@2penry2 Год назад
This feels very similar to SCSS modules used at a component level.
@mohithkumar1624
@mohithkumar1624 Год назад
I still like tailwind more😅, as It maintains sweet spot between convenience and scalability.
@muralielumalai
@muralielumalai Год назад
a different way to write classNames basically
@danieljing9319
@danieljing9319 Год назад
what difference between this and styled-components, I can see this is 99% similar with styled-components
@artemeelemann317
@artemeelemann317 Год назад
This was present for a decade in material react mui and they deprecated this makeStyles as this is unusable. I dont see any benefit comparing to styled-components
@kriffos
@kriffos Год назад
I'm still impressed by what huge code monsters developers have come up with to work against the nature of CSS, instead of following the CSS path and using its strengths.
@CodingPhase
@CodingPhase Год назад
lol yes I feel the same.. instead of just using css.. just because people don't know how to name elements or just don't even know how to use css.
@axa993
@axa993 Год назад
Nope. Using just CSS is fine but when building out reusable components you need a library to help you out and speed up the development. Personally, I rely on CSS/SCSS modules and Tailwind to keep it simple but libraries like this are great for building reusable component libraries.
@paragateoslo
@paragateoslo Год назад
​@@axa993 How exactly does this make it easier than just using css modules for scoping and a package like classnames to do dynamic classes?
@Pete133
@Pete133 Год назад
It's really strange hearing Theo say @17:09 that the way css cascading works isn't intuitive at all... I think the only way that viewpoint makes sense is if you learned tailwind before learning normal css. It makes perfect sense if you've ever written more than one .css file. I do get that Tailwind makes this more confusing, because Tailwind creates an extra layer between the developer and the actual css. I can even see how styleX's approach could make css cascading a lot more simple(like many other css-in-js solutions). But saying that css cascading isn't intuitive and doesn't make any sense is pretty dang silly. Yes a css library like this might make things easier, but in no way is css cascading "nonsense".
@tuananhdo1870
@tuananhdo1870 Год назад
Using css feel like driving bicycle vs tailwind is like a car
@lukasmolcic5143
@lukasmolcic5143 Год назад
Tips for those still using BEM, if there is anyone out there, your component name is the name of the block, you anyhow have to name your component with a unique name, make that the name of your block, and then for the elements and modifiers inside of it, just use anything you would like, you are scoped to that component, unfortunately next wont allow you to import that css file to a single component, but you can still keep it in the same folder and then import it to a global css file you have included in the app or wherever, when you stop using the component, just delete the whole folder and the compiler will let you know where were the files still being referenced.
@nooalovern
@nooalovern Год назад
This is just CSS with extra steps.
@REAZNx
@REAZNx Год назад
Yeh I’m still missing the point in this, it’s just styled components v2…
@guxit
@guxit Год назад
I was thinking the same, but I guess the difference is that this is framework agnostic. But then again, so is CSS.
@vitorwindberg4212
@vitorwindberg4212 Год назад
I don't get it also, when I saw the video title I thought "oh! something to challenge tailwind and be possibly better? I have to check it" and then I see this...
@griffadev
@griffadev Год назад
I really think libraries themselves should have these sorts of docs exploration videos on their sites, so good.
@CodingPhase
@CodingPhase Год назад
Yeah this one is definitely not for me this seems like a mess overly engineered just to write css.
@w00t360
@w00t360 11 месяцев назад
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.
@punkweb
@punkweb Год назад
Alternative video title: frontend continues to go downhill Tailwind was already stupid enough
@u007james
@u007james Год назад
tailwind shorten the styling and make it visible on the component level itself. sylex is doing that is like doing inline, split up the script into another file or section and make it difficult to see the styling like traditional styling. maybe the solution to scalable tailwind is to create classes that encapsulate number of classes
@zbik
@zbik Год назад
That's what I do in svelte with postcss & tailwind. I can just do .myclass { @apply px-2 py-1 text-lg } to apply a long list of tailwind classes under my own class name. Just makes writing styles a lot faster (and it's still in the same file as the markup and scripts)
@u007james
@u007james Год назад
@@zbik but post css may need to do cleanup for those duplicated and overwritten classes, not sure if it does that
@bielgaucho_real
@bielgaucho_real Год назад
Sorry Theo... but Tailwind has no co-location at all. Inline classNames of classes you don't own is not even a single bit more co-located than inline css styling. When you need to make a change you'll grab the same old iconic "find-all replace-all" tool. It is easier to get it done because the tokens you are replacing are aliases themselves, but not more co-located because you will not ever change Tailwind CSS itself. Don't get me wrong, I'm not bitching on Tailwind, and I think I would still prefer to work with Tailwind any day.
@jonahallibone
@jonahallibone Год назад
Removing style-at-a-distance generally seems like a philosophical decision and not a practical one. In 99% of cases, doing something in CSS will be more performant than doing something in JS. Needing to use JS to calculate isOdd, for instance, instead of using a pseudo selector from a parent seems like a ridiculous (not stated) caveat. I use CSS in my projects to eject from React world when rerenders are needlessly expensive and I can just modify a CSS variable instead (think table columns on a complex table). Stylex will need to create a novel solution to maintain their opinionated approach while abstracting style-at-a-distance in a more practical way. I wouldn't consider using it without generic solutions to this self imposed limitations or repeatable PERFORMANT ways of achieving these patterns.
@jeffwhite3867
@jeffwhite3867 Год назад
In everything, we've lost the wisdom of attempting to do something at the most basic level and only applying complexity when it's needed. Instead, we take for granted that we need a large, convoluted ecosystem of tools to accomplish everything, which most often results in denial about the cost of maintaining that ecosystem not being worth the benefits it provides.
@RemotHuman
@RemotHuman Год назад
This is the same thing as traditional CSS - you make class names that correspond to rules and then apply them. The only difference is you write the CSS rules in js and you can use the js import/export system, which I would say is better than using CSS files, but it literally is the same exact workflow so it seems Edit: I see they got rid of styles cascading down to children elements, so that's one thing that's different, might have missed some others in the video
@CottidaeSEA
@CottidaeSEA Год назад
Another difference is that you can reuse names since they are bound to their own scope. This means you don't have to use methodologies like BEM just to have understandable CSS.
@refreshfr
@refreshfr Год назад
@@CottidaeSEA With CSS modules (or vanilla CSS @scope) you can achieve the same behavior where the style you define only applies to the component/element tied to it without fear of affecting other elements even if they share the same class names.
@BarakaAndrew
@BarakaAndrew 11 месяцев назад
I always thought react native styling is superior. This looks the same. Good
@TabuHana
@TabuHana Год назад
does this remind anyone of just default HTML css but just ... worse?
@aaaaanh
@aaaaanh 10 месяцев назад
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
@JacoBoogie
@JacoBoogie Год назад
Elon’s gonna be pissed when he finds out Zuck is naming his new css-in-js styleX
@denniscual4618
@denniscual4618 Год назад
Fb announced StyleX way back React Conf 2019 😅
@JacoBoogie
@JacoBoogie Год назад
@@denniscual4618 damn so that must be where Elon came up with the new name for Twitter!
@dogoku
@dogoku Год назад
I don't agree that styling elements using their relationships (or as they call it "at a distance") is a bad thing. I do agree that all styles of a component should be defined in one place, but I also believe that clearly representing relationships is important. When using Sass I have always worked in a specific way, where all styles for a single component must be inside the same block, e.g .my-component { }. Meaning that I don't use `&:hover > .my-component` in the parent block, as that would violate that rule. Instead I use `:hover > &`, which is basically declaring a variant style of that component when the parent is hovered, keeping all styles related to that component in the same place and preserving the relationship between parent and child. If StyleX finds a way to preserve these use cases, then I might be inclined to take another a look, but until then, this feels like a half baked lib to me and would not be using it in a real project.
@refreshfr
@refreshfr Год назад
Yeah, them saying "It is currently impossible for a child element to have conditional styles when it's parent is hovered, we already have some ideas to make these patterns possible in the future," was really weird IMO. Disabling one of the core feature of CSS to potentially reinvent it afterwards?
@cody_codes
@cody_codes Год назад
This doesn’t look great tbh. CSS in React is absolute hot garbage.
@ThugLifeModafocah
@ThugLifeModafocah Год назад
I really don't get this 'doenst scale' thing... It really doesnt make sense.
@xDJxG0LD3Nx
@xDJxG0LD3Nx Год назад
MUI has this exact thing already with the sx prop and theming
@xingliu7071
@xingliu7071 Год назад
Tailwind is also on top of shipping newest css features (like :has, or the ability to use custom inline var to make framer-motion animations ‘dynamic’) and provides great documentations on how to use them, I can see they’ll come up ways to organize inline css on a code editor level and give more intellisense power to help developers. But it’s interesting on stylex is heading towards to…
@TheNewton
@TheNewton Год назад
There's something that ships the newest CSS features even more BLAZING fast plain ole CSS 💨🔥 🚀
@victorv7356
@victorv7356 Год назад
Facebook can’t do that because they support old browsers so can’t always keep up to cutting edge CSS features
@gabrielmedeiros9806
@gabrielmedeiros9806 Год назад
For me it`s a kind of styled component 🤔
@TheNewton
@TheNewton Год назад
Tailwind et al. are a prototyping abstraction that shouldn't make it to production encouraging practices that erode the web in ways such as undermining userscripts and userstyles for users, inscrutable code for end users, and debug soup for developers. All these hoops will continue to be bad because of thing devs want to avoid CSS: naming things with nouns.
@pieflies
@pieflies Год назад
I concur
@muhammadmejanulhaque3305
@muhammadmejanulhaque3305 11 месяцев назад
I like the pattern they followed, but being able to see all element's styles in one file is a huge help with Tailwind.
@jnevercast
@jnevercast 9 месяцев назад
I believe the StyleX styles are also in one file? Unless you mean something else.
@christopherpoulsenfernande1624
I think using svelte and tailwind in combination is the best of both worlds, when I need a css class for reusability or whatever reason I can declare it in the style tag.
@patrickjreid
@patrickjreid Год назад
I am so grateful for this channel! Thank you Theo for communicating all these hard concepts so concisely! I have a request for a topic on Next.js, no one seems to be talking about and breaking down the "down the tree" concepts. I don't know why but something about it is really tough for me to wrap my head around. Another rant I would love to hear would be an update on "don't use MUI with Next.js!" Thank you again for all the awesome content!
@ghouston2712
@ghouston2712 10 месяцев назад
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.
@perc-ai
@perc-ai Год назад
Hi Theo, Its me again, your favorite Hasura user. We are at the point of the web where its literally just about power. We keep reinventing the same shit over and over with some slight modifications. Then some genius comes along and shatters everything we took for granted single-handedly shifts us into a new paradigm. I think tailwind was that paradigm but this stylex is just a rehash of it, doesn't seem as revolutionary tw. We been already looking into atomic universal styling with TamaGUI.
@dixztube
@dixztube Год назад
Man I agree with this. I wonder if these companies just shell out money to get the coverage
@JohnSmith-gu9gl
@JohnSmith-gu9gl Год назад
I thought this was styled-components
@georgepamfilis7527
@georgepamfilis7527 9 месяцев назад
isnt this the same as stylesheet in react native?
@xylemutopia
@xylemutopia Год назад
This feels alot closer to something like emotion or styled components (as a class name rather than component) - doesn't seem like tailwind is the best comparison to this.
@Ghareonn
@Ghareonn Год назад
Isn't that just Microsoft's Griffel?
@stancobridge
@stancobridge Год назад
The beauty of tailwindcss is just know ur css and you are good, you need to croup classes do it directly in the css file the traditional way with @apply, use variables or some tw plugins, having conflicts with merging classes tailwind merge is there for u, there are a lot of utility tw libraries u can leverage to achieve some tw tweaking, you u just need to know is ur css and u good. I don't agree with the idea that tailwind is not scalable, tw is the most scalable css library out There. People that complains about tailwind don't know css and don't understand the problem tailwind is trying to solve. I have one question, if tailwindcss exists why will I learn all these just to create a design, my css knowledge should be enough
@soundbeee
@soundbeee Год назад
I‘m still stuck with runtime css-in-js because the DX is too good. In my case styled-components + style-system. Not having to think of class names, responsive style props that can be dependent on state, the possibility of directly writing css, colocation. Tailwind was the first zero-runtime approach where I thought it could be a livable alternative, despite its cryptic class names. But writing ad-hoc custom css is really weird in Tailwind. Still waiting for a better approach to land, StyleX isn‘t it.
@developerAKX
@developerAKX Год назад
Me too, I only use emotion or styled Components. By using these the best thing I get is naming it always forces me to create good names and also all the class name crap is removed and only important stuff are visible in main component
@fu886
@fu886 Год назад
why not just use css?
@lukasavic6753
@lukasavic6753 Год назад
Because web developers love frameworking every line of code they write
@fu886
@fu886 Год назад
@@lukasavic6753 its a bit more than wanting to create a library for everything, this could more naturally solved by introducing a non cascading styling than transpiling your CSS from your transpiled js You would even reach the same issue fast only with couple layers of abstractions since the problems with debugging CSS is not the cascading aspects but that you need to apply different subset of decorators
@bielgaucho_real
@bielgaucho_real Год назад
The real problem Tailwind solves (and Stylex still doesn't) is that most CSS styles we want to apply will come in a set, and Tailwind already has the most interesting sets, with consistent naming... and that's why developers love it. If the dev wants a component to look a certain way, it's easy to think what "set" they want to use... because all projects he works on have consistent naming styles brought by Tailwind. Anyway, nobody likes writing the CSS styles so that's a huge win. Stylex will solve a whole different bag of issues worth solving, and, to be honest, making it in a type-safe and deterministic way seems like the only acceptable way of solving these issues. Thank god (Facebook)! However, I'm still not convinced that these perks will be enough to make the experience of "creating my own CSS style sets and naming conventions" a bit more pleasurable than just using Tailwind.
@aster_jyk
@aster_jyk Год назад
For anyone who likes Tailwind, keep using it. Good for you. For anyone who wants to create their own design systems, this looks like it has a lot of potential. Last style always winning is huuuuge. One of the most annoying aspects of CSS.
@dawidwraga
@dawidwraga 11 месяцев назад
This is just panda css but worse
@derschutz4737
@derschutz4737 10 месяцев назад
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...🤣
@Balance-8
@Balance-8 Год назад
🤮
@wrux
@wrux Год назад
It seems really close to Panda CSS
@MohammedAbdulatef
@MohammedAbdulatef Год назад
Nah, I am gonna stick with tailwind
@dahahaka
@dahahaka 4 месяца назад
Is this all just about not shipping css that you aren't using? I still have a hard time understanding the advantage of any of this over vanilla css (or rather SASS), i do absolutely hate when i see stuff like telerik ui shipping literally with 5mb's of CSS, but i feel like that should be avoidable with some common sense no?
@maxshdev
@maxshdev 9 месяцев назад
- Bloated both CSS and HTML, and even JS - Unsemantic CSS and HTML - About zero typing with no autocompletion - Lots of boilerplate - Babel dependency - Braking build - Difficult debugging
@MobiusCoin
@MobiusCoin Год назад
It's got some interesting features as does UnoCSS and I might choose it for a greenfield project but these things aren't enough for me to migrate an existing project from Tailwind to this.
@timseguine2
@timseguine2 8 месяцев назад
I have the same problem with this as I have with tailwind. I violates the style/markup dichotomy. That sounds like an overly philosophical hill to die on, but the thing is, most of this stuff is an entirely unnecessary complication. I understand why people think they need it. Component frameworks lead to monster doms that are pretty much impossible to style with css the way it was originally intended. And people vastly overuse class based styling. But the problem isn't css, it's the monster doms. If you have halfway sensible markup, SASS is the only CSS extension you really need in my opinion. Can you get that with a component framework? Yes but you have to care about being efficient with your markup.
@josevargas686
@josevargas686 Год назад
Thanks I hate it. Just another rehashed `emotionjs`, `styledcomponents`, `classnames`, etc etc etc. Yet another dumb way of writing CSS inside JS files without any of benefits of Tailwindcss.
@WatashiwaWatashi-zw7hy
@WatashiwaWatashi-zw7hy 6 месяцев назад
I personally still love Tailwind instead. This library is great but at this time, I don't need it for my project. but maybe it would be different when react-strict-dom stable
@llothar68
@llothar68 7 месяцев назад
All i want is tailwindcss becoming a part of the HTML standart itself, write "sstyle: pt-10 pb-20" (sstyle for short-style direct css embedding).
@nikitaproit
@nikitaproit 11 месяцев назад
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.
@inwerpsel
@inwerpsel Год назад
No source code released yet. A lot of text but mostly vagueness and half-baked comparisons about vague qualities like "composable". And absolutely riddled with typos... Doesn't feel rushed at all.
@EAlexHaywood
@EAlexHaywood Год назад
This seems like all other css-in-js solutions. Not only does Tailwind save you from having to name everything, it's also a starter kit for your design system. It's so much easier to build consistent UIs with Tailwind. Stylex you still have figure out the values for all your design tokens -- not seeing the appeal of this Grug brain developer does not approve
@mhamendes
@mhamendes Год назад
The implementation looks exactly like MUI v4 makeStyles
@alexleung842
@alexleung842 Год назад
1. how is this different from jss which they already made public years ago? 2. why are they still not making css type-safe. very confusing to me how nobody has done this yet. There should be NO strings in css. Everything is an enum or a number.
@zzord
@zzord 9 месяцев назад
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).
@UP209D
@UP209D 10 месяцев назад
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.
@TheNewton
@TheNewton Год назад
19:37 "having to come up with a name for every single thing..before you can start applying styles that's real mental overhead" Unfortunately tailwind encourages a behavior to never name things even after the starting prototyping is finished. Naming things is hard, even harder if you never practice.
@rotimibest_classroomio
@rotimibest_classroomio Год назад
Nice library from Facebook, but never gonna use it. Nothing really special about it, these improvements could have just been contributed to an existing library rather than creating yet another library. Let's innovate not create another styling library.
@parkourbee2
@parkourbee2 Год назад
Definitely sticking with tailwind, but thanks for covering this.
@KangoV
@KangoV 4 месяца назад
I really do envy RU-vidrs in the front end dev space. They get a continuous stream of new frameworks for their content :)
@dylanbritz4248
@dylanbritz4248 11 месяцев назад
What have they done, they just started CSS by JS frameworks......... we saw what mess that is with JS frameworks when react was created now they started the same problem with CSS, prepare for the neww CSS Framework wars
@thenightguy6816
@thenightguy6816 Год назад
Probably will see some people use both tailwind and stylex.
@LarsEjaas
@LarsEjaas Год назад
Feeling underwhelmed. Besides the typing, I am unsure what I get here I can't do with css/scss modules combined with cx/classNames 🤔
@haithem8906
@haithem8906 Год назад
it looks soo much like how react first tried to include styles
@qaz1617
@qaz1617 Год назад
Sorry for my ignorance but, how is this different from just plain CSS clases and then use those class names? I know I'm missing something.
@coolemur976
@coolemur976 11 месяцев назад
TW doesnt scale??? How? If you want to scale styles in component based frameworks - you are doing something wrong.
@EvertJunior
@EvertJunior Год назад
There's some nice concepts but it's such massive downgrade in every other aspect compared to tailwind. I really won't go back to naming things that shouldn't need a name.
@NamanGoel34
@NamanGoel34 Год назад
Thanks for the feedback! I just updated the website based on it.
@danielnieto1496
@danielnieto1496 7 месяцев назад
5:32 “it’s super counterintuitive” - talking about CSS (CASCADING style sheets)
@Hexalyse
@Hexalyse Год назад
But it doesn't solve the biggest problem that tailwind solved : magic numbers everywhere. And arbitrary names. It's just a better CSS modules. Meh.
@Pptruenoz
@Pptruenoz Год назад
I see no reason to use StyleX to be honest, furthermore In my view StyleX sucks kind of... Tailwind FTW!
@hammarhank
@hammarhank 11 месяцев назад
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!
@FroZZen98
@FroZZen98 Год назад
if meta is a company with so many great software devs, then why are facebook, instagram and whatsapp absolute garbage when it comes to UX and frontend design?
@AlNemec
@AlNemec 9 месяцев назад
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.
@georgexchelebiev
@georgexchelebiev Год назад
This looks a lot like Panda CSS
@SXsoft99
@SXsoft99 10 месяцев назад
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
@SolidWorksMastery-hr4sg
@SolidWorksMastery-hr4sg 11 месяцев назад
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
@DanDecryptedXD
@DanDecryptedXD Год назад
Day 102 trying to convince Theo that a moustache is not the one. If it's a bit on how Prime goes with the moustache, it suits him much better 😂😂
@DMSBrian24
@DMSBrian24 Год назад
This just feels like regular CSS except you get to write it from within JS... imo totally pointless
@bluecement
@bluecement 8 месяцев назад
doesn't vanilla-extract already provide this functionality? or am i missing something?
@mladenknezovic7410
@mladenknezovic7410 11 месяцев назад
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...
@ollydix
@ollydix 11 месяцев назад
It doesn't scale lol? haha it's the definition of scaling with modeler components and tailwind.configs ...
@blackalex191
@blackalex191 Год назад
Isn't this similar with styled-components?
@neutralitat2570
@neutralitat2570 Год назад
Let’s invent the wheel that’s all facebook can do 🤦🏼‍♂️🤦🏼‍♂️🤦🏼‍♂️
@wrux
@wrux Год назад
Cascading layers have fixed the styling order issues
Далее
Responding To The Tailwind Conspiracy
37:25
Просмотров 78 тыс.
The Importance Of Deno 2.0
32:52
Просмотров 574
11 ming dollarlik uzum
00:43
Просмотров 1,1 млн
Panda CSS First Impressions | Theo Reacts
29:52
Просмотров 87 тыс.
Why would any startup do this?
25:29
Просмотров 33 тыс.
Tailwind V4 Is Bigger Than Expected 👀
20:07
Просмотров 123 тыс.
How Shadcn/ui ACTUALLY Works
32:38
Просмотров 101 тыс.
We need to talk about "founder mode"
44:16
Просмотров 47 тыс.
StyleX: Meta's Solution To CSS At Scale
13:04
Просмотров 41 тыс.
I WISH I Knew These Tailwind Tips Earlier
9:15
Просмотров 188 тыс.
React Server Components: A Comprehensive Breakdown
52:42
7 ways to deal with CSS
6:23
Просмотров 1,1 млн