Transferred theme colours from HTML source to CSS along with necessary function.