Component to apply CSS styles to a canvas