Page Design Based on Variant Color

That’s a cool idea! Yes, it’s possible using conditional logic in JavaScript. I can help you set it up—let me take a look at your theme.