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 🙏

© 2024 – Pkg Stats / Ryan Hefner

quaint-look-nice

v0.1.1

Published

A simple CSS/SASS sheet for use with Quaint. It looks nice!

Downloads

4

Readme

quaint-look-nice

A not-too-bad-looking theme for Quaint.

Install

quaint --setup look-nice

Sample configuration

This configuration entry must be added in the plugins field of quaint.json:

"look-nice": {
  "fonts": {
    "body": "serif",
    "nav": "g:Open Sans"
  },
  "backgrounds": {
    "nav": "purple"
  }
}

Options

useNav

(default: true)

Whether to use a navbar or not. If false, the navbar style will not be copied.

useNav

(default: true)

Whether to use a navbar or not. If false, the navbar style will not be copied.

useSide

(default: true)

Whether to use the side navigation or not. If false, the sidenav style will not be copied.

fonts, font-sizes, borders, widths, heights, paddings, backgrounds, colors

These maps define variables with the corresponding prefixes (font-xyz, font-size-xyz, and so on).

Google Fonts: in fonts, any font name prefixed with g: will cause the corresponding font on Google Fonts to be imported. See quaint-google-fonts for more information.

The defaults section below lists all the default values for the variables. Remember that if there is anything you cannot do with these variables, you can write your own sass file and list it in the plugin's extra option.

Defaults

The following JSON contains the default values for all of quaint-look-nice's variables. Many of them are pegged to other variables. Note that fonts.body corresponds to the $font-body variable, and so on.

tweak(color, percent) changes a color's brightness by the given percentage, if the color is dark it gets lighter, if it is light it gets darker. bwtext(color) is black if the color is light, white if the color is dark. darken and lighten are self-explanatory.

{
   "fonts": {
      "body": "sans",
      "nav": "$font-body",
      "header": "$font-body",
      "title": "$font-header",
      "pre": "Monospace",
      "code": "$font-pre"
   },
   "font-sizes": {
      "body": "20px",
      "nav": "$font-size-body",
      "mnav": "$font-size-nav",
      "dropdown": "$font-size-body",
      "caret": "$font-size-nav * 0.8"
   },
   "borders": {
      "nav": "2px solid darken($background-nav, 20%)",
      "nav-dropdown": "10px solid $background-nav-dropdown"
   },
   "widths": {
      "body": "700px",
      "nav": "$width-body + 2 * $padding-body",
      "side": "300px"
   },
   "heights": {
      "nav": "50px",
      "mnav": "$height-nav"
   },
   "paddings": {
      "body": "10px",
      "nav": "$padding-body",
      "td": "5px"
   },
   "backgrounds": {
      "body": "#fff",
      "nav": "$background-body",
      "nav-select": "tweak($background-nav, 20%)",
      "nav-dropdown": "tweak($background-nav, 10%)",
      "nav-dropdown-select": "tweak($background-nav-dropdown, 10%)",
      "pre": "$background-body",
      "code": "$background-body",
      "table": "tweak($background-body, 10%)",
      "table-odd": "tweak($background-table, 5%)",
      "table-header": "tweak($background-table, 20%)"
   },
   "colors": {
      "body": "tweak($background-body, 85%)",
      "nav": "bwtext($background-nav)",
      "nav-select": "bwtext($background-nav-select)",
      "nav-dropdown": "bwtext($background-nav-dropdown)",
      "nav-dropdown-select": "bwtext($background-nav-dropdown-select)",
      "link": "contrasting($background-body, #aaf, auto)",
      "link-visited": "contrasting($background-body, #f8f, auto)",
      "pre": "bwtext($background-pre)",
      "code": "bwtext($background-code)",
      "table": "bwtext($background-table)",
      "table-odd": "bwtext($background-table-odd)",
      "table-header": "bwtext($background-table-header)",
      "header": "$color-body",
      "title": "$color-header"
   }
}