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

diz-theme-minimalist

v0.2.4

Published

A Diz theme

Readme

Minimalist

Dix and React

A Diz theme. [demo]

XO code style Dependencies Status

Install

yarn add -D diz-theme-minimalist
npm i -D diz-theme-minimalist

Customize

Clone this.

git clone [email protected]:nju33/diz-theme-minimalist.git
# or git clone https://github.com/nju33/diz-theme-minimalist.git

To prepare the environment.

cd <cloned directory path>
<npm or yarn> install

Edit theme/**/*.jsx files.

Then read in config.js.

const CustomTheme = require('./path/to/custom-theme');

module.exports = {
  title: '...',
  url: '...',
  theme: {
    Renderer: CustomTheme,
    config: {base: '...'}
  }
}

:tada::clap::clap::clap::clap::clap:

Options

{
  theme: {
    Renderer: Minimalist
    config: {
      //* option
      // Specify the path to the scripts directory
      // (e.g.)
      // When the blog's URL is like this
      // http://example.com/foo/
      // It is good to specify `/foo`
      base: null // default

      //* option
      // Whether to output CSS directly to the style tag of head
      // If wanna use it with your CSS, set it to false
      inlineCSS: true // default
      //* option
      // When A is false,
      // specify the public path up to
      // the CSS that you made
      stylesheetPath: '/styles/index.css' // default

      //* option
      // Whether to make twemoji available
      twemoji: false // default

      //* option
      // <html lang={lang}>
      lang: null // default
    }
  }
}

Tips

Import CSS of this theme to your CSS.

PostCSS

Let's install 2 packages

yarn add -D postcss postcss-import

Setup

const postcss = require('postcss');
const atImport = require('postcss-import');

postcss([atImport])
  .process(cssContents)
  .then(...);

Import it at the beginning of the .css file.

@import "diz-theme-minimalist";
/* == @import "./node_modules/diz-theme-minimalist/minimalist.css"; */

Less

Let's install 2 packages

yarn add -D less less-plugin-npm-import

Setup

const less = require('less');
const NpmImportPlugin = require('less-plugin-npm-import');

less.render(lessContents, {plugins: [new NpmImportPlugin()]})
  .then(...);

Import it at the beginning of the *.less file.

@import (less) "npm://diz-theme-minimalist/minimalist.css";

Sass

Let's install 2 packages

yarn add -D node-sass sass-module-importer

Setup

const sass = require('node-sass');
const moduleImporter = require('sass-module-importer');

sass.render({
  file: 'path/to/*.scss',
  importer: moduleImporter()
}, callback);

Import it at the beginning of the *.scss or *.sass file.

@import "diz-theme-minimalist"

License

The MIT License (MIT)

Copyright (c) 2016 nju33 [email protected]