Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Yielded theme does not contain plugin-added utilities #61

Open
kamal opened this issue Apr 29, 2020 · 0 comments
Open

Yielded theme does not contain plugin-added utilities #61

kamal opened this issue Apr 29, 2020 · 0 comments

Comments

@kamal
Copy link

kamal commented Apr 29, 2020

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant