Converted css elements to variables so they can be passed