From 85f59b4ca3032570de2a5b576847088e17094618 Mon Sep 17 00:00:00 2001 From: Reorx Date: Tue, 14 Feb 2023 16:38:18 +0800 Subject: [PATCH] customize primary color in scss instead of - +
diff --git a/index.scss b/index.scss new file mode 100644 index 0000000..da3ddc3 --- /dev/null +++ b/index.scss @@ -0,0 +1,3 @@ +:root { + --color-primary: #2A3FFB; +} diff --git a/vite.config.js b/vite.config.js index 1b167ae..d83935c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -12,7 +12,6 @@ const outDir = process.env.OUT_DIR || 'dist' const data = require(dataFilename) const renderData = getRenderData(data) renderData.theme = process.env.THEME || 'reorx' -renderData.primaryColor = process.env.PRIMARY_COLOR renderData.isProduction = process.env.NODE_ENV === 'production' renderData.meta = { title: data.basics.name,