title: How to Contribute summary: This guide explains how to contribute to Tabler, from setting up a development environment to making and testing changes. It covers essential steps like forking the repository, installing dependencies, and submitting a pull request to help improve Tabler's features and functionality.
Contributions are always welcome and highly encouraged! Whether you're new to open source or a seasoned contributor, your input helps make Tabler better for everyone. If you're new to open source, we recommend reading a how to contribute guide to learn more about contributing.
When contributing to Tabler, please adhere to the following guidelines:
Follow these steps to set up Tabler for development:
Fork the repository: Guide to forking.
Clone the repository to your local machine:
git clone https://github.com/YOUR_USERNAME/tabler.git
Create a new branch for your changes:
git checkout -b your-branch-name
```
## Development
To set up Tabler for development, follow these steps:
<div class="steps steps-vertical">
### Ensure Node.js and pnpm are installed
You’ll need Node.js (v20 or higher) and pnpm to compile Tabler’s files. If you don’t have them installed, download and install them from the official websites:
- [Node.js](https://nodejs.org/)
- [pnpm](https://pnpm.io/) (we use pnpm over other package managers for faster installation).
### Install dependencies
Run the following command to install all required npm packages:
bash
pnpm install
### Start developer mode
Use the following command to enable autocompilation with live reload. This will start up the preview website at `http://localhost:3000/`, and the documentation website at `http://localhost:3010/`:
bash pnpm run dev ```
Make your changes in the appropriate folders, such as ./core/
, ./preview/
or ./docs/
. Avoid modifying files in any dist
folders, as they are auto-generated during the build process and will be overwritten.
Before submitting a pull request, ensure your changes are properly compiled and tested:
Compile the production files
pnpm run build
Test all pages to confirm everything works as expected.
Once your changes are ready, create a pull request (PR) on GitHub. Make sure to include a clear and concise description of the changes and their purpose. Thank you for contributing to Tabler!