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

@cuzom/stylelint-config

v1.2.0

Published

Stylelint settings: the standard rules, Vue single-file components, and values that come from design tokens.

Readme

@cuzom/stylelint-config

Cuzom Oy's Stylelint config: the standard rules, Vue single-file components, and values that come from design tokens instead of being written into a component.

pnpm add -D stylelint @cuzom/stylelint-config

stylelint.config.js:

import cuzom from '@cuzom/stylelint-config'

export default {
  ...cuzom,
  // project rules; ignoreFiles: ['**/dist/**', '.nuxt/**', '.output/**']
}

Run it on CSS and Vue files: stylelint "**/*.{css,vue}".

What it adds to stylelint-config-standard and stylelint-config-recommended-vue

  • Tokens, not literals. color, background-color, border-color, font-size, border-radius, z-index, gap, margin* and padding* take var(--…) (or a function such as calc() or clamp()), not 13px or #cc0000. Allowed as they are: 0, auto, inherit, currentColor, transparent, percentages, an em that follows the text around it, and a nudge under 4px (and a hairline under 0.25rem). A shadow's offsets and blur are geometry and stay literal; its colour is a token, because hex and rgb() are refused.

  • No hex colours and no rgb(), hsl() or similar in a component. color-mix() is fine. A token file (tokens.css) defines the colours; turn the rule off for it:

    overrides: [
      {
        files: ['**/tokens.css'],
        rules: {
          'color-no-hex': null,
          'function-disallowed-list': null,
          'scale-unlimited/declaration-strict-value': null,
        },
      },
    ],
  • No !important, no id selectors, and media queries in range syntax (width <= 640px).

  • Kebab-case class names, the standard rule unchanged (Radix Themes and aura-aq-sim name theirs that way). A repository that already has BEM names (block__element--modifier) can allow them with its own selector-class-pattern. no-descending-specificity is off, because it fights with scoped component styles.

Formatting is left to Prettier. pnpm test in this repository checks what the config accepts and refuses.