GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - readium/css: ๐ŸŒˆ A set of reference stylesheets for EPUB Reading Systems, starting with Readium Mobile

BranchesTags
Open more actions menu

Latest commit

 

History

883 Commits
883 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
_includes
_includes
 
 
css
css
 
 
docs
docs
 
 
scripts
scripts
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
contributing.md
contributing.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
playwright.config.js
playwright.config.js
 
 
server.js
server.js
 
 

Repository files navigation

Readium CSS

Readium Logo

A set of reference stylesheets for EPUB Reading Systems.

Readium CSS provides styles for reflowable text:

  • paged and scrolled views;
  • a โ€œpatchโ€ for HTML5 Suggested Rendering specific to publications (e.g. extra styles for hyphenation, breaks, etc.);
  • default styles for unstyled ebooks;
  • theming;
  • user settings;
  • a set of baselines and recommendations for accessibility, overrides, and internationalization.

License

BSD-3-Clause (http://opensource.org/licenses/BSD-3-Clause)

See license.txt.

Scope of this project

The primary goal of Readium CSS is to provide Reading System implementers with reliable and modern styles for reflowable EPUB 2 and EPUB 3 files. In addition, it should provide good interoperability in the existing ecosystem, while not overriding authorsโ€™ styles unless strictly necessary.

Readium CSS stylesheets were not designed and should not be used for fixed-layout EPUB, nor other file formats like FB2, PRC, Mobi, TEI, etc.

Some issues, which may be raised during development, will be documented so that they can serve as a reference for revisions of the EPUB specification, and even future specifications.

Implementations

Readium CSS is implemented in the Readium Mobile and Readium Web projects.

You will find it in:

  • ts-toolkit
  • swift-toolkit
  • kotlin-toolkit

External use include:

  • Thorium Desktop
  • Thorium Web
  • Zotero
  • Vital Source

Development

Active development is pulled in branch develop.

Init

Building and testing are relying on npm packages and scripts. To initialize your clone/fork, first install dev dependencies:

npm install

Then install the Playwright browser binary and generate reference screenshots for visual regression testing:

npx playwright install chromium
npm run test:update

Build

To transpile all stylesheets using PostCSS:

npm run build

To test the updated styles and catch visual regression bugs:

npm run test

To update reference screenshots after an intentional change:

npm run test:update

Docs

Documentation can be accessed in docs.

You can alternatively download it as an EPUB file.

About

๐ŸŒˆ A set of reference stylesheets for EPUB Reading Systems, starting with Readium Mobile

readium.org/css/

Topics

cssebook-readerepubepub-readerepub3readium

Resources

Readme
BSD-3-Clause license

Contributing

Contributing
Activity
Custom properties

Stars

127 stars

Watchers

18 watching

Forks

23 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.