Useful code for custom themes.