Here are some high quality textbooks for middle and high school mathematics. They are good in the sense that they include a lot of exercises in different difficulty levels (A, B, and C). Some of the Level C problems are actually pretty hard.
Prealgebra:


Algebra 1, Geometry, Algebra 2:



The more challenging Art of Problem Solving Curriculum:








AoPS Contest Preparation books:

