Skip to content

🛍 A free Shopify Theme built with Bootstrap, BEM, Liquid, Sass, ESNext, Theme Tools, ... and Webpack.

License

Notifications You must be signed in to change notification settings

VienDinhCom/bootstrap-shopify-theme

Repository files navigation

🛍 Bootstrap Shopify Theme

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 ⭐️

Demonstration

Installation

Clone the source code into your computer.

git clone https://github.com/Maxvien/bootstrap-shopify-theme.git

Install the project's dependencies.

yarn install

Usage

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.

Serve

Run webpack watch and serve the theme in development mode.

yarn serve

Push

Run webpack build and push the theme to your online store in production mode.

yarn push

Pull

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

Test

Run unit test with jest and make sure the files are following the project workflow.

yarn test

Lint

Analyze the code to find problems with shopify theme check, eslint, stylelint and prettier.

yarn lint

Automatically fix problems.

yarn fix

Notes

Theme Assets

All files inside the theme/assets directory are ignored by git, except files starting with the static keyword in their filename.

Webpack Encore

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.

Visual Studio Code Extensions

To speed up your productivity, you can install these extensions:

Related Projects

  • 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.