update tw-theme plugin

This commit is contained in:
Somrat 2025-02-17 10:31:32 +06:00
parent 93cbe58238
commit 33a3433de1

View File

@ -51,11 +51,22 @@ module.exports = plugin.withOptions(() => {
const groups = [
{ colors: themeConfig.colors.default.theme_color, prefix: "" },
{ colors: themeConfig.colors.default.text_color, prefix: "" },
{
colors: themeConfig.colors.darkmode.theme_color,
prefix: "darkmode-",
},
{ colors: themeConfig.colors.darkmode.text_color, prefix: "darkmode-" },
...(themeConfig.colors.darkmode?.theme_color
? [
{
colors: themeConfig.colors.darkmode.theme_color,
prefix: "darkmode-",
},
]
: []),
...(themeConfig.colors.darkmode?.text_color
? [
{
colors: themeConfig.colors.darkmode.text_color,
prefix: "darkmode-",
},
]
: []),
];
// Set color variables