0.03
Low commit activity in last 3 years
No release in over a year
Pure CSS framework, converted to Sass
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 2.0
 Project Readme

Pure CSS for Sass

Gem Version npm version CI

purecss-sass is a Sass-powered version of Pure CSS, allowing flexible integration of all Pure's components at once or individually.

Original Pure CSS files are converted using sass-convert and otherwise untouched and unmodified.

Installation

npm / Yarn

npm:

npm install purecss-sass

Yarn 1 (Classic):

yarn add purecss-sass

Import it in your Sass file:

@import 'purecss-sass/vendor/assets/stylesheets/purecss';

Ruby on Rails

Update your Gemfile:

gem 'purecss-sass'

Run bundle to install the gem.

Modify /app/assets/stylesheets/application.scss to include:

@import 'purecss';

Ensure your stylesheet file uses the .scss extension and remove any *= require_tree . and *= require_self directives.

Usage

Each component can be imported individually:

// npm and Yarn:
@import 'purecss-sass/vendor/assets/stylesheets/purecss/base';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/buttons';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/forms';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/forms-nr';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/grids';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/grids-responsive';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/menus';
@import 'purecss-sass/vendor/assets/stylesheets/purecss/tables';

// Ruby on Rails:
@import 'purecss/base';
@import 'purecss/buttons';
@import 'purecss/forms';
@import 'purecss/forms-nr';
@import 'purecss/grids';
@import 'purecss/grids-responsive';
@import 'purecss/menus';
@import 'purecss/tables';

Versioning

Pure CSS for Sass follows the versioning of the upstream Pure CSS, but the last version number may be ahead for project-specific updates.

Acknowledgments

Pure CSS for Sass is inspired from bootstrap-sass by Bootstrap team.

License

Pure © Yahoo! Inc. Licensed under the BSD license.

purecss-sass © Dmitriy Tarasov. Licensed under the MIT licence.