10 Tailwind Tricks You NEED To Know!

  Рет қаралды 306,952

Ravi - Perfect Base

Ravi - Perfect Base

Күн бұрын

Пікірлер: 464
@jaideepshekhar4621
@jaideepshekhar4621 Жыл бұрын
The neon shadow and changing the whole look with one word??? I'm officially mind blown!
@valyy151
@valyy151 Жыл бұрын
These were one of the most valuable 10 minutes of my developer life!
@perfectbase
@perfectbase Жыл бұрын
Wow! Such comments make my day! Thank you for watching!
@BarDots315
@BarDots315 Жыл бұрын
Damn
@basedovi
@basedovi Жыл бұрын
The tricks are great, no doubt, but common man… I bet your developer life isn't that long 😂
@S.P.35
@S.P.35 5 ай бұрын
Absolutely
@nested9301
@nested9301 4 ай бұрын
What?
@nilsrothe
@nilsrothe Жыл бұрын
I just started to use tailwind a few days ago and this gave me some great ideas to try out.
@FletchervanAmeringen
@FletchervanAmeringen 24 күн бұрын
Absolute gold! One year on, and more relevant than ever. Clear, concise, and extraordinarily helpful. Thank you!
@лилпипка
@лилпипка Жыл бұрын
I've used Tailwind for some time now, but haven't heard of most of this tricks. Really usefull content
@sumaiyajannat7824
@sumaiyajannat7824 Ай бұрын
this vedio is so short but highly important. thanks dear. Need more unique project type vedio.
@chainsburg
@chainsburg Жыл бұрын
Than you so much! I was using Tailwind for so long and I never found out about many of these.
@Theruyenable
@Theruyenable Жыл бұрын
Value to time ratio off the roof. Amazing video, saves a lot of time for person starting with tailwind like me.
@perfectbase
@perfectbase Жыл бұрын
Glad you liked the style! Will try to make more like this in the future!
@PenguinjitsuX
@PenguinjitsuX 4 ай бұрын
This is extremely useful info that basic tutorials don't cover and I didn't even know tailwind had this stuff. Awesome!
@bn5055
@bn5055 Жыл бұрын
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 Жыл бұрын
Do you guys recommend me to learn Tailwind? Does it carry the heavylifting of responsiveness, typography, colors & other design features?
@bn5055
@bn5055 Жыл бұрын
@@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 Жыл бұрын
​@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 Жыл бұрын
me too, I’ve been using only the basic
@RobertWildling
@RobertWildling Жыл бұрын
The plugin feature with the neon shadow blew me away! Even intellisense is supported ... just like that! WOOOOW!!!
@yuritavares1916
@yuritavares1916 Жыл бұрын
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
@sathishkannan6600
@sathishkannan6600 Жыл бұрын
Nice tips. I am experienced tailwind user, but I didn't know about using variables to store tailwind classes.
@suntrop
@suntrop Жыл бұрын
That’s not a feature or something like that. You can write them in a comment as well
@kiliusz
@kiliusz Жыл бұрын
Im glad youtube algorithm suggested me your video.
@timmcneill5299
@timmcneill5299 Жыл бұрын
Just discovered Tailwind, and my mind is blown, thanks for sharing
@MyUbuntuVids
@MyUbuntuVids 6 ай бұрын
I'm pretty much brand new to Tailwind CSS. I've gained a lot of insight on Tailwind CSS from your 10 tips. Thank you! (Subscribed)
@BobbyBundlez
@BobbyBundlez 2 ай бұрын
headwind and intellisense. must have
@BobbyBundlez
@BobbyBundlez 2 ай бұрын
also wiring emmet up with tailwind so you can type "div.bg-red-300" then tab and bang it creates ""
@nicholasbicholas
@nicholasbicholas Жыл бұрын
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! 🙏
@perfectbase
@perfectbase Жыл бұрын
Glad it was useful!!
@fvbixn
@fvbixn Жыл бұрын
I use tailwind for years and would consider myself an expert, but I still learned a few things! Thanks for the video!
@perfectbase
@perfectbase Жыл бұрын
Glad that it’s also helpful for experienced users!! 😊 Thanks for watching!
@wadecodez
@wadecodez Жыл бұрын
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 Жыл бұрын
You could also just use a CSS variable, which makes this work with tailwind, without any lists or regex.
@perfectbase
@perfectbase Жыл бұрын
Thanks for sharing! Wish I knew this before making the video! But glad I can also learn from you guys!!
@MerkieAE
@MerkieAE Жыл бұрын
@@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 Жыл бұрын
This was just what I thought! Great video nontheless
@enversecilmis7627
@enversecilmis7627 Жыл бұрын
@@perfectbase Come on now we know you did this to increase comments :)
@dustsucker4704
@dustsucker4704 Жыл бұрын
Finally an advanced dev Video not these stuff that every one talks about. Love it.
@codinginflow
@codinginflow Жыл бұрын
I love it when tech KZbinrs also have their own startups! I also have a few projects of my own 😊 And the tips in this video were sick!
@dharmilshinde797
@dharmilshinde797 Жыл бұрын
That group and peer hover thing was awesome!!
@TrackingAcademy
@TrackingAcademy Жыл бұрын
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
@jaitjacob
@jaitjacob Жыл бұрын
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 Жыл бұрын
Glad you liked it! Thanks for the feedback!
@keshavakumar9828
@keshavakumar9828 Жыл бұрын
this is actually so good, been using tailwind for 2 years, learned something new today !
@Fleebee.
@Fleebee. 11 ай бұрын
The tip with the ‘possible’ list was great. I’ve spent a long time trying to get variables injected into my tailwind and had really random results.
@perfectbase
@perfectbase 11 ай бұрын
Glad it helped! You might also want to take a look at “safelist” in tailwind. It also solves this problem, but in a better way. tailwindcss.com/docs/content-configuration#using-regular-expressions
@Fleebee.
@Fleebee. 11 ай бұрын
@@perfectbase fantastic !
@nedjed4811
@nedjed4811 Жыл бұрын
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.
@FlorinPop
@FlorinPop Жыл бұрын
Great video! Fantastic edit! Well done!
@megacronom
@megacronom Жыл бұрын
Amazing video, even after working with tailwind for some time i learned new tricks.
@perfectbase
@perfectbase Жыл бұрын
Great to hear that! Thanks for the feedback! 😊
@eric-jt
@eric-jt 7 ай бұрын
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
@lukasluftlaufer1093
@lukasluftlaufer1093 Жыл бұрын
@5:01 there is also a possibility to include tailwind classes in the theme file, that shouldn't be purged. So there is no need for your unused object ;) i Think it's called safelisting.
@perfectbase
@perfectbase Жыл бұрын
Thanks for sharing!! I wish I knew this before making the video.
@datkumar1024
@datkumar1024 2 ай бұрын
Yeah i was dynamically generating few colors in a component and had to specify the safelist pattern as: safelist: [ { pattern: /bg-(gray|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(100|200|300|400)/, }, ],
@magedibrahim1405
@magedibrahim1405 Жыл бұрын
This is literally the best Tailwind CSS video I have ever seen! Thank you for your great efforts and keep going! ❤
@shobhitumrao
@shobhitumrao Жыл бұрын
amazing video, on a project using tailwind, this helped a lot., Thank you !! Looking forward to more such content.
@ns-gabrielmendoza1329
@ns-gabrielmendoza1329 Жыл бұрын
I didn't know tailwind even had this!Amazing 10 minutes of a developer life!
@CreiwryJay
@CreiwryJay 11 ай бұрын
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!
@andreaskarz
@andreaskarz Жыл бұрын
Wow, I'm impressed - especcialy this trick with the color shadows. Thank you.
@zillboy
@zillboy Жыл бұрын
Bro, thank you. I didn't knew so much, have been using tailwindCSS for quite some time, thank you :)
@megamind452
@megamind452 Жыл бұрын
For #5 I used tw-merge and it just worked for me. Don't know how. But now I know why it didn't work in the first place 😅.
@stonedizzleful
@stonedizzleful Жыл бұрын
Great video mate. The @apply is something I've never used but will in future!
@elBorregin256
@elBorregin256 Жыл бұрын
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
@perfectbase
@perfectbase Жыл бұрын
Glad you liked it!!
@Q__Q
@Q__Q Жыл бұрын
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
@kryptons-galaxy
@kryptons-galaxy 7 ай бұрын
This is awesome, I never knew tailwind is this powerful
@m3coo
@m3coo Жыл бұрын
Very, very helpful. Thank you!
@nikhil182
@nikhil182 Жыл бұрын
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 Жыл бұрын
you can do that using the official tailwind prettier sorting plugin
@nikhil182
@nikhil182 Жыл бұрын
@@elab4d140 Nice, that extension is also worth mentioning.
@perfectbase
@perfectbase Жыл бұрын
Thanks for sharing! Yes! I use the prettier plugin as well. Learned it from the T3 stack.
@_duongductrong
@_duongductrong Жыл бұрын
That tailwind-merge is awesome, thanks for your video help me know that 😍
@kevinka99
@kevinka99 Жыл бұрын
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
@perfectbase
@perfectbase Жыл бұрын
Thank you! 🙏☺️
@keochanmarido188
@keochanmarido188 24 күн бұрын
I like the responsive designs explain really explain perfectly and understand it more easy
@0xAndy
@0xAndy Жыл бұрын
This is the best Tailwind video I've ever watched. Thank you so much!
@perfectbase
@perfectbase Жыл бұрын
Wow, thank you!! 😊
@jesse9999999
@jesse9999999 Жыл бұрын
thank you mate! probably the best youtube tech tutorial i have seen this year, some great tips here
@perfectbase
@perfectbase Жыл бұрын
Thanks for such a nice review!! 😊
@nisargjaiswal4264
@nisargjaiswal4264 Жыл бұрын
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
@frk_91
@frk_91 8 ай бұрын
One of the most useful videos about tailwind I ever saw ❤
@arturamorfati
@arturamorfati Жыл бұрын
thank you! great video!🦐
@learner8084
@learner8084 7 ай бұрын
Just found this video, and I'm glad I did... subscribed.
@franklinhurtadosalazar
@franklinhurtadosalazar 4 ай бұрын
In this video, you answered most of my questions.
@simonswiss
@simonswiss Жыл бұрын
Great tips, great graphics and great editing skills - I enjoyed this video 👏
@perfectbase
@perfectbase Жыл бұрын
Thank you for watching! 🙏 Super glad to hear that from a bigger content creator in the space!!
@shanemshort
@shanemshort Жыл бұрын
came here from SImon's tweet, really neat! subscribed
@simonswiss
@simonswiss Жыл бұрын
@@shanemshort 😎 I subscribed today too!
@NikitaDrokin
@NikitaDrokin Жыл бұрын
I’m glad to see that another web developer started a KZbin channel. I also want to start one, but I’m afraid of getting through the beginning. How did you manage to overcome _your_ fear and start your channel?
@perfectbase
@perfectbase Жыл бұрын
Thanks for watching! My best tip is to upload your first trash video. No need to be afraid that someone you know is gonna watch. No one will know. No need for fancy editing, good mic, nice background, any of that.. just make a bad video and then start improving from there. You also don’t need to think that you are wasting a good topic in a bad video.. you can always reuse the same topic for a better video in the future. Good luck on your future creator journey!
@NikitaDrokin
@NikitaDrokin Жыл бұрын
@@perfectbase That's really good advice! Thank you. I guess the hardest part _really is_ the beginning 😂
@NikitaDrokin
@NikitaDrokin Жыл бұрын
Either way, I'll give it a shot. Thank you very much!
@perfectbase
@perfectbase Жыл бұрын
@@NikitaDrokin for sure! Starting is always the most difficult part. Hope you the best in your channel! 😉
@ajudmeister
@ajudmeister Жыл бұрын
@@perfectbase good advice! First videos are trash because everything is new and you are nervous. But you are learning so much how to improve, the journey is exciting! I am still in the trash phase, but I know the next one gonna be better.
@LeHarT99
@LeHarT99 Жыл бұрын
Very useful, thanks.
@lucasduarte7558
@lucasduarte7558 Жыл бұрын
strongly recommend this video, thank you for sharing your knowledge
@tfdesign4072
@tfdesign4072 5 ай бұрын
you are so good at explaining things!!
@pcv-free-as-a-bird
@pcv-free-as-a-bird Жыл бұрын
Really liked the neon shadow
@gizmo_stuff
@gizmo_stuff Жыл бұрын
Very high quality content
@ai_for_good
@ai_for_good Жыл бұрын
Loved it!! Thanks, will start using these asap!
@licokr
@licokr Жыл бұрын
A smooth editing and useful tips. Thank you so much!
@brunobrasil3419
@brunobrasil3419 6 ай бұрын
You are SO GREAT! I can't wait to try out each and every trick you just taught us!! Freaking awesome, Ravi 🤩🤩🤩
@lundell_music
@lundell_music Жыл бұрын
Very valuable tips. Many thanks for this gem of a video. Will be sharing with my team today.
@DevF-d4r
@DevF-d4r 10 ай бұрын
Video was concide and to the point! Plugin 8 caught me off guard, had to rewatch. You won a sub! Keep the videos coming!
@ahmadwahyudi3794
@ahmadwahyudi3794 Жыл бұрын
Thank you, you really helped me. Especially when you talk about mobile-first framework
@alanshabrandi1678
@alanshabrandi1678 Жыл бұрын
The tips and design of the video were very, very great. thank you 🌹🌹🌹
@dustsucker4704
@dustsucker4704 Жыл бұрын
Okay so i code Websites with tailwind for now 4 years and there was some great stuff in there. You got the subscribe Well deserved for such a good Video with some actually intressting context.
@perfectbase
@perfectbase Жыл бұрын
Thank you for the great feedback!! 🙏 Glad that it’s useful for more experienced people as well.
@giansantillan6934
@giansantillan6934 Жыл бұрын
best tailwind tricks so far
@AyushJoshi-ek1wu
@AyushJoshi-ek1wu Жыл бұрын
wow bro these are some really nice tricks... I was not known to the real power of tailwind.
@perfectbase
@perfectbase Жыл бұрын
Thanks for watching! Really glad you liked it!
@harshitmishra3843
@harshitmishra3843 Жыл бұрын
I appreciate the content and concepts covered in this video.
@bryanodinadev
@bryanodinadev Жыл бұрын
These are great! I just started Tailwind
@saifullahrahman
@saifullahrahman Жыл бұрын
thanks a lot, that second last tip was super usefull
@giffarialfarizy7310
@giffarialfarizy7310 10 ай бұрын
WOW! This video is beyond my expectation 🤯 Thank you, you just got a new subscriber ❤
@asfnobambu
@asfnobambu Жыл бұрын
At last, someone I can listen with speed 1.0 !!! Nice tips... Thank you.
@xGalasko
@xGalasko Жыл бұрын
haha #1 already what i needed thank you
@oscaryiudev
@oscaryiudev 9 ай бұрын
Peer and group are really useful!
@art_ik
@art_ik Жыл бұрын
Great Video! on the point and no BS. I love it! keep it up :)
@buituyen9484
@buituyen9484 Жыл бұрын
damn bro. tysm. the custom plugins is so cool, thanks for sharing.
@DEVDerr
@DEVDerr Жыл бұрын
5:00 You can always create a Map or single dictionary-like object that will contain keys and list of Tailwind classes as their values. like so ``` let variants = { active: 'text-primary bg-zinc-50', inactive: 'text-gray-500 hover:bg-zinc-50' } as const; ``` and then access it via `variants[selectedVariantProp]` or simply do inline if there This way you will have a variable that will have a purpose and it will resolve the problem of purging classes
@DEVDerr
@DEVDerr Жыл бұрын
Note that this "as const" is a TypeScript feature that allow TS to infer object keys with their exact names rather than generic strings
@laracrafts195
@laracrafts195 Жыл бұрын
bro. this you video is awesome. this makes me believe you should be a online tutor from laracast. i really enjoyed the video even though i new most of what was inside i still wanted to watch till the end
@perfectbase
@perfectbase Жыл бұрын
Thanks! Glad you liked it!! ☺️
@muhammadumar5385
@muhammadumar5385 Жыл бұрын
Hats of man ! The most amazing was creating own plugin.
@vOnez212
@vOnez212 Жыл бұрын
This was great. Keep them coming!
@kushaljain2206
@kushaljain2206 11 ай бұрын
Very nice information. Your delivery of the content makes in more better. Looking forward for more software development area videos!Cheers!
@yavallejo
@yavallejo Жыл бұрын
Great video on Tailwind, thank you very much.
@benacker8525
@benacker8525 Жыл бұрын
I didn't know about no.6 that you can that easily apply tw classes :). I always used apply to make my own classes.
@yohendryy
@yohendryy 11 ай бұрын
in dynamic utilities u can use a map instead with the color been the key and the value is the tailwind class i.e: const CLASS_MAP = { 'green': 'text-green-500', 'orange': 'text-orange-500', ... , 'red: 'text-red-500' , 'default': 'text-gray-500'} const className = CLASS_MAP[selectecColor ?? 'default']
@appstuff6565
@appstuff6565 Жыл бұрын
halfway into the video and i liked it. Thanks Ravi!
@appstuff6565
@appstuff6565 Жыл бұрын
ended the video..well i understood the first half, still new to tailwind maybe thats why.
@poptaim7631
@poptaim7631 Жыл бұрын
I just want to say THANKS! Great video!
@abdulmuminyqn
@abdulmuminyqn Жыл бұрын
Really interesting tailwind tips! 🤩
@everlastingstudios2467
@everlastingstudios2467 Жыл бұрын
tailwind merge is really life saver, I have been trying to figure it out for a while for my custom components, Thanks!
@khethelogp
@khethelogp Жыл бұрын
These are pretty cool tips and tricks 🔥
@tcortega
@tcortega Жыл бұрын
Your channel is so small but yet so good
@perfectbase
@perfectbase Жыл бұрын
Thank you for the kind words!! 🙏
@HeyNoah
@HeyNoah Жыл бұрын
Great video! Thanks for sharing! 🙏🏼
@crim-son
@crim-son Жыл бұрын
So so valuable, I'm saving and sharing this❤
@inquinimaris
@inquinimaris Жыл бұрын
Tsk, wish I knew about peer sooner. Thanks, that was useful.
@cashmoneyz3
@cashmoneyz3 Жыл бұрын
solid video, all the examples were quick and concise
@Thaeyn
@Thaeyn Жыл бұрын
Good job man! Learned a lot.
@MmmMmmGood17
@MmmMmmGood17 Жыл бұрын
Insightful video! I hope your channel grows to be huge 🙏🏽
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 195 М.
Top 10 CSS Features You Should Know & Use in 2024
19:56
Lukas | Web Development & Design
Рет қаралды 314 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 203 МЛН
Tailwind, utility-first css-фреймворк
1:25:39
От 0 до 1
Рет қаралды 12 М.
6 UI Hacks I Wish I Knew As A Beginner
11:11
Tim Gabe
Рет қаралды 852 М.
Top 10 Tips and Tricks with Tailwind CSS
23:45
developedbyed
Рет қаралды 91 М.
Top 10 Advanced CSS Responsive Design Concepts You Should Know
20:16
Web Dev Simplified
Рет қаралды 537 М.
THIS PORTFOLIO IS INSANE - Roasting your dev sites #3
17:59
Anthony Sistilli
Рет қаралды 108 М.
How the PROS Use Tailwind
9:55
Frontend FYI – by Jeroen
Рет қаралды 55 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 491 М.
The Easy Way to Design Top Tier Websites
11:54
Sajid
Рет қаралды 578 М.