Skip to content

Commit

Permalink
bugfix/background-hover-token-color (#1824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud-zino committed Aug 5, 2023
1 parent 18bbab9 commit 08685fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fresh-crews-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@skeletonlabs/skeleton": patch
---

bugfix: Fixed `.bg-hover-primary-token` color in dark mode.
2 changes: 1 addition & 1 deletion packages/skeleton/src/lib/tailwind/tokens/backgrounds.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = () => {
// Hover
// Example: .bg-primary-hover-token
classes[`.bg-${n}-hover-token:hover`] = { 'background-color': `rgb(var(--color-${n}-500) / ${hoverAlpha})` };
classes[`.dark .bg-${n}-hover-token:hover`] = { 'background-color': `rgb(var(--color-${n}-200) / ${hoverAlpha})` };
classes[`.dark .bg-${n}-hover-token:hover`] = { 'background-color': `rgb(var(--color-${n}-500) / ${hoverAlpha})` };

// Active
// Example: .bg-primary-active-token
Expand Down

0 comments on commit 08685fb

Please sign in to comment.