text-subtitle: "#424242"
card-shadow: rgba(0, 0, 0, 0.1)
link-hover: "#363636"
+ background-image: "assets/your/light/bg.png"
dark:
highlight-primary: "#3367d6"
highlight-secondary: "#4285f4"
text-subtitle: "#f5f5f5"
card-shadow: rgba(0, 0, 0, 0.4)
link-hover: "#ffdd57"
+ background-image: "assets/your/dark/bg.png"
# Optional message
message:
#app {
min-height: 100%;
background-color: var(--background);
+ background-image: var(--background-image);
+ background-size: cover;
+ background-position: center;
color: var(--text);
transition: background-color cubic-bezier(0.165, 0.84, 0.44, 1) 300ms;
text-subtitle: "#424242"
card-shadow: rgba(0, 0, 0, 0.1)
link-hover: "#363636"
+ background-image: ""
dark:
highlight-primary: "#3367d6"
highlight-secondary: "#4285f4"
text-subtitle: "#f5f5f5"
card-shadow: rgba(0, 0, 0, 0.4)
link-hover: "#ffdd57"
+ background-image: ""
message: ~
links: []
getVars: function (theme) {
let vars = [];
for (const themeVars in theme) {
- vars.push(`--${themeVars}: ${theme[themeVars]}`);
+ let value = `${theme[themeVars]}`;
+ if (!value) {
+ value = "inital";
+ } else if (themeVars == "background-image") {
+ value = `url(${theme[themeVars]})`;
+ }
+ vars.push(`--${themeVars}: ${value}`);
}
return vars.join(";");
},