How to capture the style