medium.css

Compact typography for the web

  • 所有者: lucagez/medium.css
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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

主要指標

概覽
名稱與所有者lucagez/medium.css
主編程語言CSS
編程語言CSS (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2018-11-26 17:01:54
推送於2018-12-19 23:12:03
最后一次提交2018-12-14 10:53:28
發布數0
用户参与
星數643
關注者數9
派生數52
提交數25
已啟用問題?
問題數2
打開的問題數1
拉請求數1
打開的拉請求數1
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?