my-winder is a zero-dependency, runtime CSS-in-JS library that applies utility-first styles directly via inline `element.style` properties, eliminating the need for a build step or stylesheet generation. Version 1.1.7 is the current stable release, with no active maintenance cadence documented. Unlike Tailwind or other utility-first frameworks, my-winder operates entirely at runtime with no build step, using a `my-` prefixed class convention to map to CSS properties. It supports automatic MutationObserver-based re-scanning for dynamically added classes. Key differentiators: no build tooling, zero dependencies, works in browser and with shadow DOM, and supports CDN usage via esm.sh.
npm install my-winderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an HTML page with a styled div using my-winder utility classes and applies styles via applyMyStyles().
Ensure no other libraries or custom code use `my-` prefixed classes to avoid unintended styling.
Design your CSS cascade accordingly, or avoid combining my-winder classes with other inline styles on the same elements.
Call `applyMyStyles()` only once per root. Use the returned observer to disconnect if needed.
Create a `.d.ts` file or use `// @ts-ignore` for the import.
Switch to `import { applyMyStyles } from 'my-winder';` in an ES module context (use `"type": "module"` in package.json or `.mjs` extension).If you want auto-init, use `import 'my-winder/auto';` (no curly braces). If you want the function, use `import { applyMyStyles } from 'my-winder';`.No dependency data recorded yet.