Need advice about which tool to choose?Ask the StackShare community!

Foundation

1.2K
1.2K
+ 1
740
Tailwind CSS

3.3K
2.8K
+ 1
244
Add tool

Foundation vs Tailwind CSS: What are the differences?

Introduction: Foundation and Tailwind CSS are both popular CSS frameworks used for building responsive websites. While they have similarities in terms of providing a grid system, responsive design, and pre-built components, there are several key differences between the two.

  1. Flexibility: Foundation offers a high level of customization options, allowing developers to choose only the components they need and customize them extensively. On the other hand, Tailwind CSS takes a more opinionated approach, providing a comprehensive set of utility classes that can be combined to create any design required.

  2. File Size: One of the major advantages of Tailwind CSS is its small file size. It uses a utility-first approach, where utility classes are used to style HTML elements without the need for additional CSS classes. This results in a smaller CSS file size compared to Foundation, which includes a larger set of pre-built components and styles.

  3. Learning Curve: Foundation has a steeper learning curve as it requires a deeper understanding of CSS and its underlying concepts. Developers need to write more CSS code to style their elements. On the other hand, Tailwind CSS provides a more intuitive and easy-to-use approach with its utility classes. Developers can quickly style their elements by applying the relevant classes without writing custom CSS.

  4. Configuration: While both frameworks offer configuration options, Foundation provides more configuration choices out of the box. It allows developers to customize various aspects of the framework, such as grid settings, typography, and color schemes. Tailwind CSS, on the other hand, focuses on an out-of-the-box experience and minimizes configuration needs by providing sensible defaults that cover most use cases.

  5. Design Philosophy: Foundation follows a semantic approach, where CSS classes are named after the purpose they serve, such as "title" or "button." It encourages developers to write HTML with semantic meaning. On the other hand, Tailwind CSS takes a utility-first approach, where CSS classes are named after the specific style they provide, such as "text-center" or "bg-red-500". It focuses more on applying utility classes directly to HTML elements.

  6. Community and Ecosystem: Foundation has been around for a longer time and has a more established community and ecosystem. It has a wider range of resources, tutorials, and community support available. Tailwind CSS, although newer, has been gaining popularity rapidly and has a growing community with its own set of resources and support.

In summary, Foundation offers more customization options and relies on a deeper understanding of CSS, while Tailwind CSS takes a utility-first approach with a smaller file size and an easier learning curve.

Advice on Foundation and Tailwind CSS
Ashish Sharma
Sr. UI Associate at Daffodil Software · | 5 upvotes · 679.3K views

I am a bit confused when to choose Bootstrap vs Material Design or Tailwind CSS, and why? I mean, in which kind of projects we can work with bootstrap/Material/Tailwind CSS? If the design is made up on the grid, we prefer bootstrap, and if flat design, then material design. Similarly, when do we choose tailwind CSS?

Any suggestion would be appreciated?

See more
Replies (4)

Hi Ashish,

If you need minimal work to be done from your end and like most of the components / design available out of the box - go with Bootstrap. This is the oldest and has the widest adoption and a whole range of components built out by others.

If you like Material design, this is a good choice too. Please note that Bootstrap also has a Material theme, though it is not as native.

Both of these above frameworks are bulky and has more than what you may need.

If you like to build micro-components in a elegant way, TailwindCSS is the way to go.

See more

I don't know about material design.

You would go with Bootstrap if you want to prototype / build something without bothering about the design at all and you are OK if everything looks kinda template-y, using bootstrap out of the box components.

Go with Tailwind if you need a sleek design, a user interface where building with components will be important (because tailwind strongly favors component-based UI), and you know you will need to extend the built-in classes with your own (because tailwind is very easy to extend)

I would personally recommend tailwind over bootstrap any day of the week.

See more
Recommends
on
Tailwind CSSTailwind CSS

Tailwind is great you don't have to mess with naming things and it is so much more flexible than the cookie cutter bootstrap, but I don't know about material UI. I recommend tailwind it's super simple to learn and has great code snippets.

See more
Recommends
on
Tailwind CSSTailwind CSS

Put simply, you should use Tailwind regardless. It is a great addition to whatever you use because it removes the hassle of writing CSS.

See more
Needs advice
on
BootstrapBootstrap
and
Tailwind CSSTailwind CSS

I am planning to redesign my entire application, which is currently in Bootstrap. I heard about Tailwind CSS, and I think its really cool to work with. Is it okay if I use Bootstrap and Tailwind together? I can't remove Bootstrap altogether, as my application is using the js dependencies of Bootstrap, which I don't want to disturb.

See more
Replies (3)
Ivo Pereira

Factually talking about systems, we gotta make two bold headlines about each one: Bootstrap has been around for a while, has a vast community and much probably will not be gone in a while. Tailwind in the other hand, is the trendy framework starting from the past year. Referring to UI, I really prefer Tailwind, however I can't ignore the fact that a lot of libraries that emerged felt short in the end after a few years (a point where Bootstrap kept his status).

You are able to use both them together but I advise you — it will be a mess. And you gotta hope that you won't have any kind of conflicts between class naming and other general styling.

My recommendation would be to use one and only one. Perhaps rebuild the UI with a specific framework in mind, otherwise you will start to workaround things of both frameworks to contradict each other - and your team (if you work with one) will hate you.

See more
Arslan Ameer
Sr. Software Engineer at Forenax Technologies · | 5 upvotes · 592.5K views
Recommends
on
BootstrapBootstrap

You might have heard about bootstrap 5. Bootstrap is now totally jQuery free. i have tried foundation and bulma too. but eventually fall again for bootstrap, as it is most convenient and stable. i use bootstrap with less or sass.

See more
Barry Hylton
Recommends
on
BootstrapBootstrap

I use both of these regularly. If you're going to have to use Bootstrap due to your js dependencies, stick with Bootstrap. I actually prefer Tailwind, but trying to use both of them and make them "play nice" feels like making things more complex with no real benefit.

EDIT: Sorry for the late response, I just noticed how old this is. StackShare sent me this in an email for some reason so I assumed it was relatively fresh.

See more
Needs advice
on
BootstrapBootstrapTailwind CSSTailwind CSS
and
UIkItUIkIt

We are re-modifying the existing portal to the new one. Looking out for a CSS framework where over-rides are possible, the performance of page loading, extendable, etc Please suggest between tailwind, UIkit and bootstrap frameworks explaining in detail on different factors. I request your help on the same.

See more
Replies (2)
Collins Ogbuzuru
Front-end dev at Evolve credit · | 3 upvotes · 555.3K views
Recommends
on
Tailwind CSSTailwind CSS

Hey Sai, My thoughts on UIkit - It's beautiful, fast, and it has good animation too. Why would I choose it ? Nothing other than giving the internet a new look .

My thoughts on Bootstrap - it's beautiful, if used well. It's very fast and has clean class naming convention unlike Uikit. Why I would choose it ? It's been tested and trusted, I can find a whole lot of resources and a community around it. Also with the type of project you working on I bet Bootstrap would do the job .

Now, considering Tailwind, it's seen as a classic, simple-to-set-up tool with clean utilities. I wouldn't think of tailwind the way I would to Bootstrap or UIkit. What do I mean ? Tailwind is more like a tool set to create your own design flow. Tailwind allows you to build unique design elements, offering you a level of customization that may be unmatched by the other frameworks.

My final thoughts.

If you have the time , setup and use tailwind it will give you a great chance when it comes to customization and performance.

See more
Brett Stevenson
Recommends
on
BootstrapBootstrap

I'm a big proponent of Tailwind and I personally use it whenever I get the chance, mostly because it's not really a UI-kit, but it sounds like in this case a UI-kit like Bootstrap with pre-defined components is more what you are looking for. Bootstrap is (relatively) extendable and overridable and makes it really simple to make a decent looking UI using a handful of pre-defined classes, whereas with Tailwind you configure the classes and create your own components. My main reason for replacing Bootstrap in my workflow is that it feels like the component creation has become so abstracted from the developer that any meaningful customization becomes a chore, resulting in many websites having the generic "Bootstrap-look". Nonetheless, it is effective for creating a pleasant and responsive UI. Though, I don't have any experience with UIkit.

See more
Decisions about Foundation and Tailwind CSS
Xinyi Liu
Software Developer at BigClarity · | 6 upvotes · 337.7K views

As our team will be building a web application, HTML5 and CSS3 are one of the standardized combinations to implement the structure and the styling of a webpage. Material-UI comes with all sorts of predesigned web components such as buttons and dropdowns that will save us tons of development time. Since it is a component library designed for React, it suits our needs. However, we do acknowledge that predesigned components may sometimes cause pains especially when it comes to custom styling. To make our life even easier, we also adopted Tailwind CSS. It is a CSS framework providing low-level utility classes that will act as building blocks when we create custom designs.

See more
Bridget Sarah
Full Stack Developer at Bridget Sarah · | 10 upvotes · 642.7K views

I do prefer to write things from scratch however when it came to wanting to jump-start the frontend, I found that it was taking me a lot longer hence why needing to use something very fast.

Bootstrap was the boom when it came out, I didn't like it, to be honest, set in its way and a pain to over-ride and in addition, you can tell from a distance if you're using boostrap and as everything looks the same.

I came across Tailwind CSS as I wanted more dynamic features, you could say, I've been now doing it for a few days and I love it a lot. I've been practising with the full stack part installed but I an't we wait until I do a new project, and I'll e able to select exactly what I want. Much faster.

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Foundation
Pros of Tailwind CSS
  • 160
    Responsive grid
  • 93
    Mobile first
  • 80
    Open source
  • 75
    Semantic
  • 72
    Customizable
  • 52
    Quick to prototype
  • 50
    Simple ui
  • 45
    Fast
  • 44
    Best practices
  • 39
    Easy setup
  • 6
    Neutral style
  • 6
    HTML, SCSS and JS
  • 5
    Accessibility support
  • 5
    Professional
  • 3
    Xy grid
  • 2
    Sass
  • 2
    Every new version is smaller, smarter & more efficient
  • 1
    Robust
  • 44
    Highly customizable
  • 33
    Quick setup
  • 30
    Utility first styles, its amazing
  • 24
    Versatile
  • 23
    Great docs
  • 16
    Customizable
  • 16
    Fast
  • 15
    Consistent
  • 11
    Very light
  • 11
    Semantic
  • 11
    Open source
  • 9
    Responsive
  • 1
    Easy Tree shaking with Tailwind CLI

Sign up to add or upvote prosMake informed product decisions

Cons of Foundation
Cons of Tailwind CSS
  • 5
    Requires jQuery
  • 4
    Awful site
  • 14
    Priced
  • 5
    Cluttered html structure

Sign up to add or upvote consMake informed product decisions

What is Foundation?

Foundation is the most advanced responsive front-end framework in the world. You can quickly prototype and build sites or apps that work on any kind of device with Foundation, which includes layout constructs (like a fully responsive grid), elements and best practices.

What is Tailwind CSS?

Tailwind is different from frameworks like Bootstrap, Foundation, or Bulma in that it's not a UI kit. It doesn't have a default theme, and there are no build-in UI components. It comes with a menu of predesigned widgets to build your site with, but doesn't impose design decisions that are difficult to undo.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Foundation?
What companies use Tailwind CSS?
See which teams inside your own company are using Foundation or Tailwind CSS.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Foundation?
What tools integrate with Tailwind CSS?

Sign up to get full access to all the tool integrationsMake informed product decisions

Blog Posts

GitHubGitSlack+30
27
18325
What are some alternatives to Foundation and Tailwind CSS?
Bootstrap
Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.
Primer
Primer is the basecoat of GitHub, made by nerds just like you who share a passion for HTML and CSS.
Material Design for Angular
Material Design is a specification for a unified system of visual, motion, and interaction design that adapts across different devices. Our goal is to deliver a lean, lightweight set of AngularJS-native UI elements that implement the material design system for use in Angular SPAs.
Animate.css
It is a bunch of cool, fun, and cross-browser animations for you to use in your projects. Great for emphasis, home pages, sliders, and general just-add-water-awesomeness.
Material-UI
Material UI is a library of React UI components that implements Google's Material Design.
See all alternatives