Apply tailwindcss rules with `!important` (#29437)

As per discussion in https://github.com/go-gitea/gitea/pull/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>
pull/28838/merge
silverwind 9 months ago committed by GitHub
parent eb2fc1818b
commit e55926ebfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      tailwind.config.js

@ -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',

Loading…
Cancel
Save