Files
BetterSEQTA-Plus/src/seqta/ui/themes/Themes.ts
T
2024-10-05 20:17:31 +10:00

15 lines
539 B
TypeScript

export const imageData: Record<string, { url: string; variableName: string }> = {};
export function applyCustomCSS(customCSS: string) {
let styleElement = document.getElementById('custom-theme');
if (!styleElement) {
styleElement = document.createElement('style');
styleElement.id = 'custom-theme';
document.head.appendChild(styleElement);
}
styleElement.textContent = customCSS;
}
export function removeImageFromDocument(variableName: string) {
document.documentElement.style.removeProperty('--' + variableName);
}