A free Shopify Theme built with Bootstrap, BEM, Liquid, Sass, ESNext, Theme Tools, ... and Webpack.
When I started building this Shopify theme, I thought it would be simple. But as I got deeper, I realized there was more to it.
I build themes from scratch, using Bootstrap to create a clean, user-friendly interface. I follow the BEM Methodology, which helps keep my code minimal and reusable.
I work with Liquid, SASS, ESNext to keep the theme modern and flexible. When problems arise, Shopify Theme Scripts help me solve them faster. I also use Shopify Metafield to add extra details where needed.
For visuals, I rely on Swiper to create smooth, touch-friendly sliders and CSS Media Queries to ensure a responsive, mobile-first design.
To streamline development, I use the Shopify Theme CLI for deployment and Webpack Encore to bundle assets. PostCSS and CoreJS help keep the theme compatible with older browsers.
And of course, I follow best practices with Shopify Theme Check, ESlint, Stylelint, Prettier—because clean code makes everything easier.
It’s a process. A learning curve. But in the end, it’s about crafting themes that work beautifully—for both the store owner and the customer.
If you like this project, hit the STAR button to bookmark it ⭐️
- Store Link: https://maxvien-bootstrap.myshopify.com
- Store Password:
maxvien
Clone the source code into your computer.
git clone https://github.com/VienDinhCom/bootstrap-shopify-theme.gitThis project was developed with Node 18 and NPM 10.
To set up a compatible environment, please download Volta and run volta setup.
Then, install the project's dependencies.
npm installFirst of all, you need to install Shopify CLI and login into your online store.
shopify login --store=your-store.myshopify.comThen you can run the below commands to work with the theme.
Run webpack watch and serve the theme in development mode.
npm run serveRun webpack build and push the theme to your online store in production mode.
npm run pushSafely add the current project files to the git staging area, then pull the theme from your online store, and clean untracked asset files.
npm run pullRun unit test with jest and make sure the files are following the project workflow.
npm run testAnalyze the code to find problems with shopify theme check, eslint, stylelint and prettier.
npm run lintAutomatically fix problems.
npm run fixAll files inside the theme/assets directory are ignored by git, except files starting with the static keyword in their filename.
Symfony Webpack Encore is a simpler way to integrate Webpack into your application. It wraps Webpack, giving you a clean & powerful API for bundling JavaScript modules, pre-processing CSS & JS and compiling and minifying assets. Encore gives you professional asset system that’s a delight to use.
If you want to use React or Vue in the theme, you can follow the documentation here.
To speed up your productivity, you can install these extensions:
- Eslint
- Prettier
- Stylelint
- Shopify Liquid
- IntelliSense for CSS
- Material Icon Theme
- Visual Studio IntelliCode
- Next Shopify Storefront • A Shopping Cart built with TypeScript, Tailwind CSS, Headless UI, Next.js, React.js, Shopify Hydrogen React,... and Shopify Storefront GraphQL API.
- Shopify Data Faker • A Shopify development tool for generating dummy store data.