Wow, very impressive! I will definitely be trying this out. It reminded me of my discrete mathematics class, so now I'm wondering if there are any other cool principles that can be applied to design
They also have an interactive tool that generates HTML/CSS: http://www.3x4grid.com