Generator-css-variables
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.