From 21dba8bce623167676da5faf9e9dd6c2a99f90db Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 14 Sep 2017 20:17:17 +0800 Subject: [PATCH] Move theme to a saperate file --- .roadhogrc | 10 +--------- src/theme.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 src/theme.js diff --git a/.roadhogrc b/.roadhogrc index f4e2e958..21d69816 100755 --- a/.roadhogrc +++ b/.roadhogrc @@ -17,13 +17,5 @@ ] } }, - "theme": { - "font-size-base": "14px", - "badge-font-size": "12px", - "btn-font-size-lg": "@font-size-base", - "@menu-dark-bg": "#00182E", - "@menu-dark-submenu-bg": "#000B14", - "@layout-sider-background": "#00182E", - "layout-body-background": "#f0f2f5" - } + "theme": "./src/theme.js" } diff --git a/src/theme.js b/src/theme.js new file mode 100644 index 00000000..2193f6b6 --- /dev/null +++ b/src/theme.js @@ -0,0 +1,10 @@ +// https://github.com/ant-design/ant-design/blob/master/components/style/themes/default.less +module.exports = { + 'font-size-base': '14px', + 'badge-font-size': '12px', + 'btn-font-size-lg': '@font-size-base', + 'menu-dark-bg': '#00182E', + 'menu-dark-submenu-bg': '#000B14', + 'layout-sider-background': '#00182E', + 'layout-body-background': '#f0f2f5', +}; -- GitLab