Adam Wathan - Tailwind CSS: It looks awful, and it works - Rails World 2023

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

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

  • @ruslansteiger
    @ruslansteiger ปีที่แล้ว +42

    Data attributes, data attributes, DATA ATTRIBUTES 😂

  • @mirasmustimov
    @mirasmustimov ปีที่แล้ว +16

    Fantastic talk! I found myself enjoying styling html after I started using tailwind. And it is so productive! Love it!

  • @simonswiss
    @simonswiss ปีที่แล้ว +21

    Great talk, Adam 👊 Also holy crap, you look FIT AF 🔥

    • @MickaelChanrion
      @MickaelChanrion ปีที่แล้ว

      Right?! 😮

    • @wkjagt
      @wkjagt 11 หลายเดือนก่อน +13

      It's because he's been doing a lot of the heavy lifting for us.

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

      That's what happens when you write a lot of CSS classes.

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

    Thanks to Adam for making our lives a little bit easier!

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

    This is another GREAT presentation from this Rails day. Next time I got to be there!

  • @JacquesvanWyk
    @JacquesvanWyk ปีที่แล้ว +14

    Tailwind to me does not look ugly. Great job. Learn a few tricks here.

  • @kris_and_ride
    @kris_and_ride ปีที่แล้ว +6

    I used it and I love and hate it.
    I love the utility classes, I hate the readability.
    I hate how you micro manage the browser, instead of let the browser do the heavy lifting.
    Probably works great in react where everything is a component, even your link and button. But when it's not, changing the color of a button or a link can be a little more hassle.

  • @switzerland
    @switzerland ปีที่แล้ว +9

    For the edgy ones out there. I complement bootstrap with tailwind. Tailwind get it's own scope with tw- and I love it.

  • @tomasvalent3876
    @tomasvalent3876 10 หลายเดือนก่อน +2

    I thought I know Tailwind but every time I watch any of Adam's videos I learn something new 😮( he has a TH-cam channel, I recommend checking it out)

  • @PensarXYZ
    @PensarXYZ ปีที่แล้ว +4

    wow! I will use Tailwind for my next project. Super cool demo.

  • @SandyVanderbleek
    @SandyVanderbleek 10 หลายเดือนก่อน +3

    what is he using in vscode for the browser preview? I can't find the extension

  • @mooktakim
    @mooktakim ปีที่แล้ว +2

    Devs that grew up with React are fine with this. Inline all the things.

  • @jeffhicks6068
    @jeffhicks6068 11 หลายเดือนก่อน +5

    What VSCode extension is used for the preview?

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

      Search tailwind in extension and look for the official tailwind intellisense one.

  • @heyimamaker
    @heyimamaker ปีที่แล้ว +3

    How else can you tell that Adam Wathan is Canadian?
    Only Canadians would get this reference "It looks awful, and it works"

  • @wbjxfkwsklejfde34d
    @wbjxfkwsklejfde34d ปีที่แล้ว +7

    Interesting talk. Some people find this awesome, and thats great. I've recently inherited a rails/tailwind client and its pretty bad. For example, the developer struggled to maintain consistency, because everything is inlined. Extracting page content into a cms requires deleting all the classes and applying the styles in css. Its more complicated to figure out what has broken when something goes wrong. Stylisticly I'm not a fan, because I dont want my templates extra complicated. Styling/CSS isnt the only thing that needs thinking about in a template and its much better for me to keep that away in a css file, making the erb templates more readable. Just my 2c.

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

      Pretty sure there is some vscode plugin or something out there that can help with this problem...

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

      @@codedusting not really no.

  • @kengreeff
    @kengreeff ปีที่แล้ว

    So good! So many tricks in this one.

  • @jp2886
    @jp2886 ปีที่แล้ว +12

    Still not convinced - CSS in HTML so why not just do CSS? And classical Wathan - use divs and ps because why not to ignore semantic tags and screen-readers.

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

      there's no debating that you get shit done fast with tailwind, but the guy vomiting a div soup in front of professional web developers made me cringe a bit.

  • @nabeel-shakeel
    @nabeel-shakeel ปีที่แล้ว

    Nice talk! Really enjoyed it

  • @xiaohui-dev
    @xiaohui-dev ปีที่แล้ว +5

    What extension makes erb to be previewable?

    • @MassimoDeMarchiyolo
      @MassimoDeMarchiyolo ปีที่แล้ว

      I was wondering that too!

    • @DaronSpence
      @DaronSpence ปีที่แล้ว +2

      It's the built in VScode preview server. You can tell it to render any arbitrary URL and reload when a file changes.

    • @xiaohui-dev
      @xiaohui-dev ปีที่แล้ว

      @@DaronSpence at 13:19 I noticed the command is Responsive Preview: Open URL, seems it's not a built in VScode which name is Simple Browser(I guess you were saying this)

    • @klanowicz
      @klanowicz ปีที่แล้ว

      Please ping me of anyone will find it 🙏

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

    Tailwind is amazing! Thanks!

  • @_mball_
    @_mball_ 11 หลายเดือนก่อน +4

    I get it.
    It's an awesome idea, but it still feels hard to maintain consistency.
    Partials are a good tool, and using this with WebComponents does make sense to me. View Helpers also feel like a good too.
    Still, I can't help but read the code and have to spend a lot of time parsing the sum total of CSS properties...
    There's an entirely new syntax of kind-of-but-not-quite class definitions.

  • @bensales20
    @bensales20 3 หลายเดือนก่อน +1

    2024 - this talk is still amazing

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

    i am using vimesh style - which is fully compatible with tailwind, except it is a javascript library, only 30KB. Together with alpinejs, extremely powerful. No more "building" stuff (which i truly hate).

  • @DenisSoloshenko
    @DenisSoloshenko ปีที่แล้ว

    Great talk!

  • @dorstox
    @dorstox ปีที่แล้ว +7

    This modern frontend styling is making my head spin. I'm a Laravel developer and tried and failed to like tailwind so many times! This video did not win me over.
    Until something easier comes around, I'll be using bootstrap, bulma or better yet rely on frontend colleagues. It's gotten complicated and there is a lot to memorize, even with the fancy autocompletion of the IDE.

    • @FranciscoQuintero
      @FranciscoQuintero ปีที่แล้ว +4

      It's fine. You use what makes you most productive.

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

    When I started using flexbox and grid I feel like superman. Than I started using them in tailwind now I feel like Voldemort with infinite powers.

  • @FirstWeGolf
    @FirstWeGolf ปีที่แล้ว

    Trying to use it but buggered if I can get it working

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

    The best part of Tailwind -- you don't need to come up with those pesky names for CSS classes!

  • @cristianbilu
    @cristianbilu ปีที่แล้ว +6

    Talwindcss is ugly, but readable and declarative. And for me, that’s a win

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

    👏👏👏

  • @dominuskelvin
    @dominuskelvin ปีที่แล้ว +3

    I got here first 😌

  • @rajeshbudhathoki7888
    @rajeshbudhathoki7888 ปีที่แล้ว

    Then I got here!

  • @samuelkamau1550
    @samuelkamau1550 ปีที่แล้ว +1

    and that's how i became third😄

    • @Alex-lu4po
      @Alex-lu4po ปีที่แล้ว +1

      To me you are first.

  • @MrGeorgeTheCat
    @MrGeorgeTheCat ปีที่แล้ว +1

    Why not just use the style attribute and have some helper classes for the magic. I would like to see all examples compared to that.

  • @ScottHillson
    @ScottHillson 10 หลายเดือนก่อน +6

    A horrible solution in need of a problem.

    • @user-xedwsg
      @user-xedwsg 8 หลายเดือนก่อน

      correct.

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

    I tried it - and I really, really don’t like it!

  • @erictwilegar
    @erictwilegar ปีที่แล้ว +1

    We have trapped ourselves in a prison made of html and css.

  • @CraigMcNicholas
    @CraigMcNicholas ปีที่แล้ว +8

    Thanks I hate it.

  • @alexeybobr4537
    @alexeybobr4537 ปีที่แล้ว +1

    It looks like more brutal version of bootstrap for me. Not sure how to memorize all these classes.

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

      You don't. Vscode has a plugin so does prettier for sorting the classes for consistency and jetbrains has its own plugin.

  • @mauriciomdea
    @mauriciomdea 10 หลายเดือนก่อน +2

    No, thanks.

  • @penn_robotics
    @penn_robotics ปีที่แล้ว +9

    Ah yes,
    ... certainly WAAAYY more readable than 💍💍💍🎪

    • @aniforprez
      @aniforprez ปีที่แล้ว +6

      yes actually

    • @MickaelChanrion
      @MickaelChanrion ปีที่แล้ว +8

      6 months later, tell me what css is applied to this without opening the css file that applies its style. Heck, if not even multiple files.
      Just one of the many benefits from using this mean tailwind! ☺️

    • @jl789nz
      @jl789nz ปีที่แล้ว +2

      I don't think any one said it was more readable. Declarative naming also has it's own readability issues. I'm still not fully sold on Tailwind. It does help solve some issues, but it also comes with its own issues. It's trade offs all the way down.

    • @MickaelChanrion
      @MickaelChanrion ปีที่แล้ว +1

      I'd say it's not readable but discoverable

    • @manojlds
      @manojlds ปีที่แล้ว +1

      ​@@MickaelChanriondoesnt it make the html template itself worse. To grok it you need more cycles now.

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

    So rails goes to great lengths to provide maintainable html and you've just totally gone against the grain. Perhaps it would be better if you actually understood exactly what Rails is about before presenting this. It's definitely not for me

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

      Hi James, please keep it friendly. Adam is well aware of what Rails is about. It might not be for you, but he was invited to speak at Rails World and we understood beforehand what his talk was going to be about. - Amanda, Rails Foundation

    • @jamescattanach1129
      @jamescattanach1129 6 หลายเดือนก่อน +1

      Nothing unfriendly to see here 😊