How to setup Tailwind CSS with Shopify themes

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2024

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

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

    Great video, thank you!

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

      My pleasure!

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

    Youness One thing to say Wonderful and bundle of thanks you made it easy.

  • @roysaucedo
    @roysaucedo 9 หลายเดือนก่อน +1

    Thank you for this! 🙏

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

      You're so welcome!

  • @jesf570
    @jesf570 16 วันที่ผ่านมา

    What about all the included css files from Dawn for example or whatever theme you're using. Is it a matter of slowly building out with tailwind and removing old styles from the theme as you go?

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

    Thanks for the video. 12:08 I'm curious-why not just set font-size: 100%; on the root element to align with Tailwind's default rem settings? Is there an advantage to using the additional package instead?

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

      In both ways, tailwind ships rem based units, setting font-size to 100% will increase the size of theme components drastically and will cause visual UI inconsistencies.

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

    you saved my life, thank you

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

    How will this theme structure work with the Shopify/GitHub integration? Will any of my files be overwritten when changes made in the Shopify editor are pushed to GitHub?

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

      This will work seamlessly with Github Integration. just like before.

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

    Hello, thank you for the video! Still, I keep receiving this error after the project launch and an automatically-created styles2.css file in the assets folder:
    'ERROR >> update assets/styles.css:
    source sequence is illegal/malformed utf-8'
    The contents of the old styles.css file crack up.
    Do you have any idea how to fix this?

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

      Did u check you might already have the file?

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

    Helpful video. Can you build shopify theme + Tailwind from the scratch ?

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

      I will think about it, thanks for feedback.

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

    Why do you prefer vite over the default tailwind install via tailwind CLI?

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

      I also wonder this.

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

      Since we're using Vite as the build tool, as he said in 6:16, it's ideal to watch for changes during development and minify the code for production.

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

      I used vite because its fast and its a good starting point, especially when you wanna handle JS as well not only CSS.

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

    I don't get it, what's the benefit ?
    I think the strong thing about tailwind is its utility classes that can be outputted depending on your usage only, so if you use only 10 classes, it'll output only those 10 classes for you to work.
    But with the way i saw it in the video, you built it before adding any style? meaning you sent a predefined CSS that'll always get outputted no matter what you add, right?
    So my question is what's the benefit? be it a performance decision or dev experience decision, can you elaborate on why this can be useful?

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

      Thats opinions tailwind is popular and solve many issues especially styles composability.

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

    What about creating a clean theme because right now in your tutorial have old style css from dawn and tailwind.

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

      Yes you are right or you can use a tailwind prefix.

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

    at 15:50 can you just add this script `npm run shopify:dev && npm run watch` instead of using that third party package to run multiple scripts?

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

      Yes it was probably a mistake, you can do that and it will allow you to not run the double terminal session.

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

      Motivation of the npm-run-all package: Cross platform. We sometimes use & to run multiple command in parallel, but cmd.exe (npm run-script uses it by default) does not support the &. Half of Node.js users are using it on Windows, so the use of & might block contributions. npm-run-all --parallel works well on Windows as well.

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

    can you share your notion file

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

      I no longer can find it sadly, but everything is in github @odestry.

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

    Youness, Great video, thank you! Well, there are some areas that are in conflict, such as the grid, how did you solve them? For example, it can be seen from the video that the grid structure below is broken.
    [Screenshot: pasteboard.co/lDp3W7LT1P2K.jpg]

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

      You can either use tailwind prefixes or rename the Dawn grid from ".grid" to ".grid-layout"

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

      @@joinodestry I already solve it using prefix. I just wanted to know how you handled it. thanks.

    • @BF-non
      @BF-non 8 หลายเดือนก่อน

      I also get it to play nice with Dawn with prefixes. Would love to not use them tho. Do you figure out another way of handling this?@@benhasanaltun