This command line tool allows you to quickly create css variables for themes
MIT License
This command line tool allows you to quickly create css variables for themes
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 });
Generator-css-variables is released under the MIT License.