Thank you for your interest in contributing to color-fns! This document will help you get started with contributing and explains the guidelines we follow.
- 🐛 Bug fixes: Help us fix issues
- ✨ New color utility functions: Add useful features for color conversion, parsing, validation, etc.
- 📚 Documentation: Improve or add examples, explanations, and guides
- ✅ Tests: Increase test coverage for existing or new features
-
Fork the repository
-
Clone your fork (replace YOUR-USERNAME with your GitHub username):
git clone https://github.com/YOUR-USERNAME/color-fns.git
-
Navigate to the project directory:
cd color-fns -
Install dependencies:
npm install
-
Create a new branch for your feature or fix:
git checkout -b feature/amazing-feature
-
Implement your changes
-
Keep code clean, simple, and consistent with existing style
-
Add JSDoc comments for new functions
-
Write tests for any new functionality
-
Update the API Reference section if your change introduces new public functions or modifies existing ones.
-
Run prettier to format your code:
npm run format
-
Run linter to check for code quality:
npm run lint
-
Run tests to ensure everything works:
npm test -
Commit your changes with a clear message:
git commit -m "feat: add amazing feature" -
Push your branch to your fork:
git push origin feature/amazing-feature
-
Open a pull request to the
mainbranch of the original repository with:- A clear title and description
- Reference any related issues (e.g. "Fixes #123")
- Mention clearly if your change introduces breaking behavior (e.g. API changes or removed features)
If you have any questions or need help, feel free to open an issue. We’re happy to assist!
By contributing, you agree to license your contributions under the MIT License.