|
|
|
@ -56,6 +56,12 @@ const darkBackgroundPrimary = '#474646';
|
|
|
|
|
const darkButtonGreen = accentDarkTheme;
|
|
|
|
|
const darkModalBackground = '#101011';
|
|
|
|
|
|
|
|
|
|
const grey67 = '#434343';
|
|
|
|
|
const darkMessageRequestBannerBackground = '#2c2c2c';
|
|
|
|
|
const darkMessageRequestBannerIconBackground = grey67;
|
|
|
|
|
const darkMessageRequestBannerUnreadBackground = grey67;
|
|
|
|
|
const darkMessageRequestBannerIcon = '#adadad';
|
|
|
|
|
|
|
|
|
|
export const switchHtmlToDarkTheme = () => {
|
|
|
|
|
document.documentElement.style.setProperty('--color-accent', darkColorAccent);
|
|
|
|
|
document.documentElement.style.setProperty('--color-accent-button', darkColorAccentButton);
|
|
|
|
@ -138,6 +144,23 @@ export const switchHtmlToDarkTheme = () => {
|
|
|
|
|
document.documentElement.style.setProperty('--color-button-green', darkButtonGreen);
|
|
|
|
|
document.documentElement.style.setProperty('--color-modal-background', darkModalBackground);
|
|
|
|
|
document.documentElement.style.setProperty('--border-session', darkColorSessionBorder);
|
|
|
|
|
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-background',
|
|
|
|
|
darkMessageRequestBannerBackground
|
|
|
|
|
);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-icon-background',
|
|
|
|
|
darkMessageRequestBannerIconBackground
|
|
|
|
|
);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-unread-background',
|
|
|
|
|
darkMessageRequestBannerUnreadBackground
|
|
|
|
|
);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-icon',
|
|
|
|
|
darkMessageRequestBannerIcon
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// LIGHT COLORS
|
|
|
|
@ -185,6 +208,11 @@ const lightBackgroundPrimary = '#272726';
|
|
|
|
|
const lightButtonGreen = '#272726';
|
|
|
|
|
const lightModalBackground = '#fcfcfc';
|
|
|
|
|
|
|
|
|
|
const lightMessageRequestBannerBackground = '#f0f0f0';
|
|
|
|
|
const lightMessageRequestBannerIconBackground = '#585858';
|
|
|
|
|
const lightMessageRequestBannerUnreadBackground = '#dfdfdf';
|
|
|
|
|
const lightMessageRequestBannerIcon = white;
|
|
|
|
|
|
|
|
|
|
export const switchHtmlToLightTheme = () => {
|
|
|
|
|
document.documentElement.style.setProperty('--color-accent', lightColorAccent);
|
|
|
|
|
document.documentElement.style.setProperty('--color-accent-button', lightColorAccentButton);
|
|
|
|
@ -276,6 +304,22 @@ export const switchHtmlToLightTheme = () => {
|
|
|
|
|
document.documentElement.style.setProperty('--color-button-green', lightButtonGreen);
|
|
|
|
|
document.documentElement.style.setProperty('--color-modal-background', lightModalBackground);
|
|
|
|
|
document.documentElement.style.setProperty('--border-session', lightColorSessionBorder);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-background',
|
|
|
|
|
lightMessageRequestBannerBackground
|
|
|
|
|
);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-icon-background',
|
|
|
|
|
lightMessageRequestBannerIconBackground
|
|
|
|
|
);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-unread-background',
|
|
|
|
|
lightMessageRequestBannerUnreadBackground
|
|
|
|
|
);
|
|
|
|
|
document.documentElement.style.setProperty(
|
|
|
|
|
'--color-request-banner-icon',
|
|
|
|
|
lightMessageRequestBannerIcon
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// default to light theme
|
|
|
|
|