medium.css

Compact typography for the web

  • Owner: lucagez/medium.css
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

medium.css ✍

a minimal set of typography devoted to Medium.com

Installation

npm install --save medium.css

If you are not using a bundler download the file medium.css and link it in your html

Demo

live:
https://codepen.io/lucagez/full/bQObBe/

If you want to run the demo locally just clone the repo and run npm install and then npm start inside /demo directory

Why

I found myself always struggling for for a basic set of rules to make a decent reading experience. I find this minimal boilerplate useful for bootstrapping a project with a typography created learning from the best: Medium.com.

Usage

This stylesheet is meant to be only a starting point. So it covers only the basics html elements.
The elements covered are:

  • h1
  • h2
  • p
  • a
  • i
  • mark
  • blockquote
  • code

There are three custom classes:

  • .highlighted, highlights text setting background-color
  • .first-letter, a big first letter that spans two lines
  • .subtitle, for subtitles

Fonts used

The Google fonts I found that best mimics the feeling of Medium.com reading experience:

  • Content font: Lora, serif
  • UI font: Montserrat, sans-serif
  • Brand font: Playfair Display, serif

Contributing

All PRs are welcomed! If you have some ideas on how to extend this stylesheet don't hesitate ?

License

MIT

Main metrics

Overview
Name With Ownerlucagez/medium.css
Primary LanguageCSS
Program languageCSS (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2018-11-26 17:01:54
Pushed At2018-12-19 23:12:03
Last Commit At2018-12-14 10:53:28
Release Count0
用户参与
Stargazers Count643
Watchers Count9
Fork Count52
Commits Count25
Has Issues Enabled
Issues Count2
Issue Open Count1
Pull Requests Count1
Pull Requests Open Count1
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private