designwithfocus

CSS

Bootstrap vs Material UI: A CSS Kit or React Parts

By Design With Focus Team 6 min read
A stylesheet link beside a small React component tree labeled as a button

Short answer

Bootstrap and Material UI solve different jobs. Bootstrap 5.3 is a CSS and JavaScript toolkit for HTML, while Material UI is a set of React components with a theme object. The v5.3 docs link Bootstrap 5.3.9 on the CDN. Both publish an MIT license. Neither page states a bundle size.

Last verified against the sources listed below.

Key takeaways

  • Bootstrap's v5.3 docs show CDN files at version 5.3.9 for CSS and the JS bundle.
  • Bootstrap's license FAQ says the project is MIT and copyright 2026.
  • Material UI's install command is npm install @mui/material @emotion/react @emotion/styled.
  • Peer dependencies on that page are React 17, 18, or 19, plus the matching react-dom.
  • The Material UI LICENSE file on the master branch is the MIT License, copyright 2014 Call-Em-All.

Bootstrap vs Material UI is a choice between a CSS and JavaScript kit for HTML, and a component library that runs inside React.

CSS is what Bootstrap hands you in a stylesheet.

JavaScript is in both projects, but Material UI’s public overview describes React components, not a class you paste onto a div. Use the one that matches the page you are actually building.

What does each project install?

Bootstrap installs CSS and a script. Material UI installs React packages and, by default, Emotion.

The Bootstrap v5.3 getting-started page tells you to add a stylesheet and a bundle script. The CDN links on that page point at Bootstrap 5.3.9 for both the minified CSS and bootstrap.bundle.min.js, which includes Popper. The page says to keep the integrity hash in step with the version, because each hash belongs to one file.

Material UI’s installation page gives npm install @mui/material @emotion/react @emotion/styled. React and react-dom must already be present, at ^17.0.0, ^18.0.0, or ^19.0.0. On React 18 or below, the page says to pin react-is to the same React version, because Material UI uses react-is@19 and a mismatch can break prop-type checks.

How do CSS classes differ from React parts?

Bootstrap styles HTML elements. Material UI renders React components that read a theme.

Bootstrap’s introduction requires <!doctype html> and a viewport meta tag. It switches global box-sizing to border-box. Reboot is its cross-browser reset.

Components that move, such as modals, dropdowns, and tooltips, need the JavaScript. Tooltips and popovers need Popper too.

Material UI’s overview calls the project an open-source React component library and says it supports Material Design 2. The theming page says components follow the light theme until you wrap them in ThemeProvider with a theme from createTheme. useTheme reads that object inside a function component.

This is React context. A static HTML file with no React runtime will not host it.

Choice Bootstrap 5.3 Material UI
What you install CSS file and JS bundle, or the source @mui/material plus Emotion, in a React app
CSS vs React Classes on HTML. Script for some widgets React components
Theming CSS overrides on the toolkit’s styles createTheme and ThemeProvider
License MIT, copyright 2026 MIT, copyright 2014 Call-Em-All
When to choose Pages you build as HTML and CSS An interface that is already React

The install page says a CDN build of Material UI is fine for a prototype and a poor fit for production, because the browser downloads the whole library. It does not publish a kilobyte figure. Bootstrap’s introduction likewise says you can skip Popper if you do not need dropdowns, popovers, or tooltips, and it calls that a savings of “some kilobytes,” without a number.

This comparison stops there.

How does theming work?

Bootstrap theming is CSS. Material UI theming is a theme object passed through React.

Bootstrap’s getting-started page points source users at the package and at Sass-oriented customization elsewhere in the docs. The part this page itself spells out is the rendered CSS: one link tag, then your own rules. A button generator can produce a single control’s CSS when you do not want the whole kit.

Material UI’s theming page lists palette, typography, spacing, breakpoints, z-index, transitions, and components as the main variables. The default type is light. Setting cssVariables: true emits custom properties, and the example shows --mui-palette-primary-main.

The page also documents enhanceHighContrast as available with v9.1.0. That note is about the helper, not a version printed on the install page, so it is not a claim about the whole package number.

Material Design 3’s elevation guide is a different site. It measures elevation as distance on the z-axis and prefers tone over a shadow at every level. Material UI’s overview still says the React library supports Material Design 2.

Read those as two documents, not as one version string.

Which license applies?

Both are MIT. You keep the copyright notice. You do not get a warranty.

Bootstrap’s license FAQ says you may use, modify, and ship the code, including in commercial work, if the license notice stays in the CSS and JavaScript. You may not imply that Bootstrap endorses your build. You do not have to contribute changes back.

The raw LICENSE file for Material UI on the master branch is the standard MIT text, copyright 2014 Call-Em-All. The notice has to remain in copies or substantial portions. That is the grant for the library source.

It is not a grant to the Roboto font files or to Google’s design marks. Those sit outside this license file.

When should you choose?

Choose Bootstrap for HTML and CSS. Choose Material UI when the UI is a React tree.

Pick Bootstrap if the page is HTML, the team styles with classes, and you want modals and dropdowns from one script. Pick Material UI if the app is already React 17, 18, or 19 and you want themed components instead of a global stylesheet. A single button does not need either one.

Do not install both to get one look. They will fight over buttons, focus, and spacing. Start from the stack you have.

If there is no React, Material UI is the wrong first install. If the app is already full of React state, Bootstrap’s class sheet will not replace ThemeProvider. ## What should you read before you add either one?

Read the install page that matches the files you already have.

If the repository is HTML, CSS, and a script tag, Bootstrap’s getting-started steps are the ones that match. You need the HTML5 doctype, the viewport meta tag, the stylesheet, and the bundle only if you use the widgets that require it.

If the repository is React, Material UI’s install command and peer range are the ones that match. Confirm React 17, 18, or 19 before you add the packages. Then decide whether ThemeProvider will own the color.

Adding Bootstrap classes on top of those components duplicates buttons and focus styles. Pick one system for the controls, and keep the other out until you have a reason written down.

Frequently asked questions

Is Bootstrap a React library?

No. The getting-started page shows a plain HTML file, a stylesheet link, and a script tag. It requires the HTML5 doctype and a viewport meta tag, and it sets box-sizing to border-box so padding does not change the declared width. Some components need the JavaScript bundle, and dropdowns, popovers, and tooltips also need Popper. You can add Bootstrap to a React app yourself, but the docs you open on getbootstrap.com are teaching CSS classes and a script, not React components.

What do you install for Material UI?

The installation page says to run npm install @mui/material @emotion/react @emotion/styled. React and react-dom are peer dependencies, accepted at versions 17, 18, or 19. Emotion is the default styling engine. Styled-components is optional, and the page says that as of late 2021 it is not compatible with server-rendered Material UI, so Emotion is the path they recommend for server rendering. Roboto is the default font, at weights 300, 400, 500, and 700. Icons are a separate package, @mui/icons-material.

Are both projects free to use in a product?

Both license texts you can open are MIT. Bootstrap's license FAQ says the code is released under the MIT license, copyright 2026, and that you must keep the license and copyright notice in the CSS and JavaScript files. The Material UI LICENSE file on the master branch is the MIT License, copyright 2014 Call-Em-All, and it requires the notice in copies or substantial portions. MIT still means no warranty. The FAQ also says you do not have to publish your changes back to Bootstrap.

How do you change colors in each one?

Bootstrap is themed as a CSS toolkit: you override variables and classes in CSS, which is what the introduction points you toward when it talks about building from the source. Material UI's theming page says the theme sets color, type, and surface darkness, and that components use the light theme unless you change it. You pass a theme from createTheme to ThemeProvider. Setting cssVariables to true writes custom properties such as the primary main color.

Does Material UI implement Material Design 3?

The Material UI overview says the library implements Google's Material Design and, in the next paragraph, that it supports Material Design 2. It points at a GitHub issue for later design updates. Material Design 3's own elevation page is a separate document. It defines elevation as z-axis distance and says shadows are no longer the default cue at every level. Do not treat that M3 page as the version number of the React package. The install page does not print a package version.

Sources