@vivliostyle/theme-techbook

1.0.1 • Public • Published

Techbook

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

Package Sidebar

Install

npm i @vivliostyle/theme-techbook

Weekly Downloads

18

Version

1.0.1

License

CC0-1.0

Unpacked Size

16.5 kB

Total Files

8

Last publish

Collaborators

  • mshinyu
  • uetchy
  • akabeko
  • youchan
  • spring-raining
  • johanneswilm
  • yamasy1549