Skip to content

Conversation

@adamwathan
Copy link
Member

@adamwathan adamwathan commented Mar 12, 2018

Resolves #256.

Prior to this PR, it was impossible to disable the .container component because it's sort of a special snowflake. It's not a utility class and doesn't support any of the variants that the rest of our utilities support; it's actually a component, and has different styles at different breakpoints.

With the introduction of the new plugin system and the @tailwind components directive, it makes sense to inject the container styles into the components section of the user's stylesheet, and making the container a built-in plugin instead of a special-case hard-coded utility means it's now trivial to disable; you simply remove it from the plugin list:

  plugins: [
-   require('tailwindcss/plugins/container')(),
  ],

This is a breaking change so slated for 0.5.

@adamwathan adamwathan changed the base branch from master to 0.5 March 12, 2018 19:34
@adamwathan adamwathan merged commit ec804ca into 0.5 Mar 12, 2018
@adamwathan adamwathan deleted the container-plugin branch May 30, 2018 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants