New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-palette

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-palette

PostCSS plugin for colors management using external palettes

0.0.0
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

PostCSS Palette Build Status

PostCSS plugin for colors management using external palettes.

Example

/* palette.js */

module.exports = {
    red: '#fa1200',
    green: '#1f0',
    blue: 'rgb(0, 42, 240)'
}
var palette = require('postcss-palette');

postcss([ palette({ palette: require('/path/to/palette') }) ]);
.foo {
    background-color: red;
    color: green;
    text-shadow: 0 0 5px blue;
    box-shadow: 0 0 5px blue;
    border-color: green;
}
.foo {
    background-color: #fa1200;
    color: #1f0;
    text-shadow: 0 0 5px rgb(0, 42, 240);
    box-shadow: 0 0 5px rgb(0, 42, 240);
    border-color: #1f0;
}

Usage

postcss([ require('postcss-palette') ])

See PostCSS docs for examples for your environment.

Keywords

postcss

FAQs

Package last updated on 06 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts