A TypeScript CSS preprocessor and bundler for .mss files. Current stable version is 26.0.2. Actively maintained with regular releases. Compiles a single entry file or an entire directory of .mss sources into one CSS output. Supports variables, nesting, mixins, imports (including built-in modules like muro:reset), conditionals, loops, theme baking (light/dark), semantic layering, guard locks, and automatic raster asset rewriting to webp. Includes CLI with watch, minify, purge, sourcemap, and asset-dir options. Ships TypeScript types. Differentiators: designed as a TypeScript-first alternative to Sass/PostCSS with built-in utilities and zero-config polyfilling.
npm install muro-cssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compiles an .mss file to CSS using CLI and programmatic API with TypeScript types.
Rename .x2s files to .mss and replace x2s:*/@x2s/* imports with muro:* equivalents.
Upgrade Node.js to version 18 or later.
Use muro CLI and muro: built-in imports instead.
Use @import 'muro:reset' for built-in, or @import './partial.mss' for files.
Avoid putting space before # for comments; use // or ** for safer comment syntax.
Ensure a .webp converter (e.g., cwebp) is available in PATH, or use --no-assets to skip rewriting.
Run 'npm i muro-css' or 'npm i -D muro-css' to install.
Use import { compile } from 'muro-css'.Ensure # comments start at line beginning; use // for inline comments.
No dependency data recorded yet.