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

isitcss

v1.0.0

Published

Check if your CSS is conforming to ITCSS

Downloads

6

Readme

Is it ITCSS?

A little tool to check if your stylesheets follow ITCSS, [Harry Roberts]' school of thought for a better CSS organisation and utilisation.

What is ITCSS?

ITCSS is a school of thought that aims at organising CSS in a maintainable, extensible and predictable manner.

ITCSS stands for "Inverted Triangle CSS" and basically means all CSS is organised from lower specificity (i.e. broader impact) to higher specificity (i.e. smaller impact).

There are seven layers specified, all optional.

  1. Settings: Global variables, config switches
  2. Tools: Default mixins and functions
  3. Generic: Ground-zero styles (Normalize.css, resets, box-sizing)
  4. Base: Unclassed HTML elements (type selectors)
  5. Objects: Cosmetic-free design patterns
  6. Components: Designed components, chunks of UI
  7. Trumps: Helpers and overrides

Layers one and two are meant to be used for postprocessors.

Status of isitcss

It's a work-in-progress and is very limited yet, contributions absolutely welcome!

Current, known limitations:

  • only listing a single selector per line

Installation of isitcss

It can be globally installed via npm install -g isitcss or locally for usage with npm scripts.

Usage of isitcss

isitcss your-stylesheet.css

You can also run it in quiet mode that outputs the number of violations in the exit code instead of STDOUT: isitcss --quiet your-stylesheet.css