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/Maxvien/bootstrap-shopify-theme.git
Install the project's dependencies.
yarn install
First of all, you need to install Shopify CLI and login into your online store.
shopify login --store=your-store.myshopify.com
Then you can run the below commands to work with the theme.
Run webpack watch
and serve
the theme in development mode.
yarn serve
Run webpack build
and push
the theme to your online store in production mode.
yarn push
Safely add
the current project files to the git staging area, then pull
the theme from your online store, and clean
untracked asset files.
yarn pull
Run unit test
with jest and make sure the files are following the project workflow.
yarn test
Analyze the code to find problems with shopify theme check
, eslint
, stylelint
and prettier
.
yarn lint
Automatically fix problems.
yarn fix
All 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.