Tailwind3/Alpine3 Web Extension Boilerplate
This is a starting place for building a Web Extension with Tailwindcss & Alpinejs
|
|
|
Basic Popup with Tailwind |
Alpine @click Works! |
Basic Options |
Installation
Setup local project
git clone [email protected]:thomasjohnkane/tailwind-alpine-chrome-extension.git
npm i && npm run dev
Install on Chrome
- Navigate to
chrome://extensions
in Chrome;
- Enable the Developer mode
- Click on Load unpacked extension (upper left nav)
- Upload the entire
extension
folder
Why use this?
- It automatically puts tailwindcss.com into your project
- It automatically puts alpinejs into your project
- Hot reload (watches files and updates chrome)
- Cross browser support (Chrome & Firefox, Safari/Edge TBD)
- Provides basic
popup.html
& options.html
(embeded in settings page)
Goals of project
- Create a starting point for building web extensions
- Use alpine.js and tailwind.css
- Be cross browser (chrome, firefox, safari, edge?)
- Full DX path integrated
Roadmap
Credit
- Thanks to Caleb Porzio for Alpinejs
- Thanks to Adam Watham for Tailwindcss
- Thanks to @rubenspgcavalcante for Webpack Extension Reload plugin
- Thanks to @Kocal, @EmailThis, and @williankeller for inspiration
Security
If you discover any security related issues, please email instead of using the issue tracker.
Contributing
- Fork it (https://github.com/thomasjohnkane/tailwind-alpine-chrome-extension/fork)
- Create your feature branch (
git checkout -b feature/fooBar
)
- Commit your changes (
git commit -am 'Add some fooBar'
)
- Push to the branch (
git push origin feature/fooBar
)
- Create a new Pull Request