Last active
February 23, 2016 01:39
-
-
Save allmarkedup/f82113aa04bb39373925 to your computer and use it in GitHub Desktop.
Custom theme development in Fractal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const fractal = require('@frctl/fractal'); | |
| //.... other config items | |
| fractal.set('plugins.web.theme', 'example-theme'); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The theme needs to be NPM installed into your node_modules folder. If you are developing a theme locally, then the
npm linkcommand is your friend:example-theme)npm linknpm link example-themeYou can then edit your theme locally and the changes will show up in your fractal web UI.
Also, when not developing, note that you can
npm installfrom a github repo, it doesn't need to be published as an NPM module. You can donpm install http://github.com/username/repoand it will pull it in from there (provided there is a valid package.json file present).