How to use the themer.js function in themer

To help you get started, we’ve selected a few themer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github krestaino / themer.js / demo / src / index.js View on Github external
componentDidMount() {
    this.themer = new Themer({
      debug: true,
      onUpdate: theme => this.setState({ active: theme }),
      themes: {
        light,
        dark,
        auto,
        system,
        custom
      }
    });
    this.themer.set(this.state.selected);
  }
github krestaino / themer.js / examples / vue / src / App.vue View on Github external
mounted() {
    this.themer = new Themer({
      debug: true,
      onUpdate: theme => (this.active = theme),
      themes: { light, dark, auto, system, custom }
    });
    this.themer.set(this.selected);
  }
};
github krestaino / themer.js / examples / react / src / App.js View on Github external
componentDidMount() {
    this.themer = new Themer({
      debug: true,
      onUpdate: theme => this.setState({ active: theme }),
      themes: { light, dark, auto, system, custom }
    });
    this.themer.set(this.state.selected);
  }

themer

Customizable theme generator for editors, terminals, wallpaper, and more.

MIT
Latest version published 5 months ago

Package Health Score

70 / 100
Full package analysis