jupyter-book / jupyter-book

Create beautiful, publication-quality books and documents from computational content.
http://jupyterbook.org
BSD 3-Clause "New" or "Revised" License
3.86k stars 661 forks source link

Ability to change the font and the color theme #707

Open vincmazet opened 4 years ago

vincmazet commented 4 years ago

Is your feature request related to a problem? Please describe. I think it would be very interesting for a reader to have the ability to choose the font and theme color for his/her book.

Solution & Alternative The 'A' icon in the topbar of books written with Bookdown (eg https://csgillespie.github.io/efficientR/) allows to:

A clear and concise description of any alternative solutions or features you've considered In addition, I find that grouping the tools of a book (toggle sidebar, search, font properties, repository...) is more elegant with Bookdown than with JupyterBook.

choldgraf commented 4 years ago

Thanks for the suggestions! I think your first two points are things we should include somehow (for "size / type of font" as well as "color theme").

Since those are well-scoped, can you re-work the title of the issue to be specifically about those two things?

MasterScrat commented 4 years ago

The addition of a night theme in this way would be amazing! More and more sites are offering this feature, which makes the leftover sites even more painful on the eyes 😧

choldgraf commented 4 years ago

Agreed! I'm happy to review any PRs that give a shot at this!

One option we could explore is to start by allowing the "night theme" for code cells only at first. This could be a much more tractable and straightforward problem to solve than doing it for the whole site.

jstac commented 4 years ago

CC @drdrij --- worth considering?

Radhika677 commented 1 year ago

I wish to develop a stylesheet (cover page) for my latex document with a Title (colour Dark Green) and Author names (colour golden) and background colour as Green. I'm developing this in JupyterBook and building it by the following command: Jupyter-book build bookname --/builder pdflatex. Following is my _config.yml file:

title: /color{black!60!Green!70!blue} Digital Services author: Radhika Saraf logo: logo.png

Can anybody please help me to override the sphinx/jupyterbook configuration to get colours for author name and a background colour/background image?

Could you please help me with this? I'll be really grateful. Thanks!

agoose77 commented 1 year ago

@Radhika677 given that you've already opened a Discussion, please don't cross-post between topics as it creates more work for people! :)

Radhika677 commented 1 year ago

so sorry about this! I'll definitely keep that in mind going forward. Thanks for your response :)