I hardly understand this, but I think that after a big struggle I can shed enough information to get you started.
You can define variables at the ": root" level that you want to use again and again. (Yes, you actually type ": root".) Consider:
<style is="custom-style"> :root{ --main-color: rgb(244,67,54); --dark-color: rgba(0, 0, 0, 0.258824); --light-color: rgb(153, 153, 153); --app-header-background-front-layer-background-image: url(../../img/ConcertChoirSATour.jpg); --app-header-background-front-layer-height: 400px; } </style>
Maybe you are using the Polymer application element, and you see in the docs that you can set the background with:
app-header { --app-header-background-front-layer: { }; --app-header-background-rear-layer: { }; }
Here, where you use the variables assigned at your root level with the var () keyword:
app-header { --app-header-background-front-layer: { background-image: var(--app-header-background-front-layer-background-image); }; --app-header-background-rear-layer: { background-color: var(--main-color); }; }
Here is a sample code:
<style is="custom-style"> :root{ --main-color: rgb(244,67,54); --dark-color: rgba(0, 0, 0, 0.258824); --light-color: rgb(153, 153, 153); --app-header-background-front-layer-background-image: url(../../img/ConcertChoirSATour.jpg); --app-header-background-front-layer-height: 400px; } app-header { --app-header-background-front-layer: { background-image: var(--app-header-background-front-layer-background-image); }; --app-header-background-rear-layer: { background-color: var(--main-color); }; } paper-icon-button { --paper-icon-button-ink-color: white; } paper-dropdown-menu { --paper-input-container-focus:{ color: var(--main-color); }; --paper-input-container: { color: var(--dark-color); }; --paper-input-container-input: { color: var(--light-color); }; --paper-input-container-label: { color: var(--main-color); }; } </style>
source share