1.0.5 • Published 6 years ago

hydrogencss v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

hydrogen.css

Atomic CSS for CSS Modules

npm

Installation

NPM

npm i -S hydrogencss

Yarn

yarn add hydrogencss

Usage with CSS Modules

There are two ways to compose with each value. The first:

.container {
  composes: <value> from 'hydrogencss/<property>.css';
}

With this way you will be importing all the classes within <property>.css, unless you are clearing up the unused CSS.

The alternate way to import is

.container {
  composes: <value> from 'hydrogencss/<property>/<value>.css';
}

Example:

.container {
  composes: flex from 'hydrogencss/display/flex.css';
}

Which will just include:

.flex { display: flex; }

To see all the properties and values available please check the docs folder.

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago