Skip to content

Latest commit

 

History

History

theme-gutenberg

README.md

Vivliostyle Theme Gutenberg

npm: version npm: total downloads npm: license

book theme for latin font

Use

In vivliostyle.config.js:

module.exports = {
  theme: 'vivliostyle-theme-gutenberg',
};

theme-gutenberg also provides some extra theme files derived from the basic theme.

Screenshot of theme-gutenberg example (alice.css)

module.exports = {
  theme: {
    specifier: 'vivliostyle-theme-gutenberg',
    import: 'alice.css',
  },
};

Screenshot of theme-gutenberg example (fang.css)

module.exports = {
  theme: {
    specifier: 'vivliostyle-theme-gutenberg',
    import: 'fang.css',
  },
};

Screenshot of theme-gutenberg example (sherlock.css)

module.exports = {
  theme: {
    specifier: 'vivliostyle-theme-gutenberg',
    import: 'sherlock.css',
  },
};

Available theme CSS variables

:root {
  /**
   *  Styles for drop caps
   */
  --vs-theme-gutenberg--dropcap-font-size: 1.8em;
  --vs-theme-gutenberg--dropcap-font-weight: var(--vs-font-weight-bold);
  --vs-theme-gutenberg--dropcap-line-height: 1;
  --vs-theme-gutenberg--dropcap-text-indent: 0;
}

The running head and the page number use the page variables of the base theme: the publication title sits at the top center and the page number at the outer bottom corner.

:root {
  --vs-page--mbox-top-center-content: env(pub-title);
  --vs-page--mbox-bottom-outside-content: counter(page);
  --vs-page--mbox-text-color: gray;
}

License

CC0 1.0

Original author: Vivliostyle project team