Foundation-sites: Foundation 7: Drop Prototype & Flexbox Utilities and recommend Tailwind for Utility use cases!

Created on 12 Apr 2018  路  9Comments  路  Source: foundation/foundation-sites

I know I have worked largely on them being the creator of Prototype Utilities and worked good amount on Flexbox Utilities

But,
I really think that time is now with Foundation 7 we can dump it
Instead we can and should recommend Tailwind on top of Foundation 7
https://tailwindcss.com/docs/what-is-tailwind

Can Tailwind be used together with Foundation 7

Yes if we plan to use prefixes like zf- then why not!

Foundation 7 Revisit for F7

Most helpful comment

Alright and what do you have in mind regarding the replacement with Tailwind?
Own page / chapter in the docs incl. a ready-to-go setup in the foundation templates or only a brief recommendation with linking to docs of Tailwind?

I'm asking because as far as I (currently) understand it feels somehow like a downgrade. I mean many users are used to the utilities and removing them completely without an alternative that is equally easy to use will end in frustration.

All 9 comments

Moreover it allows prefixes also https://tailwindcss.com/docs/configuration#prefix

So I think a recommendation like this for Foundation 7 will be a great combo

zf- for A Solid Foundation for the website
tw- for Utility classes that was never a motive of Foundation? Am I Right or Am I Right?

But be aware that Tailwind may create too many classes. I always thought about using Tailwind in small projects but it will introduce many new classes.

We are just recommending tailwind for utilities stuff

We are not saying that you should use utilities ...

I think main motive of dumping all these classes would be that we eliminate all these classes from our project

Foundation 7 should only care about helping users to create components and that's it ...
People should not use any utility classes in production instead should use sass mixins which foundation workflow already provides :)

You are right on this. I agree with you that we can move this out of the component framework.

We are just recommending tailwind for utilities stuff

Just to be sure I understand you correctly @IamManchanda:
you're suggesting to completely remove the Prototype Utilities for Foundation 7 and instead leave it up to the user (by only recommending tailwind)?

@SassNinja ... Not only prototype but also flexbox utilities

Alright and what do you have in mind regarding the replacement with Tailwind?
Own page / chapter in the docs incl. a ready-to-go setup in the foundation templates or only a brief recommendation with linking to docs of Tailwind?

I'm asking because as far as I (currently) understand it feels somehow like a downgrade. I mean many users are used to the utilities and removing them completely without an alternative that is equally easy to use will end in frustration.

@sassninja I agree. I think a guide that maps utilities between Foundation and Tailwind would be useful, as well as a guide for upgrading from v6 to v7

I totally love the idea of using outside resources in Foundation. I don't agree that Tailwind is the answer because I don't fundamentally agree with polluting my HTML with so many utility classes. This kind of feature needs to be small and opinionated.

If we use something like Tailwind, perhaps we only include a small set of utilities and show people how to use the others.

What's the benefit? Less maintenance of our own CSS?

Was this page helpful?
0 / 5 - 0 ratings