Skip to content

SteveMaybe/shopify-slater-tailwindcss

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Shopify Starter Theme + TailwindCSS with PurgeCSS

First of all, big thank your for guys at The Couch for creating Shopify development toolkit called Slater

I wanted to use Slater and TailwindCSS but couldn't make that work together. I had a project on the table with a start date NOW and decided to create this little temporary monster.

I took the Slater theme, integrated it with TailwindCSS + PurgeCSS and rewrite most of the markup to use css classes from TailwindCSS.

Note: the theme needs some love and it's still work in progress.

Requirements

Make sure all dependencies have been installed before moving on:

Quick start: Installation

Install Slater globally

  • npm i slater -g

Clone this repository and run

  • npm install to install dependencies (/root folder)
  • cd tailwind and npm install to install Tailwind depedencies (/tailwind folder)

Use CSS file

In order to edit the CSS file, go to /tailwind/src/main.css

Tasks

Task Name Description
npm run start Run all tasks and watch all relevant files for changes (PurgeCSS disabled)
npm run build Run all tasks, minify output so it's ready to push to production (PurgeCSS enabled)
slater sync Sync local files to your remote theme

Please run these tasks from root folder.

Copyright and license

MIT License © The Couch

Copyright 2019 Tomasz Bujnowicz under the MIT license.

About

Shopify Starter Theme + TailwindCSS with PurgeCSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 90.2%
  • Liquid 7.8%
  • JavaScript 2.0%