Socket
Book a DemoInstallSign in
Socket

medium.css

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

medium.css

a minimal set of typography devoted to Medium.com

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

Typo.css ✍

a minimal set of typography devoted to Medium.com

Installation

npm install --save typo.css

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

Demo

link to codepen

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
  • 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

FAQs

Package last updated on 29 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.