A CLI utility that converts CSS files into JavaScript objects compatible with Radium, a React styling library. Current stable version 1.0.4, with no recent updates or release cadence. It reads CSS via stdin or --input flag and outputs a CommonJS module exporting Radium-style style objects. Key differentiators: simple one-way conversion, supports multiple input files, and configurable quoting and indentation. Suitable for migrating from plain CSS to Radium's inline style approach.
npm install css-to-radiumNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install css-to-radium globally or locally, create a sample CSS file, convert it to a Radium JS object, and verify the output.
Consider migrating to a modern CSS-in-JS library for better performance and maintenance.
Use dynamic import() or configure bundler to handle CommonJS output.
Manually review and add units where needed, or expect pixel-only defaults.
npm install -g css-to-radium or use npx css-to-radium
Ensure stdin is redirected: css-to-radium < file.css
No dependency data recorded yet.