Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1.0 #8

Merged
merged 6 commits into from
Dec 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .config/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ module.exports = {
browser: true,
es6: true
},
ignorePatterns: [
/**
* ignore certein files
* docs: https://eslint.org/docs/user-guide/configuring#ignorepatterns-in-config-files
*/
// 'my-file.js',
// '**/my-directory/*.js'
],
rules: {
/**
* add custom rules
Expand Down
7 changes: 6 additions & 1 deletion .config/postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ const path = require('path')

module.exports = {
plugins: [
require('postcss-import'),
require('tailwindcss')(path.resolve(__dirname, '../src/tailwind.config.js')),
require('autoprefixer'),
require('precss')
/**
* Use tomorrow’s CSS today.
* docs: https://preset-env.cssdb.org/features
*/
require('postcss-preset-env')({ stage: 1 })
]
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- title / description (start) -->
<h2 align="center">Shopify Theme Lab</h2>

Shopify Theme Lab is an easy customizable modular development environment for blazing-fast Shopify theme creation. By default, it's bundled with Vue.js and Tailwind CSS, but you can swap them for pretty much anything. Build a custom Shopify theme from scratch with a modern stack!
Shopify Theme Lab is a customizable modular development environment for blazing-fast Shopify theme creation. By default, it's bundled with Vue.js and Tailwind CSS, but you can swap them for pretty much anything. Build a custom Shopify theme from scratch with a modern stack!

> Disclaimer: This project is not affiliated with Shopify Inc., Tailwind Labs Inc. or Vue.org

Expand Down Expand Up @@ -71,7 +71,7 @@ Shopify Theme Lab is an easy customizable modular development environment for bl
- CSS
- [Tailwind CSS](https://tailwindcss.com)
- Swap Tailwind CSS with any other framework like [Bulma](https://bulma.io), [Bootstrap](https://getbootstrap.com) or [Materialize CSS](https://materializecss.com)
- [PostCSS](https://postcss.org) with [PreCSS](https://github.com/jonathantneal/precss)
- [PostCSS](https://postcss.org) with [postcss-preset-env](https://preset-env.cssdb.org/features)
- Preprocessor support: [SASS / SCSS](https://sass-lang.com), [LESS](http://lesscss.org) and [Stylus](https://stylus-lang.com)
- Workflow
- [Webpack](https://webpack.js.org)
Expand Down Expand Up @@ -144,7 +144,7 @@ $ npm run deploy:live # deploy shopify/ directory
## CSS preprocessors
> For the most cohesive development experience, it's recommended that you use PostCSS exclusively when working with [Tailwind CSS](https://tailwindcss.com/docs/using-with-preprocessors#using-sass-less-or-stylus).

By default, only PostCSS with PreCSS is installed. [PreCSS](https://github.com/jonathantneal/precss) lets you use sass-like markup in `.css` files. If you want to use a preprocessor it's recommended to use `SASS/SCSS` since it's the most compatible with a variety of CSS frameworks.
By default, only PostCSS with `postcss-preset-env` is installed. [postcss-preset-env](https://preset-env.cssdb.org/features) lets you use tomorrow’s CSS today. If you want to use a preprocessor it's recommended to use `SASS/SCSS` since it's the most compatible with a variety of CSS frameworks.

### SASS/SCSS
1. Run the following command:
Expand Down Expand Up @@ -224,7 +224,7 @@ $ rm src/tailwind.config.js # or delete manually

3. Inside [postcss.config.js](.config/postcss.config.js) remove `require('tailwindcss')(path.resolve(__dirname, '../src/tailwind.config.js'))`.

4. Remove `@tailwind` imports from [main.css](src/css/main.css)
4. Remove all `@import "tailwindcss/..` imports from [main.css](src/css/main.css)

### Bulma

Expand Down
Loading