stewartknapman / shopify-starter

5 stars 1 forks source link

Starter Skeleton Theme for Shopify

This is not a huge opinionated framework. This will not try to give you fancy ways to do cool stuff, with lots of configuration. This is designed to get a bespoke theme up and running quickly, with minimal effort.

This is a set of build tools, a simple structure and some basic scss.

You will need to BYO design, layout, and custom modules/sections/whatever. Is there something missing that you need/want? Build it.

Tools

Shopify Theme Kit

I recommend using Shopify's Theme Kit. This is what Shopify's own developers use, and has the ability to use multiple environments (i.e. development, staging, production, etc.).

Inside SCSS

I built a light weight SASS framework for my own needs. I like it. Don't want it? Don't worry, you can just remove the lines that look like this @import '../../node_modules/inside-scss/src/inside'; in the main scss files (_src/scss/) and replace them with the framework of your choice.

Sass Importer

I prefer to push my scss files to Shopify to be compiled. Yes, I know that Shopify's version of SASS is old, but that way I don't have to worry about escaping any liquid. I also prefer to use @import to create small, manageable files. So I build a tool that just concats the scss files based on the import rules.

Again, if you don't want to use this, I'm not your mother. Feel free to rip it out and replace it with something that suits your own needs.

Shopify Settings Generator

If you hadn't noticed I like building my own tools. This one allows me to keep theme settings in small, manageable, bite-sized files, along with doing cool things like loops and other stuff that sucks to write by hand.

Commands

npm run build

Simple.

To do: more detail on the individual build tasks.

Important Notes

Images

I don't know what image sizes you need, I've included some basic defaults but you'll have to find the image tags and update the sizes based on your own content needs.

To make them easy to find I've included this comment tag: {% comment [IMAGE] - update sizes for your own needs %}{% endcomment %} with each image tag, so all you need to do is search your project for [IMAGE].

Layout and Grids

Again, I don't know what you need, so I've left everything one column and full width. It's up to you and your design.

However there is a grid system here, should you need it. Here are your options:

TODO