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

holygrailcss

v4.0.1

Published

Framework CSS generator con Node.js - Genera CSS optimizado con variables CSS desde un archivo JSON de configuración

Readme

holygrailcss

npm license

Generador de CSS dirigido por configuración. Declaras tu paleta, tipografía, spacing, grid y temas en un único config.json y obtienes en dist/:

  • output.css — variables CSS, helpers responsive, spacing, grid, aspect ratios y la escala tipográfica completa.
  • index.html — guía interactiva navegable.
  • themes/<name>.css + themes/<name>-demo.html por cada tema activo.

Sin SASS, sin toolchain. Node puro.


Instalación

npm install holygrailcss --save-dev
<link rel="stylesheet" href="node_modules/holygrailcss/dist/output.css">
<!-- y opcionalmente, un tema -->
<link rel="stylesheet" href="node_modules/holygrailcss/dist/themes/black-yellow.css">
// Vite / Webpack / Next
import 'holygrailcss/dist/output';
import 'holygrailcss/dist/themes/black-yellow';
<!-- CDN (sandbox / playground) -->
<link rel="stylesheet" href="https://unpkg.com/holygrailcss/dist/output.css">

Uso rápido

<button class="btn btn-primary btn-lg">Get started</button>

<div class="row">
  <div class="col-md-8">Contenido</div>
  <div class="col-md-4">Sidebar</div>
</div>

<h1 class="headline-xl">Title</h1>
<p class="body-l muted">Subtitle</p>

<div class="p-24 m-16 hg-d-flex hg-justify-between hg-gap-16">…</div>

Convenciones:

  • Mobile-first. md\: para desktop (≥992px).
  • Spacing sin prefijo (.p-16), helpers con hg- (.hg-d-flex).
  • Variables CSS siempre: var(--hg-color-primary), var(--hg-spacing-16).

Personalización

Copia el config y edítalo:

cp node_modules/holygrailcss/config.json ./hg-config.json
npx holygrailcss --config=./hg-config.json --output=./dist/output.css

Para crear un tema, mira themes/black-yellow/ como ejemplo (_variables.css, theme.css, theme.json, demo.html) y actívalo en config.jsonthemes[].


Componentes

34 componentes base en themes/_base/:

Form: buttons, inputs, textarea, select, labels, checkboxes, radios, switches, slider, input-otp, toggle-group, forms Display: typography (headline-, body-), card, badge, alert, avatar, separator, progress, skeleton, table Navigation: tabs, accordion, breadcrumb, pagination, sidebar Overlays: dialog, drawer, dropdown, tooltip, toast Layout: containers, grid, icons (aspect ratios se generan desde config/aspect-ratios.json)

Demo viva en dist/componentes.html.


Documentación

  • Para asistentes/AI que vayan a editar este repo: lee CLAUDE.md (raíz). Es un mapa de 5 minutos.
  • Para usar el framework en tu proyecto: skills/developer-guide/SKILL.md — referencia completa de clases (colores, spacing, tipografía, helpers, grid, ratios, temas).
  • Para extender:
    • skills/theme-creator/SKILL.md — crear temas reutilizando _base/.
    • skills/component-generator/SKILL.md — generar HTML con las clases correctas.
    • skills/layout-builder/SKILL.md — construir layouts responsive.
    • skills/config-builder/SKILL.md — modificar config.json sin romper el build.
    • skills/migration-helper/SKILL.md — migrar desde Bootstrap/Tailwind.

Scripts

npm run build      # genera dist/
npm run watch      # rebuild on change
npm run serve      # sirve dist/
npm run dev        # build + serve
npm test           # tests

License

MIT — ver LICENSE.

Repo: github.com/holygrailcss/holygrail