Add theme detection onload to applied custom CSS based on current theme