Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

simplystack/modulist-css

Repository files navigation

Modulist CSS

The Modulist is a CSS design system. See documentation.

Install

$ npm install --save @modulist/css

Usage

import in your js:

import "@modulist/css/dist/modulist.css";

In browser

<link rel="stylesheet" href="https://unpkg.com/@modulist/css">

Development

The included source files are written in CSS but needed to be compiled using postcss.

Create postcss.config.js in root folder:

module.exports = {
  plugins: [
    require('autoprefixer'),
    require('postcss-import'),
    require('postcss-nested'),
    require('postcss-preset-env')({
      features: {
        'custom-media-queries': true,
        'custom-properties': false,
      },
    }),
    require('cssnano')({ preset: 'default' }),
  ]
};

import in your js:

import "@modulist/css/main.css";

License

MIT