Skip to content

Commit

Permalink
Apply tailwindcss rules with !important (#29437)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
silverwind and wxiaoguang authored Feb 27, 2024
1 parent eb2fc18 commit e55926e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const isProduction = env.NODE_ENV !== 'development';

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

0 comments on commit e55926e

Please sign in to comment.