0.1.0 • Published 3 years ago

readability-gadget v0.1.0

Weekly downloads
39
License
MIT
Repository
github
Last release
3 years ago

Readability Gadgets

Readability Navigation

Component for manage readability options like dark/light theming, font size, font family type, vertical spacing, column weight. Selection of one item emits a className you should set on a body or container in order to change and adapt your styles.

TODO

  1. Set settings state as parameter so could accept more or less options(e.g. without icons).
  2. Create a holder component or directive for manage events and change className.
  3. Create a set of basic styles for page or holder.
  4. Integration on frameworks.
  5. Shallow testing.

Getting Started

npm install
npm start

To run the unit tests for the components, run:

npm test

Implementation using vanilla JS

Follow ./index.html example.

Assets

https://fontawesome.com/

Follow ./index.html example. or use ./src/assets/fonts/ which are copy to dist folder.

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    font-display: block;
    src: url('./assets/fonts/fa-solid-900.eot');
    src: url('./assets/fonts/fa-solid-900.eot?#iefix') format('embedded-opentype'),
    url('./assets/fonts/fa-solid-900.woff2') format('woff2'),
    url('./assets/fonts/fa-solid-900.woff') format('woff'),
    url('./assets/fonts/fa-solid-900.ttf') format('truetype'),
    url('./assets/fonts/fa-solid-900.svg#fontawesome') format('svg');
}
0.1.0

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago