mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-01 22:28:00 -07:00
Refactor
This commit is contained in:
parent
37482e3847
commit
9590b67350
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