splitting styles into components