SheetOM provides a mutable CSSOM for Node, Bun, and Deno to edit and serialize styles server‑side.
It solves the lack of a full‑featured, mutable CSS object model in server‑side JavaScript, letting developers create, modify, and serialize styles just like in browsers. SheetOM builds on Lightning CSS for parsing and uses its own state management to mimic the browser CSSOM API while remaining lightweight. It targets backend or build‑tool developers needing precise stylesheet editing, offering true object‑model operations, diagnostics, and safe serialization over simple string hacks. The project includes tests, compatibility reports, and works across Node, Bun, and Deno.
View on GitHub →leo91000/sheetom