Skip to content

Commit

Permalink
fix(ui): add better contrast on shine effect color
Browse files Browse the repository at this point in the history
fix #523
  • Loading branch information
mateusfg7 committed May 30, 2023
1 parent 48631e2 commit 1947d4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/styles/utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
}

.shine {
@apply absolute top-0 left-0 h-full w-1/3 -translate-x-full -skew-x-20 bg-white/0 bg-gradient-to-r from-white/0 via-white/10 to-white/0 text-white/0;
@apply absolute top-0 left-0 h-full w-1/3 -translate-x-full -skew-x-20;
@apply bg-white/0 bg-gradient-to-r from-white/0 via-white/30 to-white/0 text-white/0 dark:via-white/10;
}
}
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = {
},
shine: {
'20%, 100%': {
transform: 'translateX(300%)'
transform: 'translateX(300%) skewX(-20deg)'
}
}
}
Expand Down

0 comments on commit 1947d4d

Please sign in to comment.