This is exactly what I found. It does somewhat defeat the purpose of dynamic style properties, but it's still better than having to recreate the stylesheet every time!