Brand Guidelines Enforcer
Lightweight enforcement of brand guidelines for UI copy and visual motifs.
Quick Start
python3 scripts/enforce_brand.py --guidelines brand.yml --source src/
Violation Types
Type Severity Description
wrong-color-context
warning Color used outside allowed context
tone-violation
warning Copy doesn't match brand voice
reserved-component-misuse
error Reserved component in wrong screen
prohibited-word
error Prohibited word/pattern found
capitalization-error
info Wrong capitalization style
Detection Examples
Tone Violations
// Violation: unfriendly error message <ErrorMessage>Error occurred: Invalid input</ErrorMessage> // Suggested: "Something went wrong. Please check this field."
// Violation: generic CTA <Button>Click here</Button> // Suggested: "Get started" or "Continue"