How can I create a set of shared `set` and `show` rules which can be imported into a theme?

These two posts may help: