Metadata-Version: 2.4
Name: starmerge
Version: 0.2.1
Summary: A comprehensive Python port of tailwind-merge - intelligently merge Tailwind CSS classes
Project-URL: Homepage, https://github.com/banditburai/starmerge
Project-URL: Documentation, https://github.com/banditburai/starmerge#readme
Project-URL: Repository, https://github.com/banditburai/starmerge
Project-URL: Bug Tracker, https://github.com/banditburai/starmerge/issues
Project-URL: Original Project, https://github.com/dcastil/tailwind-merge
Author-email: promptsiren <promptsiren@gmail.com>
License: MIT
License-File: LICENSE
Keywords: classes,css,merge,tailwind,tailwindcss,utility
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Text Processing :: Markup :: HTML
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# starMERGE

A comprehensive Python port of [tailwind-merge](https://github.com/dcastil/tailwind-merge) - intelligently merge Tailwind CSS classes without style conflicts.

## Description

`starmerge` is a utility function to efficiently merge Tailwind CSS classes in Python without style conflicts. This is a complete port of the popular JavaScript library `tailwind-merge`.

```python
from starmerge import merge

merge("px-2 py-1 bg-red hover:bg-dark-red", "p-3 bg-[#B91C1C]")
# → 'hover:bg-dark-red p-3 bg-[#B91C1C]'
```

## Installation

```bash
pip install starmerge
```

## Features

- ✅ Full class merging functionality with conflict resolution
- ✅ Support for Tailwind v4.x syntax
- ✅ Handles arbitrary values, modifiers, and variants
- ✅ Comprehensive test coverage matching the original library
- ✅ Production-ready and battle-tested


## Requirements

- Python 3.11+
- Works with Tailwind CSS v4.x

## Contributing

Contributions are welcome! Feel free to open issues for bugs or unexpected behavior, or submit pull requests with improvements.

## Credits

This is a port of [tailwind-merge](https://github.com/dcastil/tailwind-merge) by Dany Castillo. All credit for the original implementation goes to the original authors.

## License

Licensed under the MIT License. This is a port of [tailwind-merge](https://github.com/dcastil/tailwind-merge) which is also licensed under the MIT License.

## Disclaimer

This is an independent port and is not officially affiliated with or endorsed by the original tailwind-merge project or Tailwind CSS.