generator-css-variables
v1.1.1
Published
<p align="center"> <img src="./assets/logo.jpg" alt="generator-css-variables logo" width="375" height="168"> <h1 align="center">Generator-css-variables</h1> </p> <p align="center"> <a aria-label="NPM version" href="https://www.npmjs.com/package/ge
Downloads
2
Readme
This command line tool allows you to quickly create css variables for themes
Getting Started
To get started, use the following code:
const light = {
name: 'light',
'font-family': 'PT Sans, sans-serif',
'font-size': '16px',
'font-weight': 400,
};
const dark = {
name: 'light',
'font-family': 'PT Sans, sans-serif',
'font-size': '16px',
'font-weight': 400,
};
export default [light, dark];
import themes from './config/index.mjs';
import generator from 'generator-css-variables';
generator.default(themes, { path: 'src/themes/', pretty: true });
License
Generator-css-variables is released under the MIT License.