Skip to content

halenurgurel/mondrian-composition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎨 Mondrian Composition – CSS Project

This project recreates Piet Mondrian’s "Composition" tableau (with red, yellow, blue, black, and white rectangles) using only HTML & CSS.
It demonstrates the use of CSS Grid, Flexbox, and positioning to transform abstract art into clean, semantic code.


πŸš€ Live Demo

πŸ‘‰ GitHub Pages Link


πŸ–ΌοΈ Project Preview

Original Artwork CSS Version
Mondrian Original Mondrian CSS Screenshot

πŸ› οΈ Built With

  • HTML5 – semantic structure
  • CSS3 – Grid & Flexbox layout
  • Modern Normalize – for consistent cross-browser rendering

πŸ“‚ Project Structure


mondrian-css/
│── index.html
│── css/
β”‚ └── styles.css
│── images/
β”‚ β”œβ”€β”€ mondriancomposition.jpg # reference painting
β”‚ └── vscodescreenshot.png # CSS output screenshot


✨ Features

  • Pixel-perfect recreation of Mondrian’s rectangular composition
  • Responsive grid: adapts to different screen sizes
  • Minimalist CSS without any JavaScript
  • Adjustable colors & sizes β†’ experiment with new layouts!

πŸ“– How It Works

  • Black grid lines are built using CSS background*color and grid gaps
  • Colored blocks (red, yellow, blue, white) are placed as grid items
  • Each rectangle is given specific width Γ— height in px, inspired by the original painting
  • Layout can be easily modified to create other Mondrian-style artworks

πŸ§‘β€πŸŽ¨ Inspiration

This project is based on Piet Mondrian’s "Composition C, No. III, with Red, Yellow and Blue" (1935). It reflects the De Stijl art movement: simplicity, abstraction, and harmony through primary colors and geometry.


πŸ“œ License

This project is licensed under the MIT License. Artwork reference Β© by Piet Mondrian (public domain).


About

Composition C (No.III) with Red, Yellow and Blue CSS Version - Piet Mondrian

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published