Socket
Socket
Sign inDemoInstall

@typehaus/metropolis

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @typehaus/metropolis

Modern, geometric typeface. Designed by Chris M. Simpson, updated and maintained by @typehaus.


Version published
Weekly downloads
1.7K
decreased by-18.68%
Maintainers
1
Install size
1.29 MB
Created
Weekly downloads
 

Readme

Source

Metropolis from TypeHaus


Getting Started

Metropolis has just been published by typehaus on the NPM registry! While still in experimental stages, this makes it easier than ever to include it in your projects.


1. Install

pnpm add @typehaus/metropolis

Don't have PNPM? Click here to find out why you should dump NPM.


2. Import

The following methods work in most of the popular frontend frameworks.


You can just import the whole family, if you're into that sort of thing:

import '@typehaus/metropolis'

You can also import individual weights (recommended). Both the normal and italic style are included in each weight, and (for compatibility) both the keyword or numeric filename work just fine.

100 · Thin
import '@typehaus/metropolis/thin.css'
import '@typehaus/metropolis/100.css'
200 · ExtraLight
import '@typehaus/metropolis/extralight.css'
import '@typehaus/metropolis/xlight.css'
import '@typehaus/metropolis/200.css'
300 · Light
import '@typehaus/metropolis/light.css'
import '@typehaus/metropolis/300.css'
400 · Regular
import '@typehaus/metropolis/regular.css'
import '@typehaus/metropolis/book.css'
import '@typehaus/metropolis/400.css'
500 · Medium
import '@typehaus/metropolis/medium.css'
import '@typehaus/metropolis/500.css'
600 · SemiBold
import '@typehaus/metropolis/semibold.css'
import '@typehaus/metropolis/600.css'
700 · Bold
import '@typehaus/metropolis/bold.css'
import '@typehaus/metropolis/700.css'
800 · ExtraBold
import '@typehaus/metropolis/extrabold.css'
import '@typehaus/metropolis/xbold.css'
import '@typehaus/metropolis/800.css'
900 · Black
import '@typehaus/metropolis/black..css'
import '@typehaus/metropolis/900.css'

3. Implement

Now you just need to add it to your actual CSS!

With some backups, so nobody is stuck with Times New Roman:

html, body {
  font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Open Sans', 'Helvetica Neue', sans-serif;
}

Specimens

Metropolis

Metropolis


The Unlicense

Contributions welcome.

Keywords

FAQs

Last updated on 13 Apr 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc