Skip to content

Commit e55926e

Browse files
Apply tailwindcss rules with !important (#29437)
As per discussion in #29423, I think this is the right way that does not burden developers having to think about CSS precedence which should be irrelevant with an atomic CSS framework. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
1 parent eb2fc18 commit e55926e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tailwind.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const isProduction = env.NODE_ENV !== 'development';
66

77
export default {
88
prefix: 'tw-',
9+
important: true, // the frameworks are mixed together, so tailwind needs to override other framework's styles
910
content: [
1011
isProduction && '!./templates/devtest/**/*',
1112
isProduction && '!./web_src/js/standalone/devtest.js',

0 commit comments

Comments
 (0)