Adam Wathan on "Designing a Component Library" | Laracon US 2024 in Dallas, TX

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 42

  • @cirkutpersonal
    @cirkutpersonal 4 месяца назад +15

    Came for Adam, stayed for CSS isolate. Wow what an easy solution for a problem I've run into multiple times for over a decade!

  • @chhirag
    @chhirag 4 месяца назад +4

    Great talk as always. Learnt so many techniques will definitely apply to my projects. Thank you !!

  • @АркадийГайдаржи
    @АркадийГайдаржи 4 месяца назад +6

    Proud to be one of devs, who know about "isolate". It was covered in Josh Comeau course "css-for-js"

    • @michaelcrossley4716
      @michaelcrossley4716 Месяц назад

      I tuned out when I saw him using React. Is this something that we can use for vanilla JS?

    • @k-sav
      @k-sav Месяц назад

      @@michaelcrossley4716 Yes you can, it's just css

    • @Joroze95
      @Joroze95 29 дней назад +1

      @@michaelcrossley4716 It's literally CSS. It has nothing to do with React.
      Adam said from the beginning of the video that this presentation has nothing to do with React...

  • @adambocco7379
    @adambocco7379 4 месяца назад +8

    happy birthday parker

  • @siyabdev
    @siyabdev 4 месяца назад +25

    After Adam's this talk, i've come to the conclusion that despite being in the field of web for over 2 years, i don't know the ABC of CSS

    • @yungifez
      @yungifez 4 месяца назад +2

      You don't my dear friend
      I've been here for 7 years, and I don't
      I also have built a UI library

  • @MattChinander
    @MattChinander Месяц назад

    Epic talk.

  • @mybestmemes
    @mybestmemes 4 месяца назад

    I’ve learned so much from this talk!

  • @LutherDePapier
    @LutherDePapier 4 месяца назад

    Incredible stuff for real.

  • @Joroze95
    @Joroze95 29 дней назад +1

    The only thing I find questionable is that he is removing props in favor of his components expecting CSS variables for certain situations. How can this be enforced/documented to other developers when using TypeScript? TypeScript can't enforce required css variable values, and it seems hard to find out that those CSS variables are required.

  • @eaoliver
    @eaoliver 4 месяца назад

    Nice talk!

  • @AdamK3l
    @AdamK3l 4 месяца назад +6

    All those class names look so hard to read though. Surely this is better as CSS?

    • @rand0mtv660
      @rand0mtv660 4 месяца назад +8

      You get used to it and it's so liberating not having to write display: flex; align-items: center; for the 100th time in a codebase. I mean, why is reading that harder than reading regular CSS syntax or PHP for example? You can read those efficiently just because you are used to them. You get used to Tailwind the same way.
      Although I do agree if you dive deep into using arbitrary values (those in [ ]), then some of these classes can get pretty nasty, but from my experience that's like 1% of the CSS you write.

    • @Rafael-pj4zc
      @Rafael-pj4zc 4 месяца назад

      I enjoy using tailwind but yes it can be kind of hard to read & debug once the number of classes starts piling up.

    • @doesitmatter
      @doesitmatter 4 месяца назад +1

      @@Rafael-pj4zc try to debug raw css when theres 20 definitions that manipulate same class. I would rather read through inlined tailwind and know exactly whats going on with css of that element

    • @Rafael-pj4zc
      @Rafael-pj4zc 4 месяца назад

      @@doesitmatter yes I've been there. Poorly written & poorly organized css is a pain to manage.

    • @MrShnaiderTV
      @MrShnaiderTV Месяц назад +2

      I love tailwindcss and use it in all my projects. But while I was watching this talk, I was thinking like, "Dude, just write css." When we start using css on 100% with all these nested styles and data attributes, it seems easier to write scoped css than to duplicate the code like that

  • @ryan_t_brown
    @ryan_t_brown 4 месяца назад

    God what I would give to hire Adam as a Product Engineer

  • @LutherDePapier
    @LutherDePapier 4 месяца назад +1

    I've used subgrid before. With Tailwind too. Acknowledge me.

  • @dominuskelvin
    @dominuskelvin 4 месяца назад +2

    Tailwind 3:16

    • @Alex1611AD
      @Alex1611AD 4 месяца назад +2

      Right, what a mocking fool.

  • @trevorvarwig
    @trevorvarwig 4 месяца назад +4

    I watched this live and it was very interesting. Blew my mind. Interesting he's not using Laravel at Laracon lol

    • @bholmesdev
      @bholmesdev 4 месяца назад +9

      Well, a lot of people use React with Laravel via Inertia! He could've used a Laravel backend, but the focus is on frontend only. Think he made the right call

  • @offday3523
    @offday3523 4 месяца назад

    css is awesome

  • @MrEduarguzher
    @MrEduarguzher 4 месяца назад

    The end 🥺

  • @JafarH-ip5qh
    @JafarH-ip5qh 4 месяца назад

    🎉

  • @AlbertCloete
    @AlbertCloete 4 месяца назад +4

    There is probably no one on the planet that knows more about CSS than Adam Wathan.

  • @youaskforit
    @youaskforit 4 месяца назад +6

    This is why you need to learn CSS first and be good at it. Unless you understand how it works under the hood, you would never come up with those solutions in tailwind.

    • @sightninja
      @sightninja Месяц назад +1

      He is literally using tailwind to implement these solutions.
      But yes, you must be good at CSS in order to be good at using tailwind properly; since tailwind is just an abstraction around CSS.

    • @youaskforit
      @youaskforit Месяц назад

      @@sightninja Exactly, because he is the creator of tailwind and he has a strong foundation in CSS, which is why he can effectively use Tailwind to solve these problems. My point is about beginners who start with Tailwind and think learning just Tailwind is sufficient.

  • @phojie6868
    @phojie6868 4 месяца назад +2

    its sad that Adam switched to react from vue 😢

    • @ivan.jeremic
      @ivan.jeremic 4 месяца назад +4

      react is not hard try it.

  • @Joshua-dc4un
    @Joshua-dc4un 4 месяца назад +6

    Just write CSS

  • @reyronald
    @reyronald Месяц назад

    jesus christ

  • @adamshiri4501
    @adamshiri4501 4 месяца назад

    Laravel, buy better microphone for the next time please or post edit it. Thanks.

  • @LutherDePapier
    @LutherDePapier 4 месяца назад

    Just for comic relief, you guys really don't want to use JavaScript.

  • @srhanzd3022
    @srhanzd3022 4 месяца назад