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

japanese-fonts-css

v0.3.0

Published

The CSS definitions for Japanese device/web fonts

Readme

japanese-fonts.css

The CSS configurations for Japanese device/web fonts.

Installation

NPM

$ npm i -S japanese-fonts-css
# Recommend you to use along with PostCSS and postcss-import
$ npm i -D postcss postcss-import

Then, import on your CSS file.

@import 'japanese-fonts-css';

Download

  1. Just click [Download ZIP] button or git clone https://github.com/seamile4kairi/japanese-fonts-css.git.
  2. Import or load the minimized CSS file:
/* from CSS */
@import 'dist/japanese-fonts.min.css';
<!-- from HTML -->
<link rel="stylesheet" href="dist/japanese-fonts.min.css" charset="utf-8">

Usage

Use with CSS Custom Properties

.sans-serif {
  font-family: var(--jp-sans-serif);
  ...
}

.serif {
  font-family: var(--jp-serif);
  ...
}

.monospace {
  font-family: var(--jp-monospace);
  ...
}

Or you can also redifne custom properties as you like:

:root {
  --custom-sans-serif: var(--font-apple-sans),
                       var(--font-ms-sans),
                       'MS Pゴシック',
                       sans-serif;
}

.hoge {
  font-family: var(--custom-sans-serif);
}

Reserved Custom Properties

  • var(--jp-sans-serif): sans-serif / ゴシック体
    • var(--font-system): Fonts defined by OS (= San Francisco on Apple's devices)
    • var(--font-sf-text): San Francisco - Text
    • var(--font-yu-gothic): 游ゴシック (YuGothic)
    • var(--font-apple-sans): Helvetica Neue, ヒラギノ角ゴ (Hiragino Kaku Gothic)
    • var(--font-google-sans): Roboto, Noto Sans Japanese
    • NOT INCLUDED FONT-SETS
      • var(--font-sf-display): San Francisco - Display
      • var(--font-ms-sans): メイリオ (Meiryo)
  • var(--jp-serif): serif / 明朝体
    • var(--font-yu-mincho): 游明朝 (YuMincho)
    • var(--font-apple-serif): Garamond, ヒラギノ明朝 (Hiragino Mincho)
    • var(--font-google-serif): さわらび明朝
  • var(--jp-monospace): monospace / 等幅
    • var(--font-apple-mono): Monaco, Osaka-Mono
    • var(--font-google-mono): Noto Sans Mono Japanese
    • NOT INCLUDED FONT-SETS:
      • var(--font-ms-mono): MSゴシック (MS Gothic)

cf. About Custom Properties

Use with class or [data-jp-fonts] attribute

<!-- Define with CSS class -->
<p class="jp-font--sans-serif">sans-serif / ゴシック体を指定</p>
<p class="jp-font--serif">serif / 明朝体を指定</p>
<p class="jp-font--monospace">monospace / 等幅フォントを指定</p>

<!-- Define with [data-jp-font] attribute -->
<p data-jp-font="sans-serif">sans-serif / ゴシック体を指定</p>
<p data-jp-font="serif">serif / 明朝体を指定</p>
<p data-jp-font="monospace">monospace / 等幅フォントを指定</p>

License

MIT