Updates Like These Make Tailwind So Fun

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 111

  • @francisnjugunaldc
    @francisnjugunaldc 8 หลายเดือนก่อน +16

    Another one comes, 🎉, really love your content, love from Kenya

  • @3b00d09
    @3b00d09 8 หลายเดือนก่อน +91

    god tailwind is a gift that keeps on giving

    • @avggamerexp
      @avggamerexp 8 หลายเดือนก่อน +1

      Yeah I'm thinking of how much strain you can lift off the app with just that

  • @Metruzanca
    @Metruzanca 8 หลายเดือนก่อน +8

    I knew about and used the group classes but didn't know there was one for peers. Thats awesome.

    • @joshtriedcoding
      @joshtriedcoding  8 หลายเดือนก่อน

      yeah me neither before making this video, love learning new stuff on-the-fly like this too

  • @sonny5497
    @sonny5497 8 หลายเดือนก่อน +1

    Josh you explain very well. Liked & Subscribed

  • @Sakar0Z
    @Sakar0Z 8 หลายเดือนก่อน +4

    one small note:
    are not on the same level, because using the closing tag for a div causes this to happen:
    e.g.: Hi! is equivalent to hi!
    therefore:
    is:
    this is because browser ignore self closing tags on some elements for some reason that has to do with XHTML and XML and W3C stuff.

    • @roshantalluri2681
      @roshantalluri2681 8 หลายเดือนก่อน +4

      I think this is a problem with HTML not JSX, JSX will still work as expected.

    • @tusharsnx
      @tusharsnx 2 หลายเดือนก่อน +1

      This is JSX. Self closing tags is not a thing in HTML. I think you're mixing HTML Vs JSX parsing.
      HTML doesn't have any concept of self closing tags. People sometime call void element as self closing, but that is wrong.

  • @kathanmehtaa
    @kathanmehtaa 7 หลายเดือนก่อน

    as always good stuff Josh !!

  • @FaezAnsari-pe2yr
    @FaezAnsari-pe2yr 8 หลายเดือนก่อน +10

    Something tells me we are going to have a tialwind state manager. Let's see.

    • @roodood
      @roodood 8 หลายเดือนก่อน +1

      I don't think so. The DOM is the state, tailwind is just syntactic sugar for the CSS around it, and CSS doesn't change the DOM.

  • @NikitaDrokin
    @NikitaDrokin 8 หลายเดือนก่อน +41

    Not only did Josh get a Mac, he also started using Arc! I'm also a very big fan of Arc, so I welcome the change 😆

    • @joshtriedcoding
      @joshtriedcoding  8 หลายเดือนก่อน +2

      yeah dude arc is seriously good. Recently recorded a video using my usual windows setup and the screen was SO CLUTTERED I just had to change something. Love how minimal it is with arch and some vscode config changes

    • @statuschannel8572
      @statuschannel8572 8 หลายเดือนก่อน

      what is Arc? you're not talking about linux distro right?

    • @developerAKX
      @developerAKX 8 หลายเดือนก่อน +1

      ​@@statuschannel8572 it is Browser

    • @DanWalshTV
      @DanWalshTV 8 หลายเดือนก่อน

      @@statuschannel8572 Arc is a web browser by The Browser Company.

    • @tyler-shaw
      @tyler-shaw 8 หลายเดือนก่อน

      ⁠@@statuschannel8572a web browser

  • @markus_dev_cwb
    @markus_dev_cwb 8 หลายเดือนก่อน

    Great content Josh. Tks to share.

  • @babyboie20
    @babyboie20 8 หลายเดือนก่อน +5

    This could be very powerful with React Server Components to give some interactivity that we only think could come from js rn without js and removing the need for 'use client'... nice. Can't wait for this to become standard. Thanks for the info!

  • @KiceDz
    @KiceDz 7 หลายเดือนก่อน

    Started using TailwindCSS back in 2020, currently switching to StyleX. Tailwind made bigger projects real mess to work on. For Presentational websites, yes, it's great and easy to use.

  • @CHN-yh3uv
    @CHN-yh3uv 8 หลายเดือนก่อน +1

    To be fair all this stuff is possible with plain css afaik so the “no js” praise seems a bit much to me, it’s just a way for tailwind to now have any drawbacks compared to regular css

  • @SanderCokart
    @SanderCokart 8 หลายเดือนก่อน +8

    Using group has is a super clean way tho. I'd use group-has before using this.

  • @roso6326
    @roso6326 8 หลายเดือนก่อน +1

    Hi, as i am watching i am really curious about how multiple signals are handled.. let's say you have :
    Component-Level-1 triggering a signal Signal-A
    Component-Level-3 trigerring a signal Signal-B
    Component-Level-4 trying to listen to signal B
    Component-Level-7 trying to listen to signal A
    By just specifying "signal", which signal the Component-level-/ will peek? A or B?

    • @joshtriedcoding
      @joshtriedcoding  8 หลายเดือนก่อน +2

      oh god that sounds complicated. But you can "name" your signals, i.e. you could literally name them signalA and signalB. That said, with a lot of nesting it will always get a bit more messy

    • @roso6326
      @roso6326 8 หลายเดือนก่อน

      @@joshtriedcoding thanks a lot for your answer! i thought that the word "signal" itself was a special keyword but if the name can be changed to be more specific then it fixes the problem!

  • @dylanmoore6414
    @dylanmoore6414 8 หลายเดือนก่อน +1

    looks awesome, is that signal a special keyword? Wonder what its like to define a signal, and inbetween a nested child, define another signal. Would the most nested child be able to access both signals?

  • @Philastan
    @Philastan 8 หลายเดือนก่อน +6

    Ok, help me understand why this is such a big thing. With pure CSS you also don't need JS for achieving this, or am i missing something? With input[type='submit']:checked + div > .classname I can also select the div on the same level and go one deeper. Was this only a thing which was not possible with tailwind before?

    • @EpKjelltzer
      @EpKjelltzer 8 หลายเดือนก่อน +1

      Thank you, I feel like I'm going crazy. I guess most people who use tailwind do so because they don't want to learn any CSS, but I fail to see how this is anything special when CSS has been able to do this longer than tailwind has existed.

    • @ward7576
      @ward7576 7 หลายเดือนก่อน

      @@EpKjelltzer this is what communities that derive from Laravel are doing - repurposing old things as if they are new.

    • @BobbyBundlez
      @BobbyBundlez หลายเดือนก่อน

      Dude tailwind makes everything faster. I still use sass with tailwind and have unique classes when needed.
      Ive used bootstrap, materialUI, styled components, bulma, the list goes on.
      Tailwind is the best

  • @carlosricardoziegler2650
    @carlosricardoziegler2650 8 หลายเดือนก่อน +3

    How about have more signals in same tree ?

    • @ilonachan
      @ilonachan 7 หลายเดือนก่อน +1

      that would've been my next question, because if there's only one single shared signal for everything, this feature quickly becomes useless in a real application. Clearly there needs to be a way to create and reference signals by name.
      EDIT: checked the docs for this plugin, and you can indeed name signals by writing `...:signal/myName` and `signal/myName:...` (or whatever naming convention is common here, idk if kebab-case would conflict with anything). Same thing for peer and group apparently, in case you didn't know (I didn't, but I also don't know a single bit of Tailwind so yeah)

  • @ZubriQue
    @ZubriQue 8 หลายเดือนก่อน +1

    Yes, I program in CSS programming language, babe.

  • @JollyCoding
    @JollyCoding 8 หลายเดือนก่อน +5

    I love the tailwind ecosystem, and see the value in this too as I explored it as a video idea as well.
    But personally I dont like adding on plugins like this to tailwind, the only one I ever use is tailwind-animate. I like my tailwind to be as compatible as possible so if people copy my code snippets, or If I copy from another project, it should just work with stock tailwind set up, and not have another source of documentation to look at. It seems like we get enough of this functionality with groups as is.
    Projects like this have great value for people that see their uses though and it keeps pushing the tailwind team too to focus on DX.

  • @grav1tone
    @grav1tone 8 หลายเดือนก่อน

    Now CascadinG stylesheets are inside classes itself instead of css files/style tags

  • @codewithmoses
    @codewithmoses 6 หลายเดือนก่อน

    This is really usefull

  • @ffffoundit3198
    @ffffoundit3198 8 หลายเดือนก่อน +14

    why make the group/peer something ground breaking, it's a basic css feature

    • @MauricioAndrian
      @MauricioAndrian 8 หลายเดือนก่อน +2

      It's a Tailwind feature built on top of a not-so-basic css feature. Tailwind aims to move CSS to HTML.
      If you don't like Tailwind, or don't understand it, why come here?

    • @EricMeyerweb
      @EricMeyerweb 8 หลายเดือนก่อน

      @@MauricioAndrian I mean, I’m here because the video was recommended to me, and from the title (and first minute or so, honestly) I thought it was a satire in the vein of the Programmers Are Also Human channel. Maybe that’s how @ffffoundit3198 got here too?

  • @bhavyajain638
    @bhavyajain638 8 หลายเดือนก่อน

    if we build the react project, doesn't it convert to html, css and javascript? I must be missing something, else Tailwind Signals would be supported on all browsers.

  • @wlockuz4467
    @wlockuz4467 8 หลายเดือนก่อน +1

    Thank god, I thought tailwind was entering the JS land with signals.

  • @chrismixlist
    @chrismixlist 8 หลายเดือนก่อน

    off-topic question: what browser is that in the video?

  • @daphenomenalz4100
    @daphenomenalz4100 8 หลายเดือนก่อน

    Josh moved to Arc too 👀, i can't wait for it to come to windows

  • @masar-at
    @masar-at 8 หลายเดือนก่อน

    What if i have an input as child and I want to style its parent based on input peer?

  • @marcelp8327
    @marcelp8327 8 หลายเดือนก่อน

    I am already using groups, i do not see so much the need of passing it from child to parents, as in react is a nice one way street which gives good structure.

  • @arshnabi4312
    @arshnabi4312 8 หลายเดือนก่อน

    Whats the browser youbare using

  • @flankensteiin3748
    @flankensteiin3748 8 หลายเดือนก่อน

    why is excalidraw so laggy for me?

  • @HuzMS
    @HuzMS 8 หลายเดือนก่อน

    So alpinejs but in tailwind?

  • @EmmaLovesCoding
    @EmmaLovesCoding 8 หลายเดือนก่อน

    your the best thanks ... 😂

  • @jo0o0oke3e3er
    @jo0o0oke3e3er 8 หลายเดือนก่อน

    which browser are u using?

  • @gosnooky
    @gosnooky 8 หลายเดือนก่อน +1

    Looks like the word "signal" is all the rage in web dev these days...

  • @praharsh_bhatt
    @praharsh_bhatt 8 หลายเดือนก่อน

    Wouldn't this make it hard to debug in complex applications?

  • @nikhilpsathyanathan
    @nikhilpsathyanathan 8 หลายเดือนก่อน

    It's helpful

  • @yamyam263
    @yamyam263 8 หลายเดือนก่อน +2

    "P'suedo classes" for the win!

  • @TheMeticulousMoo
    @TheMeticulousMoo 8 หลายเดือนก่อน +2

    I generally like Tailwind, but dislike this idea a lot. Once you need significant amounts of logic for applying css classes, you might as well use js - especially if you're using a reactive framework like React or Solid.

  • @iamdanfleser
    @iamdanfleser 8 หลายเดือนก่อน

    What browser do u use?

    • @JoSh-yu6jt
      @JoSh-yu6jt 5 หลายเดือนก่อน

      Josh is using the Arc Browser

  • @grimm_gen
    @grimm_gen 8 หลายเดือนก่อน +1

    I pitched Tailwind to my team at work, hopefully we can hop off bootstrap soon😭

  • @samuelm2934
    @samuelm2934 8 หลายเดือนก่อน

    Since when is he using Mac OS?

  • @Dorchwoods
    @Dorchwoods 8 หลายเดือนก่อน +1

    Thats cool, but man is that going to get ugly haha. Not for me, but its cool!

  • @kickflipz
    @kickflipz 8 หลายเดือนก่อน

    Game changer!

  • @СергейКиршевский
    @СергейКиршевский 7 หลายเดือนก่อน

    self closing div 💀

  • @programmers_sanctuary
    @programmers_sanctuary 8 หลายเดือนก่อน

    I'd rather use CSS to style active states for readability

  • @divinsmathew
    @divinsmathew 8 หลายเดือนก่อน +14

    There's nothing groundbreaking here. Tailwind is just solving a problem it itself created. Plain CSS can do all this in a far cleaner way.

    • @TheItamarp
      @TheItamarp 8 หลายเดือนก่อน +5

      This drives me nuts. You can implement this functionality with a single line of plain css, which is also fully supported in all browsers released in the past year (two years in some cases). I can't fathom why the devs thought they would need container queries for this...

    • @TheMarouuu
      @TheMarouuu 8 หลายเดือนก่อน +3

      I feel like everyone that chooses to use Tailwind, deserves to use Tailwind.

    • @Fantaztig
      @Fantaztig 8 หลายเดือนก่อน

      Tailwind was nice at first because it was so simple and easy, but ofc people want to have all the features of css, so with time it becomes an unmaintainable mess

  • @cristhiamtovar9003
    @cristhiamtovar9003 8 หลายเดือนก่อน

    I’ll wait

  • @AnamikaSingh-ql4no
    @AnamikaSingh-ql4no 8 หลายเดือนก่อน

    Hi

  • @grinsk3ks
    @grinsk3ks 8 หลายเดือนก่อน +1

    People trying so hard to not write css. Do you guys realize that the tailwind.css file is global and you create a shit ton of singletons, that massively bloat your resulting tailwind.css file?
    I do love tailwind, but this arbitrary selector stuff has to stop.

  • @agustingarcinuno4172
    @agustingarcinuno4172 8 หลายเดือนก่อน

    Ur cooked 😭

  • @ЕгорРубайло-з8к
    @ЕгорРубайло-з8к 8 หลายเดือนก่อน +2

    Finally switched to mac?🤓

    • @heunha9269
      @heunha9269 8 หลายเดือนก่อน

      no more windows 😭

    • @felixbemme7257
      @felixbemme7257 8 หลายเดือนก่อน

      We all do mistakes from time to time.

  • @ergusto
    @ergusto 8 หลายเดือนก่อน

    You keep saying the classname changes based on the signal, but surely that's not what is happening?

  • @aLfRemArShMeLlOw
    @aLfRemArShMeLlOw 8 หลายเดือนก่อน +81

    This is a terrible idea and a maintainability nightmare.

    • @spicynoodle7419
      @spicynoodle7419 8 หลายเดือนก่อน +8

      BEM and separation of concerns are an unmaintainable mess

    • @teofannispapadopoulos4349
      @teofannispapadopoulos4349 8 หลายเดือนก่อน +3

      My thoughts exactly, I wonder if signals can be named at least. Also I don't think input validation is a good example unless we can defer the event, personally I'd like to run validation on blur

    • @pranavdhamanage
      @pranavdhamanage 8 หลายเดือนก่อน

      Agreed

    • @Dom-zy1qy
      @Dom-zy1qy 8 หลายเดือนก่อน +5

      ​​@@spicynoodle7419BEM?
      Edit: oh it's some front-end nonsense

    • @spicynoodle7419
      @spicynoodle7419 8 หลายเดือนก่อน +7

      @@Dom-zy1qy yes, the whole topic here is frontend nonsense

  • @muchis
    @muchis 5 หลายเดือนก่อน

    Is tailwind just a wrapper around CSS for people that don't want to learn CSS? At this point just learn the CSS 🤷🏼‍♂🤷🏼‍♂

  • @iamworldian
    @iamworldian 7 หลายเดือนก่อน

    Now this is called over engineering

  • @TheMarouuu
    @TheMarouuu 8 หลายเดือนก่อน

    Peers.... wtf :D

  • @dantelooper2283
    @dantelooper2283 8 หลายเดือนก่อน

    My eyes hurt by just looking at it. Don't use Tailwind, and those "states" won't work in real projects.

    • @Shelton_fr
      @Shelton_fr 8 หลายเดือนก่อน

      On YOUR PROJECTS.

  • @JlNGLEZ
    @JlNGLEZ 8 หลายเดือนก่อน +1

    This looks horrid, and how is this any different to just adding a generic css selector? input:invalid + div {} ??? The abstraction that tailwind promotes blows my mind, just learn javascript and css and you won't need things like tailwind at all

  • @jazymhmd1944
    @jazymhmd1944 8 หลายเดือนก่อน +1

    even Tailwind is using the signal concept now. But React 😐

  • @moritz_p
    @moritz_p 8 หลายเดือนก่อน

    I have never understood why people use Tailwind and this makes me understand it even less.

    • @danko95bgd
      @danko95bgd 8 หลายเดือนก่อน

      They are stupid and lazy and and don't want to learn the technology they are working with.
      Then they pick these shit cringe tools thinking they are faster or that it helps them in any way while in fact it does the total opposite.

  • @SeanGoresht
    @SeanGoresht 8 หลายเดือนก่อน

    It hurts me that this video assumes you use react if you use tailwind 🤦‍♂

  • @mattmmilli8287
    @mattmmilli8287 8 หลายเดือนก่อน

    I would usually say: write css you bums. Tailwind is pretty cool for AI generated markup though at least

  • @alitaha_raha
    @alitaha_raha 8 หลายเดือนก่อน

    Frameworks and libraries are getting worse everyday