Add env var for background-85
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
2e57eaad1d
commit
aef4fd39b9
2 changed files with 5 additions and 0 deletions
|
@ -27,3 +27,4 @@
|
||||||
# VITE_THEME_QUINARY_CONTENT=#394049
|
# VITE_THEME_QUINARY_CONTENT=#394049
|
||||||
# VITE_THEME_SYSTEM=#21262c
|
# VITE_THEME_SYSTEM=#21262c
|
||||||
# VITE_THEME_BACKGROUND=#15191e
|
# VITE_THEME_BACKGROUND=#15191e
|
||||||
|
# VITE_THEME_BACKGROUND_85=#15191ed9
|
||||||
|
|
|
@ -84,6 +84,10 @@ if (import.meta.env.VITE_CUSTOM_THEME) {
|
||||||
"--background",
|
"--background",
|
||||||
import.meta.env.VITE_THEME_BACKGROUND as string
|
import.meta.env.VITE_THEME_BACKGROUND as string
|
||||||
);
|
);
|
||||||
|
style.setProperty(
|
||||||
|
"--background-85",
|
||||||
|
import.meta.env.VITE_THEME_BACKGROUND_85 as string
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const history = createBrowserHistory();
|
const history = createBrowserHistory();
|
||||||
|
|
Loading…
Add table
Reference in a new issue