2.0.0 • Published 7 months ago

@vivliostyle/theme-gutenberg v2.0.0

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
7 months ago

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.

alice.css

Screenshot of theme-gutenberg example (alice.css)

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

fang.css

Screenshot of theme-gutenberg example (fang.css)

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

sherlock.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--dropcap-font-size: 1.8em;
  --vs-theme--dropcap-font-weight: var(--vs-font-weight-bold);
  --vs-theme--dropcap-line-height: 1;
  --vs-theme--dropcap-text-indent: 0;
  /**
   *  Styles for page top/bottom contents
   */
  --vs-theme--page-top-content: env(pub-title);
  --vs-theme--page-top-color-body: gray;
  --vs-theme--page-bottom-content: counter(page);
}

License

CC0 1.0

Original author: Vivliostyle project team

2.0.0

7 months ago

1.0.1

1 year ago

1.0.0

2 years ago

1.0.0-beta.1

2 years ago

0.1.1

3 years ago

0.1.0

4 years ago