I am creating some custom modules to add them to a theme.
What I am trying to achieve is - Changing some of the theme options like color, typography will change those options for all used the modules as well.
Is there any way I can do this?
I am trying to use some kind of filter that will let me override defaults from the theme, but as I see - the css file is generated when user updates any page with page builder, so changing the theme color does not update that css file.
Is there some functionality like do_action
that I can run after the theme options are updated that will regenerate the CSS for page builder? with changed theme color?
Any help in this would be very beneficial.
~ Nik