Tonic WP

An opinionated scaffolding structure for Sass and WordPress themes

Tonic WP is an opinionated framework for developing WordPress themes using Sass. It is simply meant to help keep your CSS modular by suggesting a file structure; no styles have been added. Tonic WP is meant to be imported after any grids, scaffolding or other framework styles.

Requirements

Sass 3.3+

Installation

Tonic WP includes an easy way to generate a directory with all necessary files.

Install (TonicWP v1.0)

gem install tonic-wp

Install TonicWP into the current directory by generating the tonic-wp folder:

tonic-wp install

The generated folder will contain all the scaffolding for getting started with your WordPress theme. These files are meant to be modified. If you remove any of the files, make sure they are removed from the _tonic-wp.scss file at the root of the tonic-wp folder so as not to cause any import errors.

You can specify a target directory using the path flag:

tonic-wp install --path new/path

Import

Make sure you import your newly generated framework into your stylesheet(s):

@import 'tonic-wp/tonic-wp';

License

Tonic WP is published under the GNU General Public License.