Theory is a dictionary of all the different types of sounds and intervals and chords, where the definition would be is instead how it makes you feel, where you might logically use it (according to rules the genre you're making is probably following, like voice leading, voices should be independent). Writers generally don't use words plucked out of the dictionary at random, they write based on feeling. That doesn't mean they aren't using the dictionary or any of their education in being an author to write books.
Did you know you can stack thirds so high in a chord it contains all twelve notes in it? Ok that's great... what is it good for though? How do I use it? Persichetti, in the theory book Twentieth Century Harmony, describes these chords:
"mixed thirds may be superimposed until all 12 tones are present. [...] 12 note chords containing 12 different member tones are so complex and thick that special attention must be given to the register in instrumentation - this is an extremely limited species of harmony which operates in a confined area. Its harmonic functions are few. 12 note chords are used for punctuation, for quiet and sustained tension, and for short progressions that answer unison or two-part writing."
Oh ok, thanks Persichetti. You can use it for some intense 20th century punctuation marks! Music theory at its best - here's a technique you can use, it does this, use it like this. Now you have this in your head for when you get really emotional and only a bunch of instruments playing a bunch of dissonant shit all across the staff can cut it.
...
Music theory is complicated by the strange fact that, for some reason, trying to explain one thing in modern music requires the listener to already know like 400 years of music history and practice going back to Bach (or even ancient greece if you are working in like spectral music or something) and it feels like it shouldn't be true. This is probably why people think music theory sucks and is boring. But when you learned math you didn't just start at integrals and derivatives right? You had to learn 3 times 7 first. Theory is just what it's called when you write things down. If I bang a rock like this with a stick that looks like this, in this fashion, it makes this sound. This is why I personally get irritated when I read "I don't need music theory / it sucks" or whatever variation. There's so much theory about making fucking awesome underground hiphop beats and dubstep and whatever, it just lives in people's brains since they're way less likely to write it down in a book or even a youtube video.
There was once a group of French writers called Oulipo. Basically, they played around a lot with contained writing techniques (you might have heard this one: writing a book without the letter E in it). One of their techniques is called S+7, in which you take some input text and replace every noun with the seventh noun after it in the dictionary. Doing this creates something bizarre and interesting, as if the words were plucked out of the dictionary at random. At the end of the day, you get to choose whether your art looks like science, like experimentation, or something more personal, warmer, emotional. I'm just saying it helps if you know 3 times 7.