forked from FoundKeyGang/FoundKey
Refactor
This commit is contained in:
parent
f7c0654b9b
commit
3ca03b3fba
3 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
"themeColor": "#f76d6c"
|
"themeColor": "#f76d6c",
|
||||||
|
"themeColorForeground": "#fff"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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 },
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue