Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Theme Logic #60

Open
adrifolio opened this issue May 31, 2017 · 0 comments
Open

Setup Theme Logic #60

adrifolio opened this issue May 31, 2017 · 0 comments

Comments

@adrifolio
Copy link
Contributor

adrifolio commented May 31, 2017

Simplify the way themes are structured by:

  • Including the theme as part of the files that are copied during the installation vs the npm module.
  • Using a template system similar to Wordpress, where only one file is required (index.mustache) and then letting the user add additional ones to customize the appearance. The file hierarchy would be simple:
index.mustache
 └─home.mustache
 └─navigation.mustache
 └─sidebar.mustache
 └─content.mustache
 └─footer.mustache

Guide

Creating a Theme

To create a theme for your living style guide, first locate the theme currently used. This will be in the themedirectory, under your styleguide folder (ex scr/styleguide/theme.)

Be default your theme will only contain an index.mustache.

Then under theme/static/styles, locate the stylesheet that you want to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant