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

Override the Cupper theme stylesheet #18

Open
rikschennink opened this issue Nov 13, 2017 · 3 comments
Open

Override the Cupper theme stylesheet #18

rikschennink opened this issue Nov 13, 2017 · 3 comments

Comments

@rikschennink
Copy link
Contributor

rikschennink commented Nov 13, 2017

Thanks for building Cupper, it's been a very neat documentation tool so far and it's nice to know that the docs will be accessible as well.

I wanted to add some color, but in order to do so, it seems I have to either duplicate the theme and modify it, or automatically merge the theme styles with my styles and add my styles to the static/css directory. The first solution would make it impossible to use the update feature. The second one is a bit cumbersome. It would be nice if I could simply add an additional stylesheet that overrides certain selectors in the Cupper theme stylesheet.

Adding a stylesheets param to the config would make it possible to add these custom override stylesheets. With a loop in the base template head we could then add those stylesheets to the page.

@Heydon
Copy link
Contributor

Heydon commented Nov 23, 2017

@rikschennink That's a nice idea. Will think on it.

@Heydon
Copy link
Contributor

Heydon commented Nov 23, 2017

@rikschennink Also... maybe a way to import libraries like React or jQuery?

@rikschennink
Copy link
Contributor Author

@Heydon I think that would certainly be useful for the inline demos as those might have dependencies.

It would also be nice to be able to specify a custom font and have it automatically loaded and made available (in a way that is not render blocking).

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

2 participants