Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export css variables to a separate file #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

feat: export css variables to a separate file #11

wants to merge 4 commits into from

Conversation

jshrssll
Copy link

@jshrssll jshrssll commented Aug 4, 2020

This feature enables users to export the CSS variables into an separate file so that they are not bundled with the compiled tailwind.css file. This enables portability and easy theming across multiple sites & design systems that are derived from a single tailwind.css file.

This is a personal use case I'm facing and rather hacking the installed node_module files, I would love to see this feature supported in the distributed package.

There are two new options that are checked outputToFile and outputFilePath. Descriptions of their use can be found in the README.

@omarkhatibco
Copy link
Owner

Hi @splurtcake,

thanks for your pull request I don't think it's a good idea to use fs here since PostCSS handle eveything.

I'm thinking about a better idea, what about something like @tailwind root directive same as @tailwind base or tailwind utilities?

it's would be a clean approach for this plugin and less code for us, but I still need to ask Tailwind maintainer about this approach before implementing it.

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