1.0.1 • Published 3 months ago

@vivliostyle/theme-techbook v1.0.1

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

Techbook

npm.io npm: total downloads npm: license

A techbook (技術同人誌) theme for Vivliostyle.

Source: https://github.com/akabekobeko/env-create-book/tree/master/src/scss

Use

In vivliostyle.config.js:

module.exports = {
  theme: '@vivliostyle/theme-techbook',
};

Color theme of code blocks

This theme imports theme-okaidia as a default color theme of code blocks. If you want to use other themes, please import the CSS like this.

module.exports = {
  theme: [
    '@vivliostyle/theme-techbook',
    {
      specifier: '@vivliostyle/theme-base',
      import: 'css/lib/prism/theme-prism.css',
    },
  ],
};

Available theme CSS variables

:root {
  --vs-theme--anchor-color-body: #3498db;
  --vs-theme--blockquote-color-bg: #ecf0f1;
  --vs-theme--blockquote-color-body: #34495e;
  --vs-theme--inline-code-color-bg: #ecf0f1;
  --vs-theme--inline-code-color-body: #34495e;
  --vs-theme--footnote-color-bg-on-screen: #e6f6d7;
  --vs-theme--crossref-anchor-color-bg-on-screen: rgba(255, 0, 0, 0.3);
  --vs-theme--crossref-anchor-color-body-on-screen: #e74c3c;
  /**
   *  Displaying image resolution of raster images
   */
  --vs-theme--image-resolution-for-figure-image: 300dpi;
  /**
   *  Styles for page top/bottom contents
   */
  --vs-theme--page-top-left-content: env(pub-title);
  --vs-theme--page-top-right-content: env(doc-title);
  --vs-theme--page-bottom-content: counter(page);
}

License

CC0 1.0

1.0.1

3 months ago

1.0.0

9 months ago

1.0.0-beta.1

1 year ago

0.4.1

2 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

4 years ago

0.1.0

4 years ago