diff --git a/src/styles/variables.scss b/src/styles/variables.scss
index 09c3e9b0..87a5dd50 100644
--- a/src/styles/variables.scss
+++ b/src/styles/variables.scss
@@ -12,4 +12,16 @@ $panGreen: #30B08F;
$menuBg:#304156;
$subMenuBg:#1f2d3d;
$menuHover:#001528;
+$menuText:#bfcbd9;
+$menuActiveText:#409EFF;
$sideBarWidth: 180px;
+
+// the :export directive is the magic sauce for webpack
+:export {
+ menuBg: $menuBg;
+ subMenuBg: $subMenuBg;
+ menuHover: $menuHover;
+ menuText:$menuText;
+ menuActiveText:$menuActiveText;
+ sideBarWidth: $sideBarWidth;
+}
diff --git a/src/views/layout/components/Sidebar/index.vue b/src/views/layout/components/Sidebar/index.vue
index dff85f18..48407286 100644
--- a/src/views/layout/components/Sidebar/index.vue
+++ b/src/views/layout/components/Sidebar/index.vue
@@ -4,10 +4,10 @@
:show-timeout="200"
:default-active="$route.path"
:collapse="isCollapse"
+ :background-color="variables.menuBg"
+ :text-color="variables.menuText"
+ :active-text-color="variables.menuActiveText"
mode="vertical"
- background-color="#304156"
- text-color="#bfcbd9"
- active-text-color="#409EFF"
>
@@ -17,6 +17,7 @@