How to use postcss-css-variables - 2 common examples

To help you get started, we’ve selected a few postcss-css-variables examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MadLittleMods / postcss-css-variables / playground / src / js / stores / PlaygroundStore.js View on Github external
function updateProcessor(settings) {
	settings = settings || {};

	playgroundProcessor = postcss()
		.use(cssvariables(settings.get('postcss-css-variables').toObject()));

	// Whenever the plugin option updates,
	// we need to update the output
	updateOutput();
}
github MadLittleMods / postcss-css-variables / playground / src / js / stores / PlaygroundStore.js View on Github external
import events from 'events';
let EventEmitter = events.EventEmitter;


import postcss from 'postcss';
import cssvariables from 'postcss-css-variables';


let CHANGE_EVENT = 'CHANGE_EVENT';



let keyboardActionStream = assign({}, EventEmitter.prototype);

let playgroundProcessor = postcss()
	.use(cssvariables());

let postcssUnprocessedInputText = '';
let processingResult = Immutable.Map({
	input: '',
	output: '',
	error: null
});


let PlaygroundStore = assign({}, EventEmitter.prototype, {

	getKeyboardActionStream: function() {
		return keyboardActionStream;
	},

postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation

MIT
Latest version published 1 year ago

Package Health Score

62 / 100
Full package analysis

Popular postcss-css-variables functions