Thanks for your interest in improving this project! It's a small, dependency-free project, so contributing is easy.
- Fork the repository and clone your fork.
- Open
index.htmldirectly in a browser, or run the bundled preview server:node server.js # then visit http://localhost:4600 - Create a branch for your change:
git checkout -b feature/my-improvement
- No build step, no dependencies. Keep it plain HTML, CSS, and vanilla JS.
- Match the existing style. Tabs for indentation, and follow the naming
conventions already in
css/style.css(BEM-ishcalc__*/key--*) andjs/calculator.js. - Theme with CSS custom properties. Add colors as variables in
:rootand[data-theme='light']rather than hard-coding them. - Test both themes and mobile width before opening a pull request.
- Keep the JavaScript readable and commented where the intent isn't obvious.
- Commit with a clear, descriptive message.
- Push to your fork and open a pull request against
master. - Fill out the pull request template and describe what changed and why.
- Link any related issue (e.g.
Closes #12).
Use the issue templates to file a bug report or suggest a feature. Please include steps to reproduce and your browser/OS for bugs.
By contributing, you agree that your contributions will be licensed under the project's MIT License.