gitbook
gitbook copied to clipboard
Global CSS for all outputs - possible?
Hey guys
Is there a way to add CSS styles which will automatically apply to all outputs, including the preview editor in GitBook?
//edit: Figured it out by myself.
Steps:
-
Create a new CSS file in /styles/ folder with a random name, e.g.
global.ss -
Add at the top of every CSS output file (pdf.css, website.css, etc...) following line:
@import url('global.css'); -
Add your global CSS styles to global.css which will then be applied to all output formats