tailwindlabs / tailwindcss-custom-forms

A better base for styling form elements with Tailwind CSS.
https://tailwindcss-custom-forms.netlify.app/
MIT License
1.55k stars 72 forks source link

Make the base selector configurable #29

Open stancl opened 5 years ago

stancl commented 5 years ago

Right now, the base selector is hardcoded -- .form-checkbox. I would like to style the checkbox element globally, since I'm working with a platform that's extensible and extensions aren't written with this plugin in mind.

It might be possible to achieve this by using input[type=checkbox] { @extend .form-checkbox }, but I think having a configurable base selector is a more elegant solution.

ericp-mrel commented 4 years ago

Have you figured out a way to be able to have the custom forms styles applied globally?

I'm new to tailwind and would like to have form inputs styled globally across my site, but not really sure the easiest way to accomplish that.