This commit is contained in:
syuilo 2017-02-22 21:43:38 +09:00
parent 37482e3847
commit 9590b67350
3 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,4 @@
{
"themeColor": "#f76d6c"
"themeColor": "#f76d6c",
"themeColorForeground": "#fff"
}

View file

@ -1,7 +1,9 @@
json('../../const.json')
@charset 'utf-8'
$theme-color = #f76d6c
$theme-color-foreground = #fff
$theme-color = themeColor
$theme-color-foreground = themeColorForeground
@import './reset'

View file

@ -22,7 +22,7 @@ module.exports = (commit, env) => {
exclude: /node_modules/,
loader: StringReplacePlugin.replace({
replacements: [
{ pattern: /\$theme\-color\-foreground/g, replacement: () => '#fff' },
{ pattern: /\$theme\-color\-foreground/g, replacement: () => constants.themeColorForeground },
{ pattern: /\$theme\-color/g, replacement: () => constants.themeColor },
]
})