Add some logic to adding theme CSS
Fixes #4