- Role
- Creator & maintainer
- Year
- 2025
- Status
- Live · 100+ weekly downloads
- Type
- NPM package
Overview
MasalaCSS is a utility-first CSS runtime published on npm with 100+ weekly downloads. It reads class names in the browser and generates the matching styles on the fly, so there is no build step and no config file.
Problem
Utility-first CSS usually needs a compiler, a config file and a build pipeline. That is overkill for prototypes, CodePens, static pages and teaching.
Approach
A single script tag observes the DOM, parses class names into style rules, and injects only the CSS that is actually used. Parsing is cached per class, so repeated classes cost nothing.
Outcome
Published on npm and used by 100+ developers every week.
Stack
- JavaScript
- CSS
- npm