Pattern to boxes for theme