"Nailing one's colors to the mast" is an idiom that means to publicly declare one's opinions or beliefs and stick to them no matter what. Synonyms for this idiom include "taking a stand," "standing one's ground," "making a declaration," "planting a flag," "expressing conviction," "staking a claim," and "announcing one's allegiances." Using any of these synonyms would convey a similar message of confidence and conviction, indicating that the speaker is loyal to their beliefs and willing to defend them publicly. Whatever the phrase used, it's always important to stick to one's principles and hold oneself accountable to the values they believe in.