Skip to content

Commit

Permalink
Use named groups for themes (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
psirenny committed Feb 12, 2024
1 parent 82eec2e commit 37fc0e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/young-squids-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/tailwind-config": minor
---

Use named groups for themes.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const radixColorThemePlugin = plugin(
};

for (const [themeName, themeOptions] of Object.entries(options)) {
const themeSelector = themeName === "DEFAULT" ? "*" : `.is-product-${themeName}`;
const themeSelector = themeName === "DEFAULT" ? "*" : `.group\\/${themeName}`;

rootVariables[themeSelector] = {
colors: {},
Expand Down

0 comments on commit 37fc0e7

Please sign in to comment.