Skip to content

Commit

Permalink
feat(style): translucentPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Sep 23, 2023
1 parent e35bb1a commit ff9588f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/style/lib/translucent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import plugin from 'tailwindcss/plugin.js';

export const translucentPlugin = plugin(({addUtilities}) => {
addUtilities({
'@supports (backdrop-filter: blur(20px))': {
'.translucent': {
'--tw-bg-opacity': '0.8 !important',
'backdrop-filter': 'saturate(180%) blur(20px)',
},
},
});
});

0 comments on commit ff9588f

Please sign in to comment.