css-to-tailwind-converter
v1.0.2
Published
Converts CSS style object to tailwind Css
Downloads
4
Maintainers
Readme
css-to-tailwind-converter
css-to-tailwind
is a TypeScript package that converts CSS style objects into Tailwind CSS classes. This package helps you seamlessly integrate inline styles with Tailwind CSS by mapping standard CSS properties and values to their Tailwind counterparts.
Features
- Dynamic Conversion: Convert CSS properties to Tailwind classes, including support for custom values and units.
- Error Handling: Provides clear error messages for invalid color formats and units.
- Flexible Configuration: Easily extendable to handle additional CSS properties and values.
Installation
To install the package, run:
npm install css-to-tailwind-converter