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

granum

v1.2.128

Published

CSS micro framework

Downloads

282

Readme

Granum

CSS micro framework.
Ultra compact set of styles and behaviours for basic web pages.

3 KB minified and gzipped.
10 KB with icons, components and some JavaScript.

Demo · Docs

Usage

npm

npm install granum

Manual

Download and include scripts from dist directory.

<link rel="stylesheet" href="granum.css">
<!-- optional -->
<link rel="stylesheet" href="granum-icons.css">
<link rel="stylesheet" href="granum-icons-ext.css">
<link rel="stylesheet" href="granum-dropdown.css">
<link rel="stylesheet" href="granum-grid.css">
<script src="granum.js" defer></script>
<script src="granum-gallery.js" defer></script>
<script src="granum-dialog.js" defer></script>
<script src="granum-lookup.js" defer></script>
<script src="granum-calendar.js" defer></script>
<script src="granum-restore.js" defer></script>
<script src="granum-edit.js" defer></script>
<script src="granum-drag.js" defer></script>
<script src="granum-split.js" defer></script>

Bundled styles and scripts are also available:

<link rel="stylesheet" href="granum-full.css">
<script src="granum-full.js" defer></script>

Styles with extended iconset and splitter script:

<link rel="stylesheet" href="granum-ext.css">
<script src="granum-ext.js" defer></script>

CDN

<link rel="stylesheet" href="https://unpkg.com/granum">
<!-- optional -->
<link rel="stylesheet" href="https://unpkg.com/granum/dist/granum-icons.min.css">
<link rel="stylesheet" href="https://unpkg.com/granum/dist/granum-icons-ext.min.css">
<link rel="stylesheet" href="https://unpkg.com/granum/dist/granum-dropdown.min.css">
<link rel="stylesheet" href="https://unpkg.com/granum/dist/granum-grid.min.css">
<script src="https://unpkg.com/granum/dist/granum.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-gallery.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-dialog.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-lookup.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-calendar.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-restore.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-edit.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-drag.min.js" defer></script>
<script src="https://unpkg.com/granum/dist/granum-split.min.js" defer></script>

Bundled styles and scripts are also available:

<link rel="stylesheet" href="https://unpkg.com/granum/dist/granum-full.min.css">
<script src="https://unpkg.com/granum/dist/granum-full.min.js" defer></script>

Styles with extended iconset and splitter script:

<link rel="stylesheet" href="https://unpkg.com/granum/dist/granum-ext.min.css">
<script src="https://unpkg.com/granum/dist/granum-ext.min.js" defer></script>

Features

  • lightweight
  • simple class names
  • modern
  • responsive
  • mobile friendly
  • semantic
  • valid
  • cross-browser
  • JavaScript is optional
  • neutral style
  • no floats
  • no hacks

Components

  • typography
  • link
  • responsive grid
  • list
  • table
  • form
  • button
  • navbar
  • modal
  • toggle
  • tabs
  • tag
  • progress bar
  • colors
  • media object
  • full height
  • with granum-icons.css
    • icons
    • spinner
  • with granum-dropdown.css
    • dropdown
    • popup
    • tooltip
  • with granum-grid.css
    • advanced grid
    • cell widths: auto, fractional, regular
    • gaps and padding
    • responsive
    • push cell
    • control wrapping
  • with granum.js
    • confirm
    • prompt
    • toggle class (with link or input)
    • responsive class
    • custom responsive breakpoints
    • populate inputs from URL
    • align table columns
    • check group of checkboxes
    • copy, remove, order items
  • with granum-gallery.js
    • gallery
  • with granum-dialog.js
    • custom alert, confirm, prompt dialogs
  • with granum-lookup.js and granum-dropdown.css
    • lookup input
  • with granum-calendar.js and granum-dropdown.css
    • date input
  • with granum-restore.js
    • automatically restore from data
  • with granum-editor.js
    • contenteditable
  • with granum-drag.js
    • draggable (table rows, list items)
  • with granum-split.js and granum-grid.css
    • vertical and horizontal splitter

CSS classes

  • .row .col-X .resp .vert .tabs
  • .fit .mar .pad .bord .rad .shade .stack .field
  • .bg .bg-X .back .text-X .hover .act
  • .l .r .c .center .wrap .full .mid
  • .roll .stick .tag .bar
  • .fix-head .fix-col
  • .serif .sans .mono .small .nobr .inv .invert
  • .target .hide .show .modal .drawer .pop .drop
  • .icon-X .empty .spot .spin
  • .grid .grid-X .flow .fill .pX .gX
  • .span-X .push .shift

JavaScript hooks

  • .toggle([href^="#"][data-nodes][data-set][data-unset][data-act][data-inact])
  • input[data-nodes][value][data-set][data-unset]
  • .dialog([data-prompt][data-default][title])
  • a.alert, a.confirm([data-param][data-def][title][data-caption][data-ok][data-cancel])
  • .lX .cX .rX
  • table.sort th.sort table[data-sort]
  • input[data-filter] table tbody tr
  • [data-check]
  • [data-get]
  • body[data-break] [data-resp]
  • [data-item][data-delete][data-keep][data-up][data-down]
  • .gallery a.pic
  • input[data-lookup][data-caption][data-goto][data-limit]
  • input.calendar[step], body[data-dt]="."
  • [contenteditable][data-for="ID_AREA"]
  • form[data-restore="IDENT"], input[data-unstore]
  • a[href="#ID_EDITOR"][data-cmd]([data-arg][data-ask][title])
  • .drag-container .drag-item (.drag-handle)
  • .row.split(.vert)

Browser suppport

Modern browsers and IE 11+.
Limited support for IE9 and IE10.

License

MIT