npm.io
1.3.0 • Published 9 years ago

systema-constants-colors

Licence
Apache-2.0
Version
1.3.0
Deps
0
Vulns
0
Weekly
0

constants-colors

The Systema color palette. Whenever possible colors should be used from this package to keep the visual language consistent.

Installation

yarn add systema-constants-colors
import 'systema-base.css/base.css';

Usage in JavaScript

import { colorBlueBase } from 'systema-constants-colors';

console.log(colorBlueBase); // #35C3EF

Usage in CSS

Depending on what tool is processed the CSS should support preprocessing with variables.

postcss-simple-variables
// postcss.config.js
const simpleVars = require('postcss-simple-vars');
const colors = require('systema-constants-colors');

module.exports = {
  plugins: [
    simpleVars({
      variables: colors,
    }),
  ],
};
.someClass {
  background-color: $colorGreenDark;
}