I Found the Perfect Component Library

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ค. 2023
  • A quick look at Daisy UI - a UI library built on top of Tailwind CSS.
    💬 Topics:
    - Pros and cons of Tailwind CSS;
    - Styling modern web apps;
    - Atomic CSS and utility classes;
    - Best component libraries;
    - Working with Daisy UI.

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

  • @Joachimbj
    @Joachimbj ปีที่แล้ว +27

    I've used daisy-ui for about a year both professionally and in hobby projects.
    I've also worked quite a bit with component libraries, and the moment I want to do something custom they tend to fight back.
    DaisyUI as an abstraction over tailwind is the way to go for my development mindset.
    Every element has its default styling removed, and I have a blank slate to work with.

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

      That's right , I tried to use it like mui but Daisy ui doesn't bring dynamic components(modal,dropdown) easily

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

    DaisyUI is awesome. They're also working on a v3, excited to try it out!

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

    I like using shadcn/ui it provides useful components with the power of radix ui and tailwind to provide a reasonably styled powerful ui components.

    • @maxwebstudio
      @maxwebstudio 11 หลายเดือนก่อน +1

      It is indeed really cool, but I think it to slow to use. I don't like the CLI installation process for every component you need

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

    I've used tailwind in production and they were a few drawback to keep in mind before jumping on the solution :
    - If your app need a lot of computed CSS don't go for tailwind, highly limiting if you want to follow the best practices recommended by the doc
    - If you need really complex CSS, tailwind wont support it and you will end up mixing raw CSS with tailwind syntax
    - If you are using another component library don't bother using tailwind. You will end up mixing up css and tailwind as they often are not really compaptible. ( Which is what daysyUI is supposed to fix)
    Overall i think tailwind is great for SSR without component library. Would use for Proof of Concept but not for a fully scaling and maintainable application

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +1

      Thank you for your detailed answer!

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

      Eh tailwind works for me

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

    Third.
    More excellent content, I'm totally wedded to Tailwind for any side project - this looks like something really useful for quickly implementing components that can be really annoying to do manually (I'm looking at you carousel!)

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      Thank you for the feedback!
      Haha I found the carousel useful as well! I lost so many hours in the past with custom implementations or weird 3rd party libraries on this... 🤦‍♂️

  • @user-tb4ig7qh9b
    @user-tb4ig7qh9b ปีที่แล้ว +4

    I personally prefer tailwind with preline and write the component from scratch as i needed or tailwind with library like react aria and build component as i needed if i want animation just install framer motion or motion one and now you have more control over the ui

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

    Gonna try it just right now in my tailwind project

  • @marc-lou
    @marc-lou ปีที่แล้ว +2

    Long term DaisyUI user here, I LOVE IT

    • @andrewleonardi3351
      @andrewleonardi3351 11 หลายเดือนก่อน +1

      Fellow Twitter follower here! Nice!

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

    THANK YOU!

  • @cristo_sal
    @cristo_sal ปีที่แล้ว +10

    Looks nice, but is nowhere near replacing antd or mui. This looks more like a replacement for bootstrap or bulma. The benefit of antd and mui is their tight integration with react which makes actions like displaying notification popups, modals, etc... extremely easy. Not to mention that they come bundled with their own icon libraries

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +6

      I agree. But I find a lot of value in being framework agnostic. I can live with some of the downsides if I can easily use Daisy with Solid or Svelte or whatever other new library that doesn't have a good component library built for it yet.

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

      Agreed. There is still a lot left to be implemented

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

      ​@@awesome-coding will you cover how to use daisy with the latest material design, especially the dynamic color feature?

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      @@AndiWidjaja Interesting suggestion! I'll look into it - thank you!

  • @lcarv20
    @lcarv20 ปีที่แล้ว +39

    I like daisyUI a lot for projects, the only problem is accessibility.

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

      Please elaborate on what you mean by "accessibility"

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

      @@Septumsempra8818 If you use a screen reader or other accessibility tools, you might not be able to interact as expected with DaisyUI components because its interactivity is entirely CSS. For example, you cannot press ESC to close a DaisyUI modal like you might expect

    • @golfgrab9481
      @golfgrab9481 ปีที่แล้ว +5

      because it just html and css ( implemented with tailwind) only. no js to make it more accessible

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

      maybe you can combine it with radix ui or other headless ui

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

      @@AdlerWeber hmmm... You raise am important point to consider

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

    Awesome!
    Would be great to find similar UI lib for UnoCSS

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      You are right! Thanks for the suggestion!

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

    I just like to use headless-ui or radix-ui for creating my own components, its super customizable and fully assessible. I wrap all my logic with CVA to make it super clean and flexible to use. I don't want to use any animation from the component library itself when im starting from scratch. Daisy UI is good when you want to get something out done quick.

    • @Sandeep-zu7gd
      @Sandeep-zu7gd 7 หลายเดือนก่อน

      May I ask what CVA is?

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

      @@Sandeep-zu7gd Class Variance Authority

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

      ​@@Sandeep-zu7gdIt stands for Class Variance Authority. With the inclusion of CVA, a user-friendly interface is at your disposal, simplifying the definition of variants.
      These variants enable the conditional application of class sets, while also offering the means to express default variations.

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

    is there any impact on page speed?

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

    Thanks for bringing this to my attention, great video. By the way, what is that IDE/code editor you're using?

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      Thank you for your feedback!
      IntelliJ Idea - the new UI they just introduced (www.jetbrains.com/help/idea/new-ui.html)

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

      @Awesome Thanks 😃
      As a new dev, I was intimidated by IntelliJ because of its confusing UI, but this new one looks very clean and welcoming. I'll give it another shot!

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +1

      @@ProLessSkill Sure thing! IntelliJ is by far the best IDE I ever used. Its main issues is the steep pricing. Other than that, it does extremely well with a lot of programming languages and frameworks.

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

    what editor and font are you using in this tutorial? I really like the styling choice you went for.

    • @awesome-coding
      @awesome-coding  5 หลายเดือนก่อน +1

      Hey! This is IntelliJ IDEA

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

    I Love Mantine and Chakra UI 😍

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +1

      These are React focused though, right?

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

    Very good video! Some classes look similar to Bootstrap, I guess that will make for a shorter learning curve for a Bootstrapper like me?

    • @awesome-coding
      @awesome-coding  3 หลายเดือนก่อน

      Yep - Some of the class names are "established" in multiple frameworks these days.

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

    Never heard of it..interesting

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

    Skeleton UI, cheers

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

    For me, Mantine UI is by the best. I haven't heard of Daisy thoough.

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      But that's only for React, correct?

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

    what editor are u using?

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

    The only bad thing about this UI Lib is its buttons, THEY ARE HUGE, but everything else is ok

  • @fille.imgnry
    @fille.imgnry 11 หลายเดือนก่อน

    Why are you using curly braces around your attribute strings?

    • @awesome-coding
      @awesome-coding  11 หลายเดือนก่อน

      My IDE was autocompleting those for a while like that, and then I just got used to it.
      Sorry if it is distracting 😅

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

    just subscribed

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

    I didn't hear anything after the guy typed class instead of className, I was just waiting for him to fix it to start paying attention, then realized it wasn't even React

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +1

      This here is the main reason to switch to Solid!

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

    1:33 There are several files "iNtImIdAtInG"

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

    i like it, but when u make side projects u dont want to reinvent components so you need JS.. plain CSS doesnt help you much with speed
    what about Flowbite or Catalyst UI?

    • @awesome-coding
      @awesome-coding  11 หลายเดือนก่อน

      Didn't get the chance to play around with Flowbite / Catalyst are they any good?

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

      @@awesome-coding seems they still need a lot of work Flowbite react is version 0.4 and Catalyst also pretty new...

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

    Very interesting but instill love my chakraUi

  • @savire.ergheiz
    @savire.ergheiz ปีที่แล้ว

    Dont worry it will all make sense. Hah, famous last word 😂

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      😂 spoiler alert, it never does in frontend dev.

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

    Cool but daisyUI is kinda old (2021) have you heard of shadcn/ui ?

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +3

      Oh wait.. there are more of them?! I miss the simpler days of everyone using Bootstrap 😅

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

      We live in the good world where a 2021 css framework is now considered as old

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

      Oh, I didn't mean old as in deprecated, but old as in everyone already knows it😅

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      @@ricko13 Haha no worries - I got it but was just messing around.

  • @MosiurRahman-dl5ts
    @MosiurRahman-dl5ts ปีที่แล้ว +1

    th-cam.com/video/ej7KaY4KpDI/w-d-xo.html
    I chose skeleton over DaisyUI cause DaisyUI is missing a few functionalities.

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว +1

      Thank you! This was a very informative video!

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

    Just like the primegen put it tailwind let's you revisit your site 6 weeks later and hit the ground running , also that context switching is worse than long html elements, I've also been sleeping on daisy UI given how poorly the other component libraries play with tailwind

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

    Are you the TwoMinutePapers guy? I swear your voice is exactly the same

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      Haha I wish I was... that guy is really smart :D

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

    I think the "ugliness" factor of Tailwind can be removed when using with css modules. Simply assign the className={styles.whatever} ...then in the css sheet:
    .whatever{
    @apply w-4 h-8 etc...;
    }

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

      You may as well use CSS at that point

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

      display: flex;
      flex-direction: columns;
      align-items: centered;
      vs.
      @apply flex flex-col items-centered;

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

      No. Main reason for using tailwind is, it comes with a build in design system.

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

    Why are you using curly braces for every property?

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      Good question. I was using IntelliJ Idea for this project, and their default behaviour in TSX projects is to pre-fill JSX attributes with ={""} by default.

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

    Second

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

    First

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

    Just use bootstrap. Same results one library.

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

      hard disagree IMO, i find that once you've seen a bootstrap site you've basically seen them all

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

    tailwindui is better

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

      it's not free

  • @user-dv3ug4vt4h
    @user-dv3ug4vt4h 10 หลายเดือนก่อน +1

    I hate Tailwind.

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

    i actively avoid anything to do with tailwind. classname wrapper that brings nothing new.

    • @awesome-coding
      @awesome-coding  ปีที่แล้ว

      Thanks for your response! Curious to know why do you avoid Tailwind?