Access section variables outside of section?

Hello there!

I am about to customize my shopify theme (Dawn). There I would like to set-up the setting to customize the background color individually for every section

In the Multicolum Section I would also like to keep the 3 variants for how the color is displayed: As complete background, only for the tiles or also as a combination of background and foreground color.

Here I stumble upon the issue : I would like to add the section.settings.background_color -value without an intense inline-styling within the section itself (to keep styling and template as separate as possible)

This would mean that I would need to “export” the section.settings -value to another file. Is there a possibility to do that in some ways similar to the settings.xxx ?

Hi @jonglaj ,

You cannot get section variables outside of the section. You can explain more what you want, i will help you come up with the best solution.

Are you wanting to add a color variable and it will display the background color according to each option? Means you want to change this color:

Hope it is clear to you.