I would start here, it’s an excellent primer, but short answer… it’s very doable. I have circadian automations the set global variables for dimming and color temp. then calls the automations that changes the bulb dim and color temp based off the set global variable.
In this example i’m setting a global variable for the color temp of my lifx bulbs then the calling the automation to set the color temp based off the global variable.