refactored reading css properties for components
refactor style
refactor