tailwindcss-custom-forms icon indicating copy to clipboard operation
tailwindcss-custom-forms copied to clipboard

Yielded theme does not contain plugin-added utilities

Open kamal opened this issue 4 years ago • 0 comments

I noticed that the theme yielded in customForms does not include utilities that were added by other plugins. I have tried reordering the order of plugins such that @tailwindcss/custom-forms is after my custom plugin, but it doesn't look like it reflects any changes to the theme. Here's an example to illustrate what's happening:

module.exports = {
  theme: {
    customForms: (theme) => {
      console.log(theme('lineHeight')); // i don't see my added lineHeights
      return {
        ..
      };
    }
  },
  plugins: [
    require("./my-custom-theme"), // calls addUtilities(.., variants("lineHeight"))
    require("@tailwindcss/custom-forms")
  ]
}

Is this supported?

kamal avatar Apr 29 '20 01:04 kamal