
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
a minimal set of typography devoted to Medium.com
npm install --save typo.css
If you are not using a bundler download the file typo.css
and link it in your html
link to codepen
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.
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 subtitlesThe Google fonts I found that best mimics the feeling of Medium.com reading experience:
Lora
, serifMontserrat
, sans-serifPlayfair Display
, serifAll PRs are welcomed! If you have some ideas on how to extend this stylesheet don't hesitate 😎
MIT
FAQs
a minimal set of typography devoted to Medium.com
The npm package medium.css receives a total of 2 weekly downloads. As such, medium.css popularity was classified as not popular.
We found that medium.css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.