Skip to content

Commit 0d58151

Browse files
Upted the tailwindcss config
1 parent a8217f8 commit 0d58151

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tailwind.config.cjs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
/* jshint esversion: 9 */
22

33
const { spacing, fontFamily } = require('tailwindcss/defaultTheme');
4+
const plugin = require('tailwindcss/plugin');
5+
6+
const backfaceVisibility = plugin(({ addUtilities }) => {
7+
addUtilities({
8+
'.backface-visibile': {
9+
'backface-visibility': 'visible',
10+
},
11+
'.backface-hidden': {
12+
'backface-visibility': 'hidden',
13+
},
14+
});
15+
});
416

517
const config = {
618
mode: 'jit',
@@ -99,7 +111,7 @@ const config = {
99111
boxShadow: ['dark'],
100112
},
101113
},
102-
plugins: [require('@tailwindcss/typography')],
114+
plugins: [require('@tailwindcss/typography'), backfaceVisibility],
103115
};
104116

105117
module.exports = config;

0 commit comments

Comments
 (0)