Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Gitbook Themes

Does anyone know how to modify the look of a git book? I've seen 2 books that have a different look from the default: http://codac.co/ http://coalman.github.io/tott-gulpjs/book/

But can someone point me in the right direction of how to customize the look and/or build a custom theme for gitbook?

I can't seem to find any documentation on customizing a gitbook.

like image 822
FixMySync Avatar asked May 09 '14 15:05

FixMySync


People also ask

How do I make GitBook dark mode?

Light vs dark theme You can choose your interface colour scheme by going to preferences and then selecting light , dark or system preferences which will auto-adjust to your settings.

How do I change the color of a GitBook?

To change this color, click on the colored circle, select a new color or paste the HEX code.

How do I change my GitBook URL?

Log in to your domain registrar and find the section that allows you to add/edit host records, often found in a settings menu called 'Edit DNS', 'Host Records' or 'Zone File Control'. Set the www record to a CNAME and set the URL field to: www.gitbook.com .


2 Answers

If you are using the CLI Toolchain (as opposed to the online editor noted above), you need to create a directory called '/styles' in the root of your book then add a 'website.css' file to that directory.

Customize that website.css file to adjust the style of your gitbook.

'gitbook serve' or 'gitbook build' when done to view changes.

like image 64
SeaDude Avatar answered Oct 03 '22 16:10

SeaDude


If you are editing your gitbook online at gitbook.com, you can edit the stylesheets by selecting the down arrow in the far right of the toolbar: enter image description here

like image 26
danyamachine Avatar answered Oct 03 '22 17:10

danyamachine