Skip to content

Node.js based forum software built for the modern web

feat: use _variables.scss overrides from acp in custom skins and bootswatch skins as well

Barış Soner Uşaklı0c48e0e909ad
diff --git a/src/meta/css.js b/src/meta/css.js
index 1c8f9f0329..304cc2554d 100644
--- a/src/meta/css.js
+++ b/src/meta/css.js
@@ -56,9 +56,15 @@ function boostrapImport(themeData) {
function bsvariables() {
if (bootswatchSkin) {
if (isCustomSkin) {
- return themeData._variables || '';
+ return `
+ ${bsVariables}
+ ${themeData._variables || ''}
+ `;
}
- return `@import "bootswatch/dist/${bootswatchSkin}/variables";`;
+ return `
+ ${bsVariables}
+ @import "bootswatch/dist/${bootswatchSkin}/variables";
+ `;
}
return bsVariables;
}