Styling Forms with Tailwind CSS

  Рет қаралды 142,094

Tailwind Labs

Tailwind Labs

Күн бұрын

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
@jslbrt
@jslbrt 3 жыл бұрын
I'm almost addicted to your videos because of the high quality of production and education. I'm officially a Tailwind fan!
@DerickMasai
@DerickMasai 3 жыл бұрын
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 жыл бұрын
Thank you for this awesome comment! ❤️
@vigoworkchannel1681
@vigoworkchannel1681 3 жыл бұрын
Exactly! Me too!
@pjguitar15
@pjguitar15 2 жыл бұрын
Yeah few weeks ago I said "Goodbye" to Bootstrap and said "Hello" to Tailwind 😁
@StevenOBird
@StevenOBird 3 жыл бұрын
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! :)
@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!
@vovandarius
@vovandarius 9 күн бұрын
Really neat! Thanks so much for a thorough explanation!
@uquantum
@uquantum Жыл бұрын
Addictive tutorials...joy to watch, listen and learn from
@ShiloBuff
@ShiloBuff Жыл бұрын
The quality and explanations are top knotch. Only downside to this video is the cursive font for the text editor. Subscribed.
@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 😆
@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
@mitulkanani8363
@mitulkanani8363 3 жыл бұрын
I am in love ❤️️ with Tailwind CSS, it's mindblowing and speeds up the design process. Awesome video content.
@thanhnguyenhoai2727
@thanhnguyenhoai2727 3 жыл бұрын
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!
@ivan_off
@ivan_off 3 жыл бұрын
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.
@sundards9613
@sundards9613 3 жыл бұрын
Awesome you guys are reduced lot of development Time⌚ hats off to the team.
@moracabanas
@moracabanas 3 жыл бұрын
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
@rmavuluri-version
@rmavuluri-version 3 жыл бұрын
Brilliant @tailwindcss teamwork. Really appreciated guys. you guys are making everyone's life easier. 👏👏👏
@Claudio_Pereira
@Claudio_Pereira 3 жыл бұрын
Wow! Your videos are extremely straightforward! Congratulations on your work and thank you for sharing! Your tips make me a better dev.
@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!
@CodingNuggets
@CodingNuggets 3 жыл бұрын
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 жыл бұрын
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.
@arthurschilling5651
@arthurschilling5651 3 жыл бұрын
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!!
@matthiasfanger9893
@matthiasfanger9893 3 жыл бұрын
Thank you! 15 Minutes of your Video can save a ton of hours with trial and error 👏
@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!
@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!!!
@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!
@xicheung7867
@xicheung7867 3 жыл бұрын
"@apply: ..." Tailwind defo won my heart with this one!
@sornt
@sornt 3 жыл бұрын
I already fall in love tailwindcss.
@guillermomedel1575
@guillermomedel1575 3 жыл бұрын
I haven't even watched the video yet but since it's Tailwind Labs they already got my like.
@jimmyj.6792
@jimmyj.6792 3 жыл бұрын
Really great video in detail with preview and concrete use case 👌 thanks a lot
@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.
@raymondmichael4987
@raymondmichael4987 3 жыл бұрын
well, what can I say! it's just awesome, now that I'm diving into this
@behzodjon
@behzodjon 2 жыл бұрын
Just a great video!! God bless you!
@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.
@fm_abid
@fm_abid 3 жыл бұрын
man, I loved this. was looking or something like this from Tailwind. Great, keep going
@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!
@osherezra8460
@osherezra8460 3 жыл бұрын
Thanks awesome tutorial keep it up guys
@AlejandroVivas
@AlejandroVivas 3 жыл бұрын
I really love you and tailwindcss!!
@henkhavenga570
@henkhavenga570 3 жыл бұрын
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?
@arubin1978
@arubin1978 3 жыл бұрын
Nice done, thanks for the video? Does it support RTL? For example direction of the select caret...
@danielChibuogwu
@danielChibuogwu 2 жыл бұрын
your videos are so good💯🔥, thank you for the contents
@forinda
@forinda 2 жыл бұрын
Thank you! Just what I wanted
@alphacentorus
@alphacentorus 3 жыл бұрын
Insteresting :) . So curiosity are you french ?
@simplyuy
@simplyuy 3 жыл бұрын
Marvelous! 🎨🖌️🔥
@britti73
@britti73 2 жыл бұрын
This is so cool! Thank you for a perfect tutorial
@jawyor-k3t
@jawyor-k3t Жыл бұрын
Amazing work!
@zacharyflynn06
@zacharyflynn06 8 ай бұрын
Yeah, thats a game-changer. Thanks!
@michaelkhalsa
@michaelkhalsa 11 ай бұрын
Very helpful, thanks!
@__haah
@__haah 3 жыл бұрын
Awesome and clear, cheers Simon! :)
@CarlFurrow
@CarlFurrow 3 жыл бұрын
Really great video and plugin!
@pankajbokdia
@pankajbokdia 2 жыл бұрын
Thank you soo much for doing what you do!
@jollyjerr
@jollyjerr 3 жыл бұрын
So awesome. Thanks for the great video!
@megh219
@megh219 3 жыл бұрын
Very well explained!! great video
@anglerpocky
@anglerpocky 3 жыл бұрын
Most excellent timing! 🙏
@abhishkk
@abhishkk 3 жыл бұрын
This is so helpful!! Thank you.
@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!
@jacobgraf83
@jacobgraf83 3 жыл бұрын
Are you using a plug-in for the preview or is that native VS Code?
@jimmyj.6792
@jimmyj.6792 3 жыл бұрын
Interested too 👍
@simonswiss
@simonswiss 3 жыл бұрын
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!
@ifindev
@ifindev 3 ай бұрын
Really awesome!!
@cintron3d
@cintron3d 3 жыл бұрын
Tailwind just keeps getting better. I can't wait to switch away from bootstrap
@WarrenRunk
@WarrenRunk 3 жыл бұрын
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!
@shaungbhone8368
@shaungbhone8368 3 жыл бұрын
Nice background love it 💕
@husnulaman
@husnulaman 3 жыл бұрын
Tailwind always delivers 😍
@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!
@mhasancoder
@mhasancoder 2 жыл бұрын
Nice video mate 😍
@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!!!
@mainuddin9230
@mainuddin9230 3 жыл бұрын
Great video.. What is your vs code font name?
@cyb
@cyb 3 жыл бұрын
How do you do that live preview? Is that a vscode extension?
@daltonyon
@daltonyon 3 жыл бұрын
Nice bro!!!! Help me a lot!!!
@tririfandani1876
@tririfandani1876 3 жыл бұрын
unpopular opinion: TailwindCSS is the best CSS framework
@michongoma7598
@michongoma7598 3 жыл бұрын
Awesome!!! Thank you so much
@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.
@manuelperes4995
@manuelperes4995 3 жыл бұрын
it 's so great pretty nice Thanks
@Rhidayah
@Rhidayah 2 жыл бұрын
I like how you pronounce "shadow"
@gndreload
@gndreload 3 жыл бұрын
Hello, this is awesome. Thank you for sharing. What if I want to customize the options for the select input ?
@tlgr3g
@tlgr3g 3 жыл бұрын
Not possible with css at the moment. You would need to reimplement the dropdown. Tailwind's answer is Headless UI, which is an unstyled component library (react, vue). There are not many components there yet, but the select/dropdown is one that's covered.
@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.
@pablobello0
@pablobello0 3 жыл бұрын
Amazing!
@anstapol
@anstapol 3 жыл бұрын
Hey nice video! Is there any way of replicating your setup for VSCode?
@NadeemGorsi
@NadeemGorsi 3 жыл бұрын
Many Likes!!
@YCode_
@YCode_ 7 ай бұрын
thank you
@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 ;)
@randriamahandryrado9800
@randriamahandryrado9800 3 жыл бұрын
Thank you, it's very helpfull. Does anyone know what theme and fonts he use for VS Code ?
@jorgenUA
@jorgenUA 3 жыл бұрын
cool video. I think you need to improve responsiveness (reduce the amount of code), and the framework will become almost perfect.
@DespicariPirates
@DespicariPirates Жыл бұрын
what about the options value, how can u customize them
@merictunc
@merictunc 9 күн бұрын
you can't style options
@charlesdoley
@charlesdoley 3 жыл бұрын
Very addictive 😘
@amirbahador.developer
@amirbahador.developer 2 жыл бұрын
ty sir 🙏🏻🌷🌹❤️👍
@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"
@ricardomm6535
@ricardomm6535 3 жыл бұрын
thank u so much. 1 more subscriber
@raphaeljaggerd3585
@raphaeljaggerd3585 3 жыл бұрын
Yay!!
@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?
@amjedbouhouch7993
@amjedbouhouch7993 3 жыл бұрын
Say no more for libraries and for heavy packages. And start make your own components with Tailwindcss ❤
@ganumelodyr6031
@ganumelodyr6031 3 жыл бұрын
Which text editor u r using
@icokie
@icokie 3 жыл бұрын
awesome :)
@louisgac87
@louisgac87 3 жыл бұрын
Great, but where can I copy/paste your code? :)
@bakirxan
@bakirxan 3 жыл бұрын
Forms always been a pain to style. Thanks to tailwindcss team, now it's a breeze!
@TheSysmat
@TheSysmat Жыл бұрын
i try with 3.2.1; index.css:1:1: The `border-gray-300` class does not exist. If `border-gray-300` is a custom class, make sure it is defined within a `@layer` directive. dev: Plugin: vite:css
@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.
@hbela1000
@hbela1000 Жыл бұрын
cool, thx.
@al_mamun
@al_mamun 3 жыл бұрын
Here your todo list state for all tailwind official plugins: - [x] @tailwindcss/line-clamp - [x] @tailwindcss/forms - [ ] @tailwindcss/typography - [ ] @tailwindcss/aspect-ratio
@lh536
@lh536 3 жыл бұрын
hey... where can I find line-clamp plugin video? 👍 Thanks!
@al_mamun
@al_mamun 3 жыл бұрын
m.kzbin.info/www/bejne/oZ3LXp2DidJohrc
@lh536
@lh536 3 жыл бұрын
@@al_mamun thank you!
@bitmagie
@bitmagie 3 жыл бұрын
awsome
@shaharyarahmed9899
@shaharyarahmed9899 3 жыл бұрын
So what is the difference b/w @tailwindcss/forms and @tailwindcss/ui?
Theming Tailwind with CSS Variables
27:24
Tailwind Labs
Рет қаралды 126 М.
Tailwind Connect 2023 - Keynote
1:37:11
Tailwind Labs
Рет қаралды 340 М.
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,4 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 33 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,7 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 9 МЛН
How the PROS Use Tailwind
9:55
Frontend FYI – by Jeroen
Рет қаралды 52 М.
Translating a Custom Design System to Tailwind CSS
10:10
Tailwind Labs
Рет қаралды 122 М.
I WISH I Knew These Tailwind Tips Earlier
9:15
Theo - t3․gg
Рет қаралды 191 М.
5 MORE TailwindCSS Tips I Wish I Learned Earlier
5:32
Tom Is Loading
Рет қаралды 13 М.
10 CSS PRO Tips and Tricks you NEED to know
9:00
Coding2GO
Рет қаралды 50 М.
Why does JavaScript's fetch make me wait TWICE?
6:23
Tom on the Internet
Рет қаралды 181 М.
Sorting Tailwind CSS Classes Automatically with Prettier
10:00
Tailwind Labs
Рет қаралды 89 М.
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 200 М.
Your website does not need JavaScript - Amy Kapernick - NDC Oslo 2024
43:37
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,4 МЛН