Extend website and ebook style

You can extend css used in the ebooks and the website by creating files in the styles directory:

Type File
website styles/website.css
pdf styles/pdf.css
epub styles/epub.css
mobi styles/mobi.css
pdf, epub, mobi styles/ebook.css

These paths can be changed in the book.json configuration, for example to use file in the root folder:

  1. {
  2. "styles": {
  3. "website": "styles/website.css",
  4. "ebook": "styles/ebook.css",
  5. "pdf": "styles/pdf.css",
  6. "mobi": "styles/mobi.css",
  7. "epub": "styles/epub.css"
  8. }
  9. }

Using a CSS pre-processor

There are plugins that make it easy to use a CSS pre-processor: