Skip to content
zmmbreeze edited this page Dec 13, 2014 · 2 revisions

FIRST fork this repo and clone it like this:

git clone https://github.com/YOUR_GITHUB_USER_NAME/octocard.git

THEN create your own theme file into this path: PATH/octocard/my_theme_name.css. You can use less to build theme. Checkout the other files in themes path.

THEN use grunt to build your theme like this:

grunt theme

THEN create an http server and open the theme.html file. If you have python installed, do it like this:

  1. python -m SimpleHTTPServer
  2. Open http://127.0.0.1:8000/theme.html?theme=my_theme_name to view you own theme in action. (Please change my_theme_name into your theme name.)

AT LAST, if you finish your theme. Please PULL REQEUST, I will put your theme on octocard.in. Then you can use your theme like this:

<script
    data-name="your github username"
    data-theme="you_theme_name"
    src="http://octocard.in/o.js"></script>
Clone this wiki locally