Skip to main content

Usage

You can invoke theemo via CLI or API.

CLI

Three commands for each action:

Usage: theemo [options] [command]

Options:
-V, --version output the version number
-h, --help display help for command

Commands:
sync sync from your source into your token manager tool
generate generates an adaptive CSS theme file
help [command] display help for command

API

Here is how to execute all tasks in order. Config is being picked up from cwd().

import Theemo from 'theemo';
import config from './config';

const theemo = new Theemo(config);

theemo.sync();
theemo.generate();

Consult API reference for sync() and generate()