A ready to use boilerplate for getting started with building a Shopify Theme from scratch include Webpack module bundler and Tailwind CSS
Create Shopify Private App and configure app's permission correctly by following the Shopify Themekit Instruction:
- In the store’s Shopify admin, click Apps.
- Near the bottom of the page, click on Manage private apps.
- If you see a notice that “Private app development is disabled”, then click “Enable private app development”. (Note: Only the store owner can enable private app development)
- Click Create new private app.
- In the App details section, fill out the app name and your email address.
- In the Admin API section, click Show inactive Admin API permissions.
- Scroll to the “Themes” section and select Read and write from the dropdown.
- Click Save.
- Read the private app confirmation dialog, then click Create app.
You’ll return to the app detail page. Your new, unique access credentials are visible in the Admin API section. Copy the password. You’ll use it in the next step.
- MacOS (use homebrew):
brew tap shopify/shopify brew install themekit
- Window (use chocolatey):
choco install themekit
- Clone this repo
git clone https://github.com/hta218/shopify-theme-starter.git && cd shopify-theme-starter
- Duplicate an existing theme from your store theme admin (rename it if you want)
-
Get the theme's id by click
Actions/Edit Code
, the last number in the URL now is your theme's id. Copy it! -
In the
shopify-theme-starter
directory, renameconfig.example.yml
toconfig.yml
-
Update all configs with your store, theme_id (should stay in double qoute like this
"123123123"
) and password is the Shopify Private App's password that you've created in the first step -
Upload your local theme to Shopify and publish it
npm run deploy
-
Install dependencies by running
npm install
-
Start the development server, it will watch directory for changes, compile your code in
/src
directory, put them into/assets
and update remote themenpm start
Now you're ready to build your own Shopify's theme from here (next time you don't need to deploy again, just npm start
, this theme already deployed in the first time you run npm run deploy
)
- Liquid Cheat Sheet
- Shopify Liquid Documentations
- Shopify Cheat Sheet
- Shopify for Developers: Free Course
Copyright © 2020 - Made by Leo @ https://leohuynh.dev