MorStyleBinder is a lightweight desktop workbench for binding modular CSS sheets into one theme, or refactoring a monolithic Blogger/Tumblr/SpaceHey-style theme into modular files.
It is built for theme workflows where one huge stylesheet becomes hard to edit, review, reuse, or safely paste back into a platform like Blogger.
When splitting a monolithic sheet into modular parts, every split marker must contain a valid file name ending exactly in .css.
The refactoring engine scans block comments specifically looking for a text token with a .css extension. If a section is labeled without .css, the engine will not match it, and that code block will accidentally spill into the preceding module.
/* --- 01-reset.css --- */ ──> Creates file: src_css/01-reset.css
* { box-sizing: border-box; }
/* --- 02-header --- */ ──> INVALID (No .css extension!)
header { display: flex; } Appends text directly into 01-reset.css
/* --- 03-footer.css --- */ ──> Creates file: src_css/03-footer.css
footer { display: block; }
The engine is highly tolerant of comment styles, provided the .css extension is present:
/* --- 01_base.css --- */— canonical format/* SECTION: 04-Main-Header.css *//*Root-Section.css *//* === 01-reset.css === */
MorStyleBinder helps with both directions of a theme workflow:
many readable CSS files → one exportable theme bundle
and:
one large theme file → many readable CSS files
The app can:
- Read modular
.csssheets fromsrc_css/ - Generate a live bundle preview
- Export a normal
bundle.css - Export a Blogger-safe
blogger-theme.xmlusing a<b:skin><![CDATA[ ... ]]></b:skin>wrapper - Copy the generated bundle CSS to the clipboard
- Open the export folder so generated files are easy to find
- Inspect a monolithic theme file through
import.css - Split a monolithic theme into separate sheets using split markers
- Preview files before writing them
- Warn when refactoring would overwrite existing sheets
- Back up overwritten sheets into
src_css_backup/
The desktop UI is arranged as a three-panel workbench:
Modular Sheets | Bundle Preview | Import Theme / Export
The left panel shows CSS files currently loaded from src_css/. Drop .css files anywhere on this panel to copy them into src_css/ and refresh the live bundle preview.
The center panel shows the generated output matching your layout selections: Plain CSS Bundle or Blogger Skin Wrapper.
The right panel handles inspecting/refactoring a monolithic theme into modular sheets, and exporting completed assets back to disk.
MorStyleBinder expects this basic project layout:
.
├── src_css/
│ ├── 01_base.css
│ ├── 02_links.css
│ └── ...
├── import.css
├── bundle.css
├── blogger-theme.xml
└── src_css_backup/
src_css/: Main source folder for modular sheets bundled into preview/exports.import.css: The import inbox for monolithic theme CSS before refactoring.bundle.css: The plain CSS production export target.blogger-theme.xml: The Blogger-safe XML skin export target.src_css_backup/: Safe recovery path holding timestamped backups of overwritten files.
MorStyleBinder avoids silent destructive writes. When split markers would overwrite existing sheets, the app:
- Previews the exact files that will be written
- Lists the specific modules that would be overwritten
- Changes the action track button to
Overwrite Existing Sheets - Backs up the old versions into
src_css_backup/automatically upon confirmation
Rust 2021
Floem 0.2.0 GUI
notify 6.1.1 file watching
walkdir 2.4.0 directory traversal
copypasta 0.10.2 clipboard
cargo check
cargo test
cargo runcargo build --releaseThe release binary will be created under target/release/.
