update tw-theme plugin
This commit is contained in:
parent
93cbe58238
commit
33a3433de1
@ -51,11 +51,22 @@ module.exports = plugin.withOptions(() => {
|
||||
const groups = [
|
||||
{ colors: themeConfig.colors.default.theme_color, prefix: "" },
|
||||
{ colors: themeConfig.colors.default.text_color, prefix: "" },
|
||||
...(themeConfig.colors.darkmode?.theme_color
|
||||
? [
|
||||
{
|
||||
colors: themeConfig.colors.darkmode.theme_color,
|
||||
prefix: "darkmode-",
|
||||
},
|
||||
{ colors: themeConfig.colors.darkmode.text_color, prefix: "darkmode-" },
|
||||
]
|
||||
: []),
|
||||
...(themeConfig.colors.darkmode?.text_color
|
||||
? [
|
||||
{
|
||||
colors: themeConfig.colors.darkmode.text_color,
|
||||
prefix: "darkmode-",
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
// Set color variables
|
||||
|
Loading…
x
Reference in New Issue
Block a user