Skip to content

Support @import "tailwindcss" using top-level index.css file - #11205

Merged
RobinMalfait merged 2 commits into
masterfrom
feat/add-tailwindcss-import
May 10, 2023
Merged

RobinMalfait merged 2 commits into
masterfrom
feat/add-tailwindcss-import

Conversation

@RobinMalfait

Copy link
Copy Markdown
Contributor

This PR adds an index.css file to the root of the package that contains the @tailwind directives for each of Tailwind's layers.

/* node_modules/tailwindcss/index.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

If you have postcss-import configured in your project, this makes it possible to add Tailwind to your CSS using a simple @import instead of writing out the @tailwind directives yourself:

@import "tailwindcss";

@adamwathan adamwathan changed the title Allow to use @import "tailwindcss"; directly Support @import "tailwindcss" using top-level index.css file May 10, 2023
@RobinMalfait
RobinMalfait force-pushed the feat/add-tailwindcss-import branch from 3f96f39 to 623aca6 Compare May 10, 2023 17:07
@RobinMalfait
RobinMalfait merged commit d637f37 into master May 10, 2023
@RobinMalfait
RobinMalfait deleted the feat/add-tailwindcss-import branch May 10, 2023 17:44
RobinMalfait added a commit that referenced this pull request May 12, 2023
)

* make `@import "tailwindcss"` work out of the box

* update changelog
brandonmcconnell pushed a commit to toolwind/upgrade that referenced this pull request May 13, 2023
…lwindlabs#11205)

* make `@import "tailwindcss"` work out of the box

* update changelog
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.

1 participant