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

@rijkshuisstijl-community/font

v1.1.2

Published

Font assets

Readme

Rijkshuisstijl Community font

This is not the Rijkshuisstijl font, this is just a tribute.

— Tenacious B

Dit npm pakketje met fonts kun je gebruiken als alternatief op de officiële Rijkshuisstijl fonts, voor situaties waar je geen toestemming hebt om de officiële fonts te gebruiken.

  • Alternatief voor Rijkshuisstijl Web Sans: wij gebruiken Fira Sans als een alternatief voor Rijkshuisstijl Web Sans.
  • Alternatief voor Rijkshuisstijl Web Serif: er is nog geen goed alternatief gevonden voor Rijkshuisstijl Web Serif, daarom gebruiken we het sans-serif font Fira Sans ook als alternatief voor het serif font.

Downloaden

Designers kunnen de font Fira Sans downloaden via Fontsource.

Installatie

Installeer de font in Node.js projecten door het volgende commando in de terminal uit te voeren:

npm install -D @rijkshuisstijl-community/font

Gebruik in JavaScript frameworks zoals React en Angular de volgende code:

import '@rijkshuisstijl-community/font/src/index.mjs';

Gebruik in SCSS de volgende code:

@import '@rijkshuisstijl-community/font/src/index.scss';

In plain HTML heb je twee opties. Als je een CDN gebruikt, dan kun je de CSS zo importeren:

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@nl-design-system-candidate/code-block-css@1/dist/code-block.css"
/>

Gebruik je geen CDN, dan kun je de CSS uit node_modules/ importeren:

<link rel="stylesheet" href="node_modules/@nl-design-system-candidate/code-block-css/dist/code-block.css" />

Op zoek naar de officiële lettertypes?

De officiële lettertypes kun je downloaden via rijkshuisstijl.nl, als je voldoende rechten hebt. Bijvoorbeeld als je bij de Rijksoverheid werkt en je ingelogd bent via Citrix.

Fonts downloaden via de network tab van developer tools

Dat is niet de bedoeling. De officiële manier is om aan de font files te komen is via rijkshuisstijl.nl, via de eerdergenoemde link.

Fonts opslaan GitHub

Dat is niet de bedoeling. Als je de officiële fonts opslaat in een publieke GitHub repository, dan kun je e-mails verwachten met een vriendelijk doch dwingend verzoek om ze er weer te verwijderen.

De officiële lettertypes gebruiken

Heb je wel toestemming om de officiële lettertypes van rijkshuisstijl.nl te gebruiken? Dan kun je deze in je applicatie gebruiken! Hiervoor moet je een aantal stappen doorlopen. De implementatie van deze stappen kan verschillen op basis van je ontwikkelomgeving.

Stap 1

De font files beschikbaar maken binnen jouw applicatie. In Javascript frameworks doe je dit meestal door de bestanden toe te voegen aan de public/ map.

Stap 2

De custom fonts in de CSS registreren met de @font-face rule, bijvoorbeeld door dit toe te voegen aan index.css:

@font-face {
  font-family: 'RijksSans';
  src: url('/RijksSans.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSans';
  src: url('/RijksSans.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSans';
  src: url('/RijksSans.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSans';
  src: url('/RijksSans.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSansHead';
  src: url('/RijksSansHead.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSansHead';
  src: url('/RijksSansHead.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSansHead';
  src: url('/RijksSansHead.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RijksSansHead';
  src: url('/RijksSansHead.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

Stap 3

Tenslotte moet je de juiste font-family koppelen aan de CSS variabelen die componenten ook gebruiken. Dit kan je doen door een eigen thema te maken met behulp van custom tokens die met behulp van een build-stap de variabelen overschrijven. Of door de CSS variabelen handmatig in te stellen. Hier nog een voorbeeld van custom tokens:

{
  "rhc": {
    "font-family": {
      "primary": {
        "value": "Sans",
        "type": "fontFamilies"
      },
      "secondary": {
        "value": "RijksoverheidSerifWeb",
        "type": "fontFamilies"
      }
    }
  }
  ...
}