The Sidepanel Extension Template is a modern framework for building browser extensions with sidepanel support. This template uses WXT, Tailwind CSS 4.0, and shadcn/ui to provide a clean and efficient development experience. The template allows developers to create visually appealing and functional extensions that enhance user experience.
- Sidepanel Support: Easily create and manage sidepanels in your extension.
- Responsive Design: Built with Tailwind CSS for a mobile-friendly layout.
- Lightweight: Optimized for performance with minimal overhead.
- Easy to Customize: Modify styles and components as needed.
- Rich Component Library: Utilize shadcn/ui for pre-built components.
Before you begin, ensure you have the following installed:
- Node.js (v14 or higher)
- npm (v6 or higher)
- A modern web browser (Chrome, Firefox, etc.)
- Clone the repository:
git clone https://github.com/kayzenl2/sidepanel-extension-template.git
- Navigate to the project directory:
cd sidepanel-extension-template - Install the dependencies:
npm install
To run the extension locally, follow these steps:
- Build the project:
npm run build
- Load the extension in your browser:
- For Chrome: Go to
chrome://extensions/, enable "Developer mode", and click "Load unpacked". Select thedistfolder. - For Firefox: Go to
about:debugging#/runtime/this-firefox, click "Load Temporary Add-on", and select themanifest.jsonfile from thedistfolder.
- For Chrome: Go to
For the latest releases, check the Releases section.
The template follows a clear directory structure for easy navigation:
sidepanel-extension-template/
βββ dist/ # Compiled files for deployment
βββ src/ # Source files
β βββ components/ # Reusable components
β βββ styles/ # Tailwind CSS styles
β βββ assets/ # Images and other assets
β βββ utils/ # Utility functions
β βββ main.js # Main JavaScript file
βββ public/ # Public files
β βββ manifest.json # Extension manifest
βββ .gitignore # Git ignore file
βββ package.json # Project metadata and dependencies
βββ README.md # Project documentation
To customize the extension, you can modify the following files:
- Tailwind CSS Styles: Edit the styles in the
src/styles/directory. You can add custom styles or modify existing ones. - Components: Add or modify components in the
src/components/directory. This allows you to create a unique look and feel for your extension. - Assets: Place images or other media in the
src/assets/directory. Reference these in your components or styles as needed.
We welcome contributions to improve this template. To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Make your changes and commit them:
git commit -m "Add your message here" - Push to your branch:
git push origin feature/YourFeature
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have questions or need help, please check the Releases section for updates and support options.
Feel free to explore the template and make it your own. Happy coding!