You can use Object coordinates for this
- Use Texture coordinates > Objects and target the dome
- Use one ColorRamp for Base Color
- Use another ColorRamp for alpha channel
Here a simple setup how you could realize it with two objects, which define the color of a third object: