Version: 1.0.0 Last Updated: 28/12/2024
This repository serves as a streamlined starting point for developing Shopify themes based on the Dawn Theme, enhanced with TailwindCSS and Webpack for a modern development experience.
This boilerplate includes:
- Shopify's Dawn Theme as the base.
- TailwindCSS for rapid UI development.
- Webpack for bundling and asset management.
You can always refer to Shopify's official documentation for theme setup: Shopify Theme Development Guide
├── src
│ ├── index.js // JavaScript entry point
│ ├── tailwind.css // Tailwind CSS entry point
├── assets
│ ├── main.js // Bundled JavaScript (output)
│ ├── styles.css // Bundled CSS (output)
├── layout
│ ├── theme.liquid // Main layout file
├── webpack.config.js // Webpack configuration
├── package.json // Node dependencies and scripts
- Clone the repository:
git clone https://github.com/altugsogutoglu/shopify-v3-tailwindcss-boilet-template-dawn-theme.git cd your-repo
- Install dependencies:
npm install
-
Development Mode:
npm run dev
Starts Webpack in watch mode for live changes.
-
Shopify development Mode:
shopify theme dev
Runs the shopify handler.
-
Build for Production:
npm run build
Compiles and optimizes assets for production.
-
Start Development Server:
npm run start
Launches Webpack Dev Server with live reloading.
Ensure these lines are included in your layout/theme.liquid
file:
<!-- Adding CSS from /assets folder -->
{{ 'styles.css' | asset_url | stylesheet_tag }}
<!-- Adding JS from /assets folder -->
<script src="{{ 'main.js' | asset_url }}" defer></script>
- Modular Development: Separate source files for JavaScript and CSS.
- Automatic Asset Compilation: Webpack bundles assets into
/assets
. - TailwindCSS Integration: Utility-first CSS for rapid design.
- Source Maps: Debug assets efficiently.
Feel free to fork this repository, submit issues, or make pull requests to improve the boilerplate.
This project is licensed under the MIT License.
Happy coding! 🎉
❤️ Made with Love
This project is crafted with care and dedication by Medita. For more information, visit our website: medita.nl
Happy coding! 🎉