Add properties for fg/bg
Add CSS, wrap diagram