perestroika-css

1.2.1 • Public • Published

Perestroika CSS

npm npm bundle size NPM

Reform for classless styling system.

Although classless styling systems work perfect for creating fast and simple yet beautiful projects, they are very limited when creating (relative) complex layouts.

Taking Marx CSS as inspiration, Perestroika CSS is a reform for a classless styling system, adding functionality through some simple extra classes.

The classless CSS reset (perfect for Communists) - Marx CSS

Features

  • Classless (almost). Works out of the box with HTML markup.
  • Simple set of classes with added functionality.
  • Customizable and extensible through SCSS variables and mixins.
  • Ultra lightweight and simple flexbox grid

Quick Start

Option 1 (recommended)

Install from NPM and import with a bundler.

npm install perestroika-css
import 'perestroika-css';

or import the SCSS to customize it.

// Customize variables before import
$primary-color: #7d7;

// Import Perestroika-CSS
@import '~perestroika-css/scss/main.scss';

// Extend or create new components
button.is-alert { @include btn-color(#f65, #fff); }

If using SCSS remember to add postcss autoprefixer to your build!

Option 2

Load from CDN. This option loads raw compiled CSS that cannot be customized.

<link rel="stylesheet" href="https://unpkg.com/perestroika-css" />

Customization

A small collection of SCSS variables is available to customize the final look of the styling. Just override variables before importing the package.

A small collection of SCSS mixins is available as well to extend new components reducing the amount of code to write.

Contribution

This is a personal project I started to improve SCSS skills, as well as learning about the NPM module pipeline and Github actions. There probably are many many bugs to be fixed. Contributions are welcome. Fill an issue report or create a pull request. Thanks!

Readme

Keywords

Package Sidebar

Install

npm i perestroika-css

Weekly Downloads

1

Version

1.2.1

License

MIT

Unpacked Size

127 kB

Total Files

22

Last publish

Collaborators

  • markusand