themeizer-cli

0.3.4 • Public • Published

Themeizer CLI

A cli tool to automatically replace published colors (as well as linear and radial gradients) in style files with a css variable

Themeizer ecosystem helper package.

Features

Automatic replacement of all colors, as well as linear and radial gradients.

Support: css, sass, scss, styl.

Installation

$ npm install themeizer-cli -g

Options

'--help', '-h' {Boolean} - help
'--config', '-c' {String} - configuration file path
'--url', '-u' {String} - url to load and read colors
'--headers', '-h' {String} - necessary headers for getting colors
'--theme', '-t' {String} - a theme from which to check and replace colors

Usage

  1. By specifying the path to the configuration file to the utility:
// themeizer.config.json
{
    "url":"https://example.com/api/themes",
    "headers":{
        "token":"example-token"
    },
    "theme": "light"
}
themeizer-cli -c ./themeizer.config.json
  1. By specifying parameters via options:
themeizer-cli -u "https://example.com/api/themes" -t "light" -h {"token":"example-token"}

Themeizer ecosystem

  • Figma plugin "Themeizer" - plugin for changing themes in design and publishing them in the cloud;
  • themeizer - package for embedding themes from "Themeizer" Figma plugin at the server level or at build stage;
  • next-themeizer - package for adding "Themeizer" ecosystem interaction configuration to your next.js application;
  • themeizer-cli - a package to automatically replace published colors (as well as linear and radial gradients) in style files with a css variable;
  • stylelint-themeizer - stylelint plugin for "Themeizer" ecosystem.

License

MIT

Package Sidebar

Install

npm i themeizer-cli

Weekly Downloads

2

Version

0.3.4

License

MIT

Unpacked Size

16.3 kB

Total Files

25

Last publish

Collaborators

  • vordgi