mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 13:27:31 -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'
|
||||
|
||||
$theme-color = #f76d6c
|
||||
$theme-color-foreground = #fff
|
||||
$theme-color = themeColor
|
||||
$theme-color-foreground = themeColorForeground
|
||||
|
||||
@import './reset'
|
||||
|
||||
|
|
|
@ -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 },
|
||||
]
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue