Generate compositions in the style of Piet Mondrian directly in Inkscape!
- Authentic Mondrian-style compositions with controlled randomness
- Multiple color palettes: Classic, Modern, Grayscale, Primary, Pastel
- Advanced composition control: Distribution, Balance, Randomness sliders
- Fully customizable: Canvas size, grid density, line thickness, margins
- Reproducible results: Random seed support
- Clean output: Optional grouping and background
- Download the latest release: mondrian-grid.zip
- Extract and copy
mondriangrid_v3.inxandmondriangrid_v3.pyto:- Windows:
%APPDATA%\inkscape\extensions\ - Linux:
~/.config/inkscape/extensions/ - macOS:
~/Library/Application Support/inkscape/extensions/
- Windows:
- Restart Inkscape
git clone https://github.com/yusdesign/mondrian-grid.git
cd mondrian-grid/extension
cp mondriangrid_v3.* ~/.config/inkscape/extensions/Open Inkscape Go to Extensions → Render → Mondrian Grid Generator Adjust parameters: Canvas: Set width and height Grid: Lines, thickness, margin Colors: Palette and density Composition: Distribution, Balance, Randomness Advanced: Random seed, grouping options Click Apply
Width/Height: Dimensions of the generated composition
Margin: Space from edges (prevents lines at borders)
Vertical/Horizontal Lines: Number of grid divisions
Line Thickness: Thickness of black grid lines
Margin: Space from edges
Color Palette: Choose from 5 different palettes
Color Density: Percentage of rectangles to color
Distribution: Controls line placement (0=Random, 1=Structured)
Balance: Controls color placement (0=Random, 1=Strategic)
Randomness: Additional randomness in line placement
Random Seed: 0 for random, any number for reproducible results
Minimum Rectangle Size: Skip coloring very small rectangles
Group Elements: Group all generated elements together
Add Background: Add white background rectangle
Vary Line Thickness: Randomize line thickness slightly
screenshots/
examples/
Classic: Distribution=0.8, Balance=0.8, Palette=classic
Modern: Distribution=0.6, Balance=0.5, Palette=modern
Chaotic: Distribution=0.3, Balance=0.2, Randomness=0.3
extension/
├── mondriangrid_v3.py # Main Python extension
├── mondriangrid_v3.inx # Extension definition (GUI)
└── icon.svg # Optional icon
Inkscape 1.0+ (tested with 1.4.3) Python 3.6+ (bundled with Inkscape) inkex module (bundled with Inkscape)
# Clone repository
git clone https://github.com/yusdesign/mondrian-grid.git####Contributions are welcome! Here's how:
Fork the repository Create a feature branch: git checkout -b feature/amazing-feature Make your changes Test thoroughly Submit a pull request
Add new color palettes Implement different composition algorithms Add preview functionality Create preset configurations Improve performance for large grids Add export options (patterns, swatches)
MIT, 2026
Inspired by Piet Mondrian's Neo-plasticism Built for the amazing Inkscape community Thanks to all contributors and testers
Issues: GitHub Issues Discussions: GitHub Discussions Inkscape Forum: Extension Development
"The position of the artist is humble. He is essentially a channel." — Piet Mondrian

