This is a starter pack for creating Tailwind CSS plugins. It provides a basic structure and configuration to help you get started with developing your own custom Tailwind CSS plugins.
- Basic plugin structure
- Jest for testing
- Prettier for code formatting
- npm scripts for common tasks
To use this starter pack, follow these steps:
- Clone this repository:
git clone https://github.com/NyonCode/tailwindcss-plugin-starter-pack.git - Navigate to the project directory:
cd tailwindcss-plugin-start-pack - Install dependencies:
npm install
- Implement your plugin logic in
src/index.js. - Add any necessary theme extensions in the
theme.extendobject. - Write tests for your plugin in the
__tests__directory. - Run tests:
npm test - Format your code:
npm run format
jest.config.js: Contains Jest configuration for running tests..prettierrc: (If you have one) Contains Prettier configuration for code formatting.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
If you have any questions or need help with using this starter pack, please open an issue in the GitHub repository.
Happy coding! 🚀