10 Tailwind Tricks You NEED To Know!

Поділитися
Вставка
  • Опубліковано 21 тра 2024
  • I've been loving to use Tailwind to style my web projects.
    This video is a list of the 10 main tips I really wish I knew earlier.
    ---------------------------------------------------------------
    Inquiry and Collaborations:
    contact@perfectbase.dev
    ---------------------------------------------------------------
    Join my Discord:
    / discord
    ---------------------------------------------------------------
    Follow me on twitter:
    / ravicoding
    ---------------------------------------------------------------
    Chapters:
    0:00 Introduction
    0:12 1 - Peer and Group
    1:07 2 - Animations
    1:46 3 - Responsive Designs
    3:00 4 - Intellisense in Variables
    4:04 5 - Dynamic Utilities
    5:22 6 - apply and theme
    6:19 7 - Extend Tailwind
    7:00 8 - Plugins
    8:48 9 - Colors object
    9:29 10 - tailwind-merge
  • Наука та технологія

КОМЕНТАРІ • 434

  • @valyy151
    @valyy151 11 місяців тому +216

    These were one of the most valuable 10 minutes of my developer life!

    • @perfectbase
      @perfectbase  11 місяців тому +16

      Wow! Such comments make my day!
      Thank you for watching!

    • @BarDots315
      @BarDots315 10 місяців тому +2

      Damn

    • @basedovi
      @basedovi 6 місяців тому +1

      The tricks are great, no doubt, but common man… I bet your developer life isn't that long 😂

  • @jaideepshekhar4621
    @jaideepshekhar4621 10 місяців тому +22

    The neon shadow and changing the whole look with one word??? I'm officially mind blown!

  • @brunobrasil3419
    @brunobrasil3419 7 днів тому

    You are SO GREAT! I can't wait to try out each and every trick you just taught us!! Freaking awesome, Ravi 🤩🤩🤩

  • @magedibrahim1405
    @magedibrahim1405 10 місяців тому +11

    This is literally the best Tailwind CSS video I have ever seen! Thank you for your great efforts and keep going! ❤

  • @nilsrothe
    @nilsrothe 10 місяців тому +1

    I just started to use tailwind a few days ago and this gave me some great ideas to try out.

  • @chainsburg
    @chainsburg 11 місяців тому +2

    Than you so much! I was using Tailwind for so long and I never found out about many of these.

  • @user-vp8id1ze4x
    @user-vp8id1ze4x 4 місяці тому

    Video was concide and to the point! Plugin 8 caught me off guard, had to rewatch. You won a sub! Keep the videos coming!

  • @lil_peepka
    @lil_peepka 11 місяців тому +1

    I've used Tailwind for some time now, but haven't heard of most of this tricks. Really usefull content

  • @MmmMmmGood17
    @MmmMmmGood17 10 місяців тому

    Insightful video! I hope your channel grows to be huge 🙏🏽

  • @codinginflow
    @codinginflow 9 місяців тому

    I love it when tech UA-camrs also have their own startups! I also have a few projects of my own 😊
    And the tips in this video were sick!

  • @dharmilshinde797
    @dharmilshinde797 10 місяців тому

    That group and peer hover thing was awesome!!

  • @nicholasbicholas
    @nicholasbicholas 9 місяців тому

    Can't believe it. The first tip in the video is something I was recently racking my brain to figure out and ultimately just solved with js. Thank you! 🙏

  • @kushaljain2206
    @kushaljain2206 5 місяців тому

    Very nice information. Your delivery of the content makes in more better. Looking forward for more software development area videos!Cheers!

  • @shobhitumrao
    @shobhitumrao 11 місяців тому +2

    amazing video, on a project using tailwind, this helped a lot., Thank you !! Looking forward to more such content.

  • @licokr
    @licokr 11 місяців тому +1

    A smooth editing and useful tips. Thank you so much!

  • @bn5055
    @bn5055 11 місяців тому +52

    Great video! I use Tailwind all the time but I've never really used custom plugins - the docs aren't great for them. A video or two on them would be great!

    • @theworldismine7788
      @theworldismine7788 11 місяців тому +1

      Do you guys recommend me to learn Tailwind? Does it carry the heavylifting of responsiveness, typography, colors & other design features?

    • @bn5055
      @bn5055 11 місяців тому +4

      @@theworldismine7788 it's important to realise that it's not like, say, Bootstrap, with many components built for you that you can "sort of" customise. It's a giant set of utility classes that helps you build your own designs very quickly, with a sensible sizing/spacing system and a useful colour palette. There ARE components available that use Tailwind (eg TailwindUI, DaisyUI, Flowbite) however. Overall I would say, yes, give it a whirl.

    • @ExileEditing
      @ExileEditing 11 місяців тому +1

      ​@theworldismine7788 yeah what the other guy said. Tailwind doesn't do anything for you (sort of). You're still writing css except in the form of utility classes over stylesheets.

    • @lucasduarte7558
      @lucasduarte7558 11 місяців тому +1

      me too, I’ve been using only the basic

  • @giffarialfarizy7310
    @giffarialfarizy7310 4 місяці тому

    WOW! This video is beyond my expectation 🤯 Thank you, you just got a new subscriber ❤

  • @yuritavares1916
    @yuritavares1916 10 місяців тому

    This was you've mentioned on plugins is just like WOW
    I didn't know Tailwind had such an advanced feature, way more customizable than I thought it was

  • @lundell_music
    @lundell_music 7 місяців тому

    Very valuable tips. Many thanks for this gem of a video. Will be sharing with my team today.

  • @stonedizzleful
    @stonedizzleful 11 місяців тому +1

    Great video mate. The @apply is something I've never used but will in future!

  • @keshavakumar9828
    @keshavakumar9828 10 місяців тому

    this is actually so good, been using tailwind for 2 years, learned something new today !

  • @RobertWildling
    @RobertWildling 7 місяців тому

    The plugin feature with the neon shadow blew me away! Even intellisense is supported ... just like that! WOOOOW!!!

  • @andreaskarz
    @andreaskarz 8 місяців тому

    Wow, I'm impressed - especcialy this trick with the color shadows. Thank you.

  • @Theruyenable
    @Theruyenable 11 місяців тому +5

    Value to time ratio off the roof. Amazing video, saves a lot of time for person starting with tailwind like me.

    • @perfectbase
      @perfectbase  11 місяців тому +2

      Glad you liked the style! Will try to make more like this in the future!

  • @_duongductrong
    @_duongductrong 10 місяців тому

    That tailwind-merge is awesome, thanks for your video help me know that 😍

  • @ajudmeister
    @ajudmeister 10 місяців тому

    great video and tricks! Especially happy to know about the group class now! And grats on your channel! I just started one too :)

  • @FlorinPop
    @FlorinPop 10 місяців тому +1

    Great video! Fantastic edit! Well done!

  • @frk_91
    @frk_91 2 місяці тому

    One of the most useful videos about tailwind I ever saw ❤

  • @dr.d3600
    @dr.d3600 10 місяців тому

    Awesome and clear explanation, good job guys!

  • @CreiwryJay
    @CreiwryJay 4 місяці тому

    A really cool video! I'm a backend developer and generally dislike frontend development, but tailwind has made it more enjoyable for me. Can't wait to try out some of the more advanced tips from your vid!

  • @buituyen9484
    @buituyen9484 11 місяців тому

    damn bro. tysm. the custom plugins is so cool, thanks for sharing.

  • @sathishkannan6600
    @sathishkannan6600 11 місяців тому +3

    Nice tips. I am experienced tailwind user, but I didn't know about using variables to store tailwind classes.

    • @suntrop
      @suntrop 9 місяців тому

      That’s not a feature or something like that. You can write them in a comment as well

  • @ai_for_good
    @ai_for_good 11 місяців тому +1

    Loved it!! Thanks, will start using these asap!

  • @RegisZaleman
    @RegisZaleman 10 місяців тому

    Great tips! You really help unleash the power of Tailwind. Thanks. You got my sub.

  • @vOnez212
    @vOnez212 9 місяців тому +1

    This was great. Keep them coming!

  • @nhantiny1642
    @nhantiny1642 7 місяців тому

    Awesome tricks man! Thank for sharing and keep it up 🎉

  • @jesse9999999
    @jesse9999999 11 місяців тому +1

    thank you mate! probably the best youtube tech tutorial i have seen this year, some great tips here

    • @perfectbase
      @perfectbase  11 місяців тому

      Thanks for such a nice review!! 😊

  • @gwemula
    @gwemula 9 місяців тому

    Bro, beautify-made video! Absolutely love the content and your flow. Subscribed!

    • @perfectbase
      @perfectbase  9 місяців тому

      Thanks!! Glad you enjoyed! ☺️

  • @alanshabrandi1678
    @alanshabrandi1678 8 місяців тому

    The tips and design of the video were very, very great. thank you 🌹🌹🌹

  • @art_ik
    @art_ik 11 місяців тому +4

    Great Video! on the point and no BS. I love it! keep it up :)

  • @kryptons-galaxy
    @kryptons-galaxy Місяць тому

    This is awesome, I never knew tailwind is this powerful

  • @HoyosJuan
    @HoyosJuan 10 місяців тому +1

    Wonderful video!! Really enjoyed.

  • @nikhil182
    @nikhil182 11 місяців тому +10

    Absolutely lovely! I was not aware that we could name group/peer classes. It was something new. Also I would like to mention about a VSCode extension which I find useful, called as "Headwind" which sorts the classes enhancing the readablity. Thank you for the video! Subscribed✅

    • @elab4d140
      @elab4d140 11 місяців тому +1

      you can do that using the official tailwind prettier sorting plugin

    • @nikhil182
      @nikhil182 11 місяців тому

      @@elab4d140 Nice, that extension is also worth mentioning.

    • @perfectbase
      @perfectbase  11 місяців тому +3

      Thanks for sharing!
      Yes! I use the prettier plugin as well. Learned it from the T3 stack.

  • @timmcneill5299
    @timmcneill5299 8 місяців тому

    Just discovered Tailwind, and my mind is blown, thanks for sharing

  • @zillboy
    @zillboy 11 місяців тому +1

    Bro, thank you. I didn't knew so much, have been using tailwindCSS for quite some time, thank you :)

  • @0xAndy
    @0xAndy 10 місяців тому

    This is the best Tailwind video I've ever watched. Thank you so much!

  • @ahmadwahyudi3794
    @ahmadwahyudi3794 9 місяців тому

    Thank you, you really helped me.
    Especially when you talk about mobile-first framework

  • @harshitmishra3843
    @harshitmishra3843 6 місяців тому

    I appreciate the content and concepts covered in this video.

  • @dustsucker4704
    @dustsucker4704 10 місяців тому

    Finally an advanced dev Video not these stuff that every one talks about. Love it.

  • @Q__Q
    @Q__Q 11 місяців тому

    i was just wondering how to do peer hover changes and this video showed up good thing i clicked on it, great video thanks for the help

  • @tedmcfadden1063
    @tedmcfadden1063 10 місяців тому

    Very useful content. Great visuals for the explanations.

  • @cashmoneyz3
    @cashmoneyz3 10 місяців тому

    solid video, all the examples were quick and concise

  • @RishabhxShukla
    @RishabhxShukla 3 місяці тому

    Thank you! These tips were incredibly helpful.

  • @elBorregin256
    @elBorregin256 11 місяців тому +5

    This is pure gold, i didn't knew any of this, but thanks to you im going to implement all of this into the react site i'm working on

  • @nikhilev3840
    @nikhilev3840 10 місяців тому

    Great video. Loved it. Keep doing more bro.

  • @jaitjacob
    @jaitjacob 10 місяців тому

    nice job with code + live output with black background.. didn’t have to worry of getting flashed with a bright white bg in between!!

    • @perfectbase
      @perfectbase  10 місяців тому

      Glad you liked it! Thanks for the feedback!

  • @khethelogp
    @khethelogp 11 місяців тому +1

    These are pretty cool tips and tricks 🔥

  • @ns-gabrielmendoza1329
    @ns-gabrielmendoza1329 8 місяців тому

    I didn't know tailwind even had this!Amazing 10 minutes of a developer life!

  • @lucasduarte7558
    @lucasduarte7558 11 місяців тому +1

    strongly recommend this video, thank you for sharing your knowledge

  • @Allformyequine
    @Allformyequine 10 місяців тому

    Luv this! Nice concise but not too long!

  • @draxeris
    @draxeris 11 місяців тому +2

    Good job man! Learned a lot.

  • @nisargjaiswal4264
    @nisargjaiswal4264 11 місяців тому +1

    Fantastic Videos bro!! Very Helpful and your dedication Towards your channel is just Awesome!!
    I Learnt new things from this videos, Appriciated.
    Love From INDIA

  • @TrackingAcademy
    @TrackingAcademy 7 місяців тому

    This was actually very detailed. I always wondered when I dynamic set the color such as by-{color}-200 and that never gets applied. Now I know why. lol. Thanks

  • @HeyNoah
    @HeyNoah 11 місяців тому +1

    Great video! Thanks for sharing! 🙏🏼

  • @crim-son
    @crim-son 10 місяців тому

    So so valuable, I'm saving and sharing this❤

  • @fvbixn
    @fvbixn 10 місяців тому

    I use tailwind for years and would consider myself an expert, but I still learned a few things! Thanks for the video!

    • @perfectbase
      @perfectbase  10 місяців тому +1

      Glad that it’s also helpful for experienced users!! 😊
      Thanks for watching!

  • @ozzyfromspace
    @ozzyfromspace 11 місяців тому +1

    Dude, you're awesome! Thanks for blessing the web with your knowledge. Subbed and I'll check out your startup playlist :)

    • @perfectbase
      @perfectbase  11 місяців тому

      Wow! Thanks a lot for the kind words! Glad you liked it!!

  • @simonswiss
    @simonswiss 10 місяців тому +5

    Great tips, great graphics and great editing skills - I enjoyed this video 👏

    • @perfectbase
      @perfectbase  10 місяців тому +1

      Thank you for watching! 🙏
      Super glad to hear that from a bigger content creator in the space!!

    • @shanemshort
      @shanemshort 10 місяців тому +1

      came here from SImon's tweet, really neat! subscribed

    • @simonswiss
      @simonswiss 10 місяців тому

      @@shanemshort 😎 I subscribed today too!

  • @elwoseopenstepcrew1134
    @elwoseopenstepcrew1134 6 місяців тому

    subcribed, amazing short, im going to look all your channel !

  • @wadecodez
    @wadecodez 11 місяців тому +28

    for #5 you could create a safe list when there are too many options. Safelists are defined using regex so it's pretty easy to include a whole range of classes.

    • @chris-pee
      @chris-pee 11 місяців тому +2

      You could also just use a CSS variable, which makes this work with tailwind, without any lists or regex.

    • @perfectbase
      @perfectbase  11 місяців тому +9

      Thanks for sharing! Wish I knew this before making the video!
      But glad I can also learn from you guys!!

    • @MerkieAE
      @MerkieAE 11 місяців тому

      @@perfectbase i was going to mention this as well because i had a very similar situation in one of my codebases! but yeah you can define a class safe list in the tailwind config if you don’t want to define the classes in an unused variable. i’m only halfway through the video though and i’ve learned so many neat tricks! I had no idea about the variable name thing! i’m going to use that instead of really complex string interpolation logic in my components

    • @FinnReinhardt-gc9vn
      @FinnReinhardt-gc9vn 10 місяців тому

      This was just what I thought! Great video nontheless

    • @enversecilmis7627
      @enversecilmis7627 9 місяців тому

      @@perfectbase Come on now we know you did this to increase comments :)

  • @nedjed4811
    @nedjed4811 10 місяців тому +15

    For the point 'Dynamic Utilities' there are many solutions to do it with tailwind properly.
    Solution 1 : you can define a safelist in tailwind config. These accepts wildcard and can easily cover the case you described with "bg-{color}-500"
    Solution 2 (cleaner) : use cva or tailwindcva to define proper variants. It might be annoying and redundant to write some parts, but it allows you to handle many logics
    And for the why : I would rather die than have a few part of my code that doesn't rely on my tailwind configuration. If you are working with theme, having one component with hex colors is a big issue.

  • @bryanodinadev
    @bryanodinadev 6 місяців тому

    These are great! I just started Tailwind

  • @abdulmuminyqn
    @abdulmuminyqn 11 місяців тому +1

    Really interesting tailwind tips! 🤩

  • @appstuff6565
    @appstuff6565 6 місяців тому

    halfway into the video and i liked it. Thanks Ravi!

    • @appstuff6565
      @appstuff6565 6 місяців тому

      ended the video..well i understood the first half, still new to tailwind maybe thats why.

  • @meriem6099
    @meriem6099 11 місяців тому +1

    Thank you for this video i really learned some useful stuff!

  • @m3coo
    @m3coo 11 місяців тому +1

    Very, very helpful. Thank you!

  • @PedroHenriquedosSantos
    @PedroHenriquedosSantos 2 місяці тому

    Thank you for sharing your knowledge.

  • @poptaim7631
    @poptaim7631 10 місяців тому

    I just want to say THANKS! Great video!

  • @kevinka99
    @kevinka99 6 місяців тому

    man when I clicked this video I thought would be bullshit tips like the most programmers youtubers do but this video actually has some very good and easy explanation from useful features
    you really deserved this like and subscription! keep going

  • @saifullahrahman
    @saifullahrahman 10 місяців тому

    thanks a lot, that second last tip was super usefull

  • @yanarlexvallejorosas
    @yanarlexvallejorosas 10 місяців тому

    Great video on Tailwind, thank you very much.

  • @codingmickey
    @codingmickey 6 місяців тому +1

    Bro this was the most beautiful, well explained and soo thorough tutorials that I've watched in a while. Truly loved the content ❤
    The short explanation, illustration and the real life usage 🫂
    Pressing all the buttons to watch more of such!!

  • @pcv-free-as-a-bird
    @pcv-free-as-a-bird 10 місяців тому

    Really liked the neon shadow

  • @aurorasofie
    @aurorasofie 10 місяців тому

    Awesome video, thank you! Glad youtube recommended it to me.

  • @chatwithnayem
    @chatwithnayem Місяць тому

    Really awesome. Great tutorial 😮

  • @bhargav1811
    @bhargav1811 11 місяців тому +1

    Nice video !! Keep making this!!!

  • @thepolygotcoder
    @thepolygotcoder 6 місяців тому

    Thanks Ravi - great Content and I learned alot

  • @apuji7555
    @apuji7555 11 місяців тому +2

    Great video! I really want to get started with Tailwind, and this was super interesting! One thing to note, your trick #9 would probably flow better if you switch it with #8, because #9 talks about the imports and the theme object, while #8 is a lot more advanced. Great video!

    • @perfectbase
      @perfectbase  11 місяців тому

      Thank you for watching! And for the feedback! I appreciate it. 😊

    • @apuji7555
      @apuji7555 10 місяців тому

      @@perfectbase you're welcome!

  • @DavidWTube
    @DavidWTube 10 місяців тому +1

    How this is the first I'm hearing of you... great video, got a sub from me!

  • @eric-jt
    @eric-jt Місяць тому

    in the dynamics variable section, I believe you can add the variable names to a safe list in the tailwind config file instead of creating an unused variable

  • @learner8084
    @learner8084 Місяць тому

    Just found this video, and I'm glad I did... subscribed.

  • @mehmatrix
    @mehmatrix 10 місяців тому

    I love your video and style. Subscribed :)

  • @krishnendudakshi3452
    @krishnendudakshi3452 10 місяців тому

    hey this is an awesome video. love it. Liked it and subscribed ❤

  • @gillesa290
    @gillesa290 11 місяців тому +1

    Very useful. Thanks a lot 👍

  • @here2code
    @here2code 10 місяців тому

    Great content buddy 👏

  • @jugibur2117
    @jugibur2117 11 місяців тому +1

    Wow, really useful stuff, thanks!

  • @FSRezende
    @FSRezende 10 місяців тому

    great tips... amazing! congrats from Brazil!

  • @megacronom
    @megacronom 11 місяців тому +3

    Amazing video, even after working with tailwind for some time i learned new tricks.

    • @perfectbase
      @perfectbase  11 місяців тому

      Great to hear that!
      Thanks for the feedback! 😊

  • @Svetoz
    @Svetoz 2 місяці тому

    Thanks! There are nteresing and not obvious tweaks :)

  • @pulik_io
    @pulik_io 11 місяців тому +1

    This content is a gold! Thank you so much :)