cupper icon indicating copy to clipboard operation
cupper copied to clipboard

Override the Cupper theme stylesheet

Open rikschennink opened this issue 6 years ago • 3 comments

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.

rikschennink avatar Nov 13 '17 18:11 rikschennink

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

Heydon avatar Nov 23 '17 13:11 Heydon

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

Heydon avatar Nov 23 '17 14:11 Heydon

@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).

rikschennink avatar Nov 23 '17 14:11 rikschennink