Styling Forms with Tailwind CSS
HTML-код
- Опубликовано: 11 окт 2024
- In this video, we look at how to style form elements in Tailwind CSS using utility classes, and how the official `@tailwindcss/forms` plugin even make it possible to easily customize select menu, radio buttons, and checkboxes.
Source code: play.tailwindc...
Documentation: github.com/tai... - Наука
Hello! I just want to say thank you to all of you who created and continue to work on Tailwind. A friend of mine recommended it to me in January and my first thought was "why would you waste your time on this when Bootstrap already exists?" but just following your 1st tutorial video 5 days ago changed my perspective and how I code forever. I can't even remember how I was bumbling about for so long before this innovation 😂 But seriously, thank you so much and be blessed guys ❤️️
Thank you for this awesome comment! ❤️
Exactly! Me too!
Yeah few weeks ago I said "Goodbye" to Bootstrap and said "Hello" to Tailwind 😁
I'm almost addicted to your videos because of the high quality of production and education. I'm officially a Tailwind fan!
God damn, I was SO CLOSE to start a project without this plugin. So glad I took the time to watch. Amazing stuff!
Tailwind Labs, you are guys are great. I recently (about a year now ) learnt about tailwindCSS and ever since then, I have used it either fully or partially in every project. Thank you for making styling and theming painless
Dear Simon, keep up doing videos like this.
You mention important points, make it very clear what happens (in the background) and have an awesome pace in my opinion.
Following your videos (and also those by Adam of course!) made me love TailwindCSS in such a short time! :)
First time i'm an early bird for adopting dope technology, great to be here before Tailwindcss becomes the most popular/used css framework out there. Love using it!
Really neat! Thanks so much for a thorough explanation!
The quality and explanations are top knotch. Only downside to this video is the cursive font for the text editor. Subscribed.
Every single TW videos are so educative. Thank you for sharing~
@Abel Ulises lol how can the developers be so foolish that they explicitly used the term fake_input for variables in source code to include a false password lol you should have just used babel gobshite.
@Abel Ulises And, for the record, your code is a f**king disaster, next time, employ better developers.
I am in love ❤️️ with Tailwind CSS, it's mindblowing and speeds up the design process. Awesome video content.
Brilliant @tailwindcss teamwork. Really appreciated guys. you guys are making everyone's life easier. 👏👏👏
Loving TW! I've been learning it for a couple of weeks now and I'm about to start a new project with it! 🥳 Thanks!
I love this framework better than bootstrap now especially because you can customize the states of an element directly by writing the classes - so useful! And big thank you for this awesome video, forms are usually not the easiest to style.
Addictive tutorials...joy to watch, listen and learn from
Awesome you guys are reduced lot of development Time⌚ hats off to the team.
I love frontend but I just can't enjoy writting CSS until I discovered tailwind. It is so frustrating, so time sompsuming to style a single element I sometimes forget what I was trying to achieve, and it is so hard to notice if you are doing what you are intended to... then one day you try CSS with intellisense and there is no back
Very impressed with the '@apply' directive. I thought for a second we were going to have to end up writing out the free-form CSS anyways 😆
I already fall in love tailwindcss.
Wow! Your videos are extremely straightforward! Congratulations on your work and thank you for sharing! Your tips make me a better dev.
I'm getting started with Tailwind and its nice to know that are content like yours that can make things easier.
Thanks!
I am loving all of these videos. Definitely helping give some different ideas on using Tailwind in different scenarios. Appreciate the hard work your putting in. See you soon!
Really like the form thanks a lot! One of the best thing that seems a little bit difficult to do with Tailwind CSS is stepper, (checkout steps). Hope to find tutorials out there to do so, one day.
Thank you! 15 Minutes of your Video can save a ton of hours with trial and error 👏
Just a great video!! God bless you!
Dude these videos are the best thing, I’m so happy to have found this! So useful and well explained, easy to understand and practical! Keep’em coming!!
i always created a custom style for my form i dont even know there is a form plugins lol
i miss it on the docs
thankyou for this awesome tutorial!
Hi Simon, thank you so much for giving us a great tutorial. 15:45 is the magic moment that blew my mind! Thank you!!!
This is pretty slick! Really enjoy building for the web using tailwindcss
Excellent content. Many thanks for your time and efforts.
Thank you! Just what I wanted
"@apply: ..."
Tailwind defo won my heart with this one!
Marvelous! 🎨🖌️🔥
Damn! This was a really good video! Wish i found it last week tho 😂 Going to redo the whole site now with the plugin!
well, what can I say! it's just awesome, now that I'm diving into this
Really great video in detail with preview and concrete use case 👌 thanks a lot
I haven't even watched the video yet but since it's Tailwind Labs they already got my like.
Thank you very much for this wonderful video ❤
Thanks for the great video. Having customForms in the tailwind config v1 was much nicer though. I hope they add the possibility to easily define defaults in the tailwind config for v2 forms back.
Amazing work!
man, I loved this. was looking or something like this from Tailwind. Great, keep going
Thanks awesome tutorial keep it up guys
Yeah, thats a game-changer. Thanks!
Most excellent timing! 🙏
Very helpful, thanks!
I really love you and tailwindcss!!
Thank you soo much for doing what you do!
Really awesome!!
Tailwind always delivers 😍
Really great video and plugin!
Awesome and clear, cheers Simon! :)
This is so helpful!! Thank you.
So awesome. Thanks for the great video!
your videos are so good💯🔥, thank you for the contents
Nice video mate 😍
How do you do that live preview? Is that a vscode extension?
Very well explained!! great video
Nice background love it 💕
Are you using a plug-in for the preview or is that native VS Code?
Interested too 👍
That's a vscode we've started implementing internally - we will eventually make it public and talk about it, _perhaps_, _at some point_. 🤞
@@simonswiss Did anything ever happen on this? I'm doing a workshop at work next week where I'm introducing tw to our devs. Would be awesome to not have to switch back and forth to the browser. Cheers!
This is so cool! Thank you for a perfect tutorial
Thank you for demonstrating this. I've been battling to style the select element. Now I know. One question though: how did you style the actual dropdown list? Mine still has a white background with blue highlight. How can I style the appearance of the dropdown list?
Many Likes!!
Could you cover some styles for fancy checkbox buttons please! I would like to see how you would style the classic toggle button that animates (without JavaScript). Also how you might do button style check boxes (eg green button for checked, red for unchecked, static label). Thanks!
Awesome!!! Thank you so much
Tailwind just keeps getting better. I can't wait to switch away from bootstrap
Nice bro!!!! Help me a lot!!!
what about the options value, how can u customize them
you can't style options
Yay!!
thank you
how are you able to nest @apply inside of @layer? My build process is giving this error: "@apply is not supported within nested at-rules like @layer. You can fix this by un-nesting @layer"
For select, is there a way to change the background color/text of the currently selected option? This also seems to still vary between desktop and mobile so perhaps the answer is no. Either way thanks for the great video!
unpopular opinion: TailwindCSS is the best CSS framework
ty sir 🙏🏻🌷🌹❤️👍
awsome
cool, thx.
Amazing!
Nice done, thanks for the video? Does it support RTL? For example direction of the select caret...
fucking amazing. this is exactly what i need. i’m so frustrated to style the select and options 🙄. W3c need to do some sh*t on this.
Thanks for explaining. But how are you able to override styles set by forms plugin with classes? I use typography plugin and I specify exact height for image. But typography plugin adds default top and botton margin for img in em based on screen sizes. I couldn't override it with classes in html. I had to override them in config. This also goes for all styles set by typograpy plugin. I cannot modify them in html at single location. I have to disable it completely and rewrite everywhere.
Insteresting :) . So curiosity are you french ?
I like how you pronounce "shadow"
it 's so great pretty nice Thanks
Wow 👍
great
Very addictive 😘
Great video! Really amazing! I have some questions/issues... On the select field how can I change the caret color according to text color? and how can I stylish the select input (border radius, options background color... etc...)? why the style of a textarea field doesn't fits to the rest of the form? Thanks for your support!
Is there a way to scope that "form elements resets"? Like, apply them only within '.tw-form' containers? Otherwise, it's kind of another bootstrap ;)
If I have a set of tw styles I add to every input, is there a way to group them and just add that name as a class?
Useful.
Great and very helpful video! Does anybody know what font Simon is using in his code editor? I love it and I would like to obtain/use the same. Thanks!!!
what is the sense to use this plugin if select arrow stops flipping after adding it???
awesome :)
Which text editor u r using
So what is the difference b/w @tailwindcss/forms and @tailwindcss/ui?
you rocks
Great video..
What is your vs code font name?
thank u so much. 1 more subscriber
with version tailwindcss.2 after installing the form plugin, I don't see it in node modules, and tailwdcss style dont apply to input?! pretty strange
it seems there is conflict between formik and tailwind form
Is there a way to add a border-left to the arrow in the select tag?
Hey nice video! Is there any way of replicating your setup for VSCode?
I'm having trouble getting my checkbox styling to work! I've added the plugin, but I'm running into an issue. Has anyone had this issue yet?
Awesome Video +++++++++++++++++++++++++++++😃