in keeping with

Conforming to, in harmony with, as in The new wing is in keeping with the house's original architecture, or His actions are not in keeping with his words. This expression uses keeping in the sense of “harmony,” as does its antonym, out of keeping with, as in The funeral arrangements were out of keeping with the family's wishes. [c. 1800] Also see in key; in line.

The American Heritage® Idioms Dictionary Copyright © 2002, 2001, 1995 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company.