That's something of a "how long is a piece of string?" question, because the knowledge you need is related to the theme you are using.
Your options are a) say which theme you want to change, or b) learn everything about every factor that could affect this is every theme. I suspect you will, wisely, choose a)