1
0
Fork 1
mirror of https://example.com synced 2024-11-28 10:46:40 +09:00
This commit is contained in:
syuilo 2017-02-22 21:43:38 +09:00
parent f7c0654b9b
commit 3ca03b3fba
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' @charset 'utf-8'
$theme-color = #f76d6c $theme-color = themeColor
$theme-color-foreground = #fff $theme-color-foreground = themeColorForeground
@import './reset' @import './reset'

View file

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