masakudamatsu / line-height-picker

A front-end web app that helps web designers/developers pick the best line-height value for their websites
https://line-height-picker.vercel.app
MIT License
2 stars 1 forks source link
css typography

landing page screenshot

Line-height Picker

A front-end web app that helps web designers / developers pick the best line-height value for their websites

URL

https://line-height-picker.vercel.app, where you will find more detail about the app (motivation, how to use, etc.).

Features

In essence, Line-height Picker converts three user inputs

into the CSS values of

In addition, the app uses these CSS values to render two paragraphs excerpted from Steve Jobs's famous speech in the user-selected font. This way, the user can check whether they are happy with the result. preview page screenshot

JS libraries used

Web APIs used

How the app works

Step 1

Step 2

Step 3

Step 4

Step 5

After page reloads

Styling

Known issues

Contributing

Pull requests are welcome.

Setting up local environment

Requirements: Node.js (and NPM which comes with it).

To install:

$ git clone https://github.com/masakudamatsu/line-height-picker.git
$ cd line-height-picker
$ npm install

To start server:

$ npm start

Testing

The following testing tools are used:

To run e2e tests with Cypress and cypress-image-snapshot:

$ npx cypress run

To run component tests with Testing-Library and Jest:

$ npm test

Contact

Line-height Picker is developed by Masa Kudamatsu. You can find me on Twitter (@masa_kudamatsu). Alternatively, email me at masakudamatsu[at]gmail.com

License

License: MIT