10 Tailwind tips I wish I knew earlier
Vložit
- čas přidán 1. 06. 2024
- Looking to up your Tailwind game? Check out these 10 tips I wish I knew earlier!
Next video to watch:
• 5 React UI Libraries Y...
⚔️ Join The Horde
- Discord: / discord
- Github: github.com/TheOrcDev
Some of the projects to check:
Connector: github.com/TheOrcDev/orcish-o...
AI Framework: github.com/TheOrcDev/orcish-a...
00:00 Intro
00:13 Tip 1
02:00 Tip 2
03:11 Tip 3
04:11 Tip 4
06:31 Tip 5
07:06 Tip 6
08:23 Tip 7
09:00 Tip 8
10:00 Tip 9
12:12 Tip 10
#webdevelopment #orcdev #tailwind #10tips #react #nextjs - Věda a technologie
Hey Warriors, I hope you enjoyed the video! Don't forget to smash that like button and hit subscribe to join me on my Orcish CZcams journey!"
1 tip - you can also use space-x-2 (space-y-2) to not use flex to devide elements
3 tip - you can use also bg-opacity-40
Yes space-x-2 is also an option!
bg-opacity-40 is deprecated, if you use it you’re getting a warning to use bg-red-500/40
Great tips, even if I knew all of them ;) If you want another great tip, is to use background images in the tailwind.config file, if you are using svg files it can make your icons much easy to use, you have to only write the shortcut name in the class.
The Shadecn is new for me, this is why I am following you ;)
What do you mean in tailwind config file? To declare images there like components? Somehow I'm always using some icon libraries for those things, like Hero Icons :D
Thank you very much! I definitely recommend Shadcn!
@@orcdev
Yes, something like that.
The code should look like this:
theme: {
extend: {
colors: {
....
},
backgroundImage: {
"email-icon": "url('/icons/email.svg')",
},
},
},
plugins: [],
},
Because I am designing my icons, it is the best solution I have found, also no one can download and use them.
@@kafukai yeah that’s actually pretty good for custom icons! thanks on that one!
Thank you 🎉
You're welcome!
Nice video !! I found your channel from youtube shorts
Thank you very much! Appreciate the support! ⚔
more like you don't know css fundamentals
Hey there!
Why do you think I don’t know css fundamentals?