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 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'); |
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 link
command is your friend:example-theme
)npm link
npm link example-theme
You 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 install
from a github repo, it doesn't need to be published as an NPM module. You can donpm install http://github.com/username/repo
and it will pull it in from there (provided there is a valid package.json file present).