gitbook icon indicating copy to clipboard operation
gitbook copied to clipboard

Global CSS for all outputs - possible?

Open bronestly opened this issue 10 years ago • 0 comments

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:

  1. Create a new CSS file in /styles/ folder with a random name, e.g. global.ss

  2. Add at the top of every CSS output file (pdf.css, website.css, etc...) following line:

    @import url('global.css');

  3. Add your global CSS styles to global.css which will then be applied to all output formats

bronestly avatar Apr 22 '16 12:04 bronestly