npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@entur/typography

v2.1.7

Published

Entur's official font is Nationale and is created by Playtype Foundry, located in Copenhagen. The font is protected under licence and shall only be used in official Entur products. By downloading this font you confirm that you are employed by Entur and th

Downloads

42,506

Readme

Typography

Read before use

Entur's official font is Nationale and is created by Playtype Foundry, located in Copenhagen. The font is protected under licence and shall only be used in official Entur products. By downloading this font you confirm that you are employed by Entur and that the font only will be used in developing official Entur products. All other uses will be regarded as a violation to the licence agreement and to Entur's brand, and legal actions may be filed.

This package contains styles and React components for all of our typography.

💡 Looking for the documentation? Looking for the beta documentation?

Installation

npm install @entur/typography
# or
yarn add @entur/typography

🚀 Quick Start

Using Stable Typography (Recommended for Production)

import { Heading1, Paragraph, Link } from '@entur/typography';
import '@entur/typography/styles';

function MyComponent() {
  return (
    <div>
      <Heading1>My Title</Heading1>
      <Paragraph>My content</Paragraph>
      <Link href="/more">Learn more</Link>
    </div>
  );
}

Using Beta Typography (Experimental Features)

import { Heading, Text, LinkBeta } from '@entur/typography/beta';
import '@entur/typography/styles';

function MyComponent() {
  return (
    <div>
      <Heading as="h1" variant="title-1">
        My Title
      </Heading>
      <Text variant="paragraph">My content</Text>
      <LinkBeta href="/more">Learn more</LinkBeta>
    </div>
  );
}

🔄 Migration

Good news! This package maintains full backward compatibility. All existing import patterns continue to work exactly as before.

Backward Compatibility

// ✅ All these still work exactly as before
import { Heading1 } from '@entur/typography/dist/Heading1';
import { Paragraph } from '@entur/typography/dist/Paragraph';
import '@entur/typography/dist/styles.css';

Modern Imports (Recommended)

// 🚀 But these are now preferred
import { Heading1, Paragraph } from '@entur/typography';
import '@entur/typography/styles';

Migrating from legacy typography? We've created a comprehensive migration package to help you transition smoothly. Follow our migration guide in our website.

  • 🔧 Migration Helpers - Drop-in replacements for legacy components
  • 🤖 Migration Script - Automated migration tool

Quick Migration

# Option 1: Using npx (recommended)
npx @entur/typography@latest migrate

# Option 2: With specific options
npx @entur/typography@latest migrate --dry-run


# Option 3: From installed package
npm install @entur/typography@latest
npx @entur/typography@latest migrate

# Option 4: Add to your package.json scripts
# "scripts": { "migrate-typography": "npx @entur/typography@latest migrate" }
# Then run: npm run migrate-typography -- --dry-run

Note: The migration script requires glob to be available. If you encounter an error, install it:

npm install glob
# or
yarn add glob

Migration Mode

  • 🚀 Complete Migration: Updates imports + component usage

Update Styles

// Replace this
@import '@entur/typography/dist/styles.css';

// With this
@import '@entur/typography/styles';

🎨 Features

Beta Typography

  • Semantic variants - Title, subtitle, section, paragraph, etc.
  • Size variants - Extra large, large, medium, small, extra small
  • Weight variants - Light, regular, medium, semibold, bold
  • Spacing options - Configurable margins and padding
  • Accessibility - Built-in ARIA support and semantic HTML

Legacy Typography

  • Individual components - Heading1-6, Paragraph, Link, etc.
  • Simple API - Easy to use with minimal configuration
  • Backward compatibility - Existing code continues to work

Licenses

  • Source code is licensed under European Union Public License, version 1.2 (EUPL-1.2)
  • The fonts are licensed separately, and all use should follow its licence.