generator-koa-theme
v0.13.1
Published
Scaffold out a King of App theme
Downloads
179
Keywords
Readme
generator-koa-theme
Scaffold out a King of App theme.
Install
- If you haven't, install Yeoman and Bower:
npm install -g bowernpm install -g yo- Then, install the generator-koa-theme:
npm install -g generator-koa-themeGetting started
- Download and start the King of App visualizer.
git clone -b dev [email protected]:KingofApp/com.kingofapp.visualizer.gitcd com.kingofapp.visualizernpm start- Go to themes path and create a new theme with the generator.
cd com.kingofapp.visualizer/app/themesyo koa-theme mythemenameNote: mythemename will be the ID of the theme.
Now, you have a scaffold like this:
koapp-theme-mythemename
├── elements
│ ├── mythemename-badge
│ │ ├── demo
│ │ │ └── index.html
│ │ └── mythemename-badge.html
│ ├── ...
│
├── styles
│ ├── default-theme.html
│ └── main.css
├── .bowerrc
├── .gitignore
├── bower.json
├── config.json
└── koapp-theme-mythemename.html- Update the
themeobject in theapp/core/structure.json:
{
"config": {
...
"theme": {
"identifier": "koapp-theme-mythemename",
"path": "themes/koapp-theme-mythemename/koapp-theme-mythemename.html"
},
...
},
...
}- Begins to change all elements as you want!
You can see the changes:
- In the visualizer app:
http://localhost:9001 - In each element demo. Example:
http://localhost:9001/themes/koapp-theme-mythemename/elements/mythemename-button/demo/
