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...
  • НаукаНаука

Комментарии • 152

  • @DerickMasai
    @DerickMasai 3 года назад +73

    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 ❤️️

    • @simonswiss
      @simonswiss 3 года назад +10

      Thank you for this awesome comment! ❤️

    • @vigoworkchannel1681
      @vigoworkchannel1681 3 года назад +4

      Exactly! Me too!

    • @pjguitar15
      @pjguitar15 2 года назад +3

      Yeah few weeks ago I said "Goodbye" to Bootstrap and said "Hello" to Tailwind 😁

  • @jslbrt
    @jslbrt 3 года назад +63

    I'm almost addicted to your videos because of the high quality of production and education. I'm officially a Tailwind fan!

  • @benfrese3573
    @benfrese3573 2 года назад

    God damn, I was SO CLOSE to start a project without this plugin. So glad I took the time to watch. Amazing stuff!

  • @techsoluteintegrated9972
    @techsoluteintegrated9972 2 года назад

    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

  • @StevenOBird
    @StevenOBird 3 года назад +5

    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! :)

  • @thanhnguyenhoai2727
    @thanhnguyenhoai2727 3 года назад +1

    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!

  • @vovandarius
    @vovandarius День назад

    Really neat! Thanks so much for a thorough explanation!

  • @ShiloBuff
    @ShiloBuff Год назад

    The quality and explanations are top knotch. Only downside to this video is the cursive font for the text editor. Subscribed.

  • @dance2die
    @dance2die 3 года назад +68

    Every single TW videos are so educative. Thank you for sharing~

    • @hulk6315
      @hulk6315 3 года назад

      @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.

    • @hulk6315
      @hulk6315 3 года назад +1

      ​@Abel Ulises And, for the record, your code is a f**king disaster, next time, employ better developers.

  • @mitulkanani8363
    @mitulkanani8363 3 года назад +1

    I am in love ❤️️ with Tailwind CSS, it's mindblowing and speeds up the design process. Awesome video content.

  • @rmavuluri-version
    @rmavuluri-version 3 года назад +1

    Brilliant @tailwindcss teamwork. Really appreciated guys. you guys are making everyone's life easier. 👏👏👏

  • @BneiAnusim
    @BneiAnusim Год назад

    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!

  • @ivan_off
    @ivan_off 3 года назад +1

    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.

  • @uquantum
    @uquantum Год назад

    Addictive tutorials...joy to watch, listen and learn from

  • @sundards9613
    @sundards9613 3 года назад +4

    Awesome you guys are reduced lot of development Time⌚ hats off to the team.

    • @moracabanas
      @moracabanas 3 года назад +1

      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

  • @c-damocles
    @c-damocles 2 года назад

    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 😆

  • @sornt
    @sornt 3 года назад

    I already fall in love tailwindcss.

  • @Claudio_Pereira
    @Claudio_Pereira 3 года назад +2

    Wow! Your videos are extremely straightforward! Congratulations on your work and thank you for sharing! Your tips make me a better dev.

  • @edwardjr.5688
    @edwardjr.5688 3 года назад

    I'm getting started with Tailwind and its nice to know that are content like yours that can make things easier.
    Thanks!

  • @CodingNuggets
    @CodingNuggets 3 года назад +2

    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!

  • @fyardlest1
    @fyardlest1 3 года назад +1

    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.

  • @matthiasfanger9893
    @matthiasfanger9893 3 года назад

    Thank you! 15 Minutes of your Video can save a ton of hours with trial and error 👏

  • @behzodjon
    @behzodjon 2 года назад +1

    Just a great video!! God bless you!

  • @arthurschilling5651
    @arthurschilling5651 3 года назад +1

    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!!

  • @ZynthProductions
    @ZynthProductions 3 года назад

    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!

  • @catreunion
    @catreunion 2 года назад

    Hi Simon, thank you so much for giving us a great tutorial. 15:45 is the magic moment that blew my mind! Thank you!!!

  • @uxweb
    @uxweb 3 года назад

    This is pretty slick! Really enjoy building for the web using tailwindcss

  • @mrjebbar
    @mrjebbar Год назад

    Excellent content. Many thanks for your time and efforts.

  • @forinda
    @forinda 2 года назад

    Thank you! Just what I wanted

  • @xicheung7867
    @xicheung7867 3 года назад

    "@apply: ..."
    Tailwind defo won my heart with this one!

  • @simplyuy
    @simplyuy 3 года назад +1

    Marvelous! 🎨🖌️🔥

  • @TTArmor
    @TTArmor 2 года назад

    Damn! This was a really good video! Wish i found it last week tho 😂 Going to redo the whole site now with the plugin!

  • @raymondmichael4987
    @raymondmichael4987 3 года назад

    well, what can I say! it's just awesome, now that I'm diving into this

  • @jimmyj.6792
    @jimmyj.6792 3 года назад +1

    Really great video in detail with preview and concrete use case 👌 thanks a lot

  • @guillermomedel1575
    @guillermomedel1575 3 года назад

    I haven't even watched the video yet but since it's Tailwind Labs they already got my like.

  • @muhammadaqibbinazam
    @muhammadaqibbinazam 2 года назад

    Thank you very much for this wonderful video ❤

  • @normankamper-leymann1191
    @normankamper-leymann1191 3 года назад

    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.

  • @jawyor-k3t
    @jawyor-k3t Год назад

    Amazing work!

  • @fm_abid
    @fm_abid 3 года назад

    man, I loved this. was looking or something like this from Tailwind. Great, keep going

  • @osherezra8460
    @osherezra8460 3 года назад +1

    Thanks awesome tutorial keep it up guys

  • @zacharyflynn06
    @zacharyflynn06 8 месяцев назад

    Yeah, thats a game-changer. Thanks!

  • @anglerpocky
    @anglerpocky 3 года назад

    Most excellent timing! 🙏

  • @michaelkhalsa
    @michaelkhalsa 10 месяцев назад

    Very helpful, thanks!

  • @AlejandroVivas
    @AlejandroVivas 3 года назад +1

    I really love you and tailwindcss!!

  • @pankajbokdia
    @pankajbokdia 2 года назад

    Thank you soo much for doing what you do!

  • @ifindev
    @ifindev 3 месяца назад

    Really awesome!!

  • @husnulaman
    @husnulaman 3 года назад

    Tailwind always delivers 😍

  • @CarlFurrow
    @CarlFurrow 3 года назад

    Really great video and plugin!

  • @__haah
    @__haah 3 года назад

    Awesome and clear, cheers Simon! :)

  • @abhishkk
    @abhishkk 3 года назад

    This is so helpful!! Thank you.

  • @jollyjerr
    @jollyjerr 3 года назад

    So awesome. Thanks for the great video!

  • @danielChibuogwu
    @danielChibuogwu 2 года назад

    your videos are so good💯🔥, thank you for the contents

  • @mhasancoder
    @mhasancoder 2 года назад

    Nice video mate 😍

  • @cyb
    @cyb 3 года назад +1

    How do you do that live preview? Is that a vscode extension?

  • @megh219
    @megh219 3 года назад

    Very well explained!! great video

  • @shaungbhone8368
    @shaungbhone8368 3 года назад +1

    Nice background love it 💕

  • @jacobgraf83
    @jacobgraf83 3 года назад +3

    Are you using a plug-in for the preview or is that native VS Code?

    • @jimmyj.6792
      @jimmyj.6792 3 года назад +2

      Interested too 👍

    • @simonswiss
      @simonswiss 3 года назад +8

      That's a vscode we've started implementing internally - we will eventually make it public and talk about it, _perhaps_, _at some point_. 🤞

    • @gustavkjellin2405
      @gustavkjellin2405 Год назад

      @@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!

  • @britti73
    @britti73 2 года назад

    This is so cool! Thank you for a perfect tutorial

  • @henkhavenga570
    @henkhavenga570 3 года назад +1

    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?

  • @NadeemGorsi
    @NadeemGorsi 3 года назад

    Many Likes!!

  • @ewildgoose
    @ewildgoose 3 года назад

    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!

  • @michongoma7598
    @michongoma7598 3 года назад

    Awesome!!! Thank you so much

  • @cintron3d
    @cintron3d 3 года назад

    Tailwind just keeps getting better. I can't wait to switch away from bootstrap

  • @daltonyon
    @daltonyon 3 года назад

    Nice bro!!!! Help me a lot!!!

  • @DespicariPirates
    @DespicariPirates Год назад

    what about the options value, how can u customize them

    • @merictunc
      @merictunc День назад

      you can't style options

  • @raphaeljaggerd3585
    @raphaeljaggerd3585 3 года назад +1

    Yay!!

  • @YCode_
    @YCode_ 7 месяцев назад

    thank you

  • @JohnCamacho
    @JohnCamacho 2 года назад

    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"

  • @WarrenRunk
    @WarrenRunk 3 года назад +1

    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!

  • @tririfandani1876
    @tririfandani1876 3 года назад

    unpopular opinion: TailwindCSS is the best CSS framework

  • @amirbahador.developer
    @amirbahador.developer 2 года назад

    ty sir 🙏🏻🌷🌹❤️👍

  • @bitmagie
    @bitmagie 3 года назад

    awsome

  • @hbela1000
    @hbela1000 Год назад

    cool, thx.

  • @pablobello0
    @pablobello0 3 года назад

    Amazing!

  • @arubin1978
    @arubin1978 3 года назад

    Nice done, thanks for the video? Does it support RTL? For example direction of the select caret...

  • @awksomeid6965
    @awksomeid6965 2 года назад

    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.

  • @ApoorvMote
    @ApoorvMote 3 года назад

    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.

  • @alphacentorus
    @alphacentorus 3 года назад

    Insteresting :) . So curiosity are you french ?

  • @Rhidayah
    @Rhidayah 2 года назад

    I like how you pronounce "shadow"

  • @manuelperes4995
    @manuelperes4995 3 года назад

    it 's so great pretty nice Thanks

  • @anuroop748
    @anuroop748 3 года назад

    Wow 👍

  • @zeddscarlxrd4331
    @zeddscarlxrd4331 Год назад

    great

  • @charlesdoley
    @charlesdoley 3 года назад

    Very addictive 😘

  • @lh536
    @lh536 3 года назад

    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!

  • @mityukov
    @mityukov 3 года назад

    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 ;)

  • @whatthefunction9140
    @whatthefunction9140 3 года назад

    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?

  • @amitmondal7427
    @amitmondal7427 3 года назад

    Useful.

  • @bassman2145
    @bassman2145 Год назад

    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!!!

  • @trampsport
    @trampsport 2 года назад

    what is the sense to use this plugin if select arrow stops flipping after adding it???

  • @icokie
    @icokie 3 года назад

    awesome :)

  • @ganumelodyr6031
    @ganumelodyr6031 3 года назад

    Which text editor u r using

  • @shaharyarahmed9899
    @shaharyarahmed9899 3 года назад

    So what is the difference b/w @tailwindcss/forms and @tailwindcss/ui?

  • @Faisal50x
    @Faisal50x 3 года назад

    you rocks

  • @mainuddin9230
    @mainuddin9230 3 года назад

    Great video..
    What is your vs code font name?

  • @ricardomm6535
    @ricardomm6535 3 года назад

    thank u so much. 1 more subscriber

  • @regisnut
    @regisnut 3 года назад

    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

    • @regisnut
      @regisnut 3 года назад

      it seems there is conflict between formik and tailwind form

  • @KasimSheyi
    @KasimSheyi 3 года назад

    Is there a way to add a border-left to the arrow in the select tag?

  • @antontraceur
    @antontraceur 3 года назад

    Hey nice video! Is there any way of replicating your setup for VSCode?

  • @EnterOsaka
    @EnterOsaka 2 года назад

    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?

  • @mohamedyoussef8835
    @mohamedyoussef8835 2 года назад

    Awesome Video +++++++++++++++++++++++++++++😃