What books do you recommend for learning musical theory?

I'm not looking for books that purely pertain to the guitar. I'd like to understand keys, scales, timings, patterns, modes, and whatever else I could build from.

Thanks in advance
My music theory class uses
Introductory Musicianship A Workbook 7th Edition by Theodore A. Lynn

I've been playing guitar for 5 or 6 years and studying theory for about 2, and I still found this book to be very helpful.
I am a Rocker; I Rock out!
(Semicolons ftw)
Fretboard Mastery is great.
Also maybe try the classical graded books. If you cant read music, you'll learn how if you start at grade 1.