postcss-simple-include

0.1.0 • Public • Published

This is a rough proof of concept for a simple implementation of includes without using mixins. The basic functionality works, but not recommended for production use yet.

Usage

This input:

.colors {
    background-color: white;
    color: black;
}

.padding {
    padding: 1rem 0;
}

main {
    @include .colors;
    @include .padding;
}

Will generate into:

.colors {
    background-color: white;
    color: black;
}

.padding {
    padding: 1rem 0;
}

main {
    background-color: white;
    color: black;
    padding: 1rem 0;
}

This syntax is supported too:

main {
    @include .colors, .padding;
} 

License

MIT.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i postcss-simple-include

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • savelbr