🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@tailwindcss/forms

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
t

@tailwindcss/forms

A plugin that provides a basic reset for form styles that makes form elements easy to override with utilities.

0.5.10
latest
100

Supply Chain Security

100

Vulnerability

100

Quality

87

Maintenance

100

License

Version published
Weekly downloads
1.6M
-15.06%
Maintainers
4
Weekly downloads
 
Created
Issues
5

What is @tailwindcss/forms?

The @tailwindcss/forms plugin is a Tailwind CSS plugin that provides a basic reset for form styles that makes form elements easy to override with utilities. It helps in creating consistent and customizable forms with Tailwind CSS utility classes.

What are @tailwindcss/forms's main functionalities?

Form Inputs Styling

This feature allows you to style form inputs such as text fields, making them more consistent and visually appealing across different browsers.

<input class='block w-full px-4 py-2 mt-2 text-gray-700 bg-white border border-gray-300 rounded-md focus:border-blue-500 focus:ring focus:ring-blue-200 focus:ring-opacity-50' type='text' placeholder='Full name'>

Checkbox and Radio Buttons Styling

With this feature, you can apply Tailwind CSS styles to checkboxes and radio buttons to make them match the overall design of your site.

<input type='checkbox' class='w-4 h-4 text-blue-600 bg-gray-100 rounded border-gray-300 focus:ring-blue-500'>

Select Dropdown Styling

This feature allows you to style select dropdowns with Tailwind CSS, providing a more consistent and customizable appearance.

<select class='block w-full px-4 py-2 mt-2 text-gray-700 bg-white border border-gray-300 rounded-md focus:border-blue-500 focus:ring focus:ring-blue-200 focus:ring-opacity-50'><option>Option 1</option><option>Option 2</option></select>

File Input Styling

This feature enables you to style file inputs with Tailwind CSS, making them blend in with the rest of your form elements.

<input type='file' class='block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-semibold file:bg-violet-50 file:text-violet-700 hover:file:bg-violet-100'>

Other packages similar to @tailwindcss/forms

FAQs

Package last updated on 07 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts