generator-koa-theme v0.13.1
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 yoThen, install the generator-koa-theme:
npm install -g generator-koa-theme
Getting started
Download and start the King of App visualizer.
git clone -b dev git@github.com:KingofApp/com.kingofapp.visualizer.gitcd com.kingofapp.visualizernpm startGo to themes path and create a new theme with the generator.
cd com.kingofapp.visualizer/app/themesyo koa-theme mythemenameNote:
mythemenamewill 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.htmlUpdate 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/
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago