We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8217f8 commit 0d58151Copy full SHA for 0d58151
tailwind.config.cjs
@@ -1,6 +1,18 @@
1
/* jshint esversion: 9 */
2
3
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
+});
16
17
const config = {
18
mode: 'jit',
@@ -99,7 +111,7 @@ const config = {
99
111
boxShadow: ['dark'],
100
112
},
101
113
102
- plugins: [require('@tailwindcss/typography')],
114
+ plugins: [require('@tailwindcss/typography'), backfaceVisibility],
103
115
};
104
116
105
117
module.exports = config;
0 commit comments