What is bulma?
Bulma is a modern CSS framework based on Flexbox. It provides a set of responsive, mobile-first components that are easy to use and customize. Bulma is known for its simplicity and ease of use, making it a popular choice for developers looking to quickly build responsive web interfaces.
What are bulma's main functionalities?
Grid System
Bulma's grid system is based on Flexbox, allowing for easy creation of responsive layouts. The 'columns' class creates a flex container, and each 'column' class creates a flex item.
<div class="columns">
<div class="column">First column</div>
<div class="column">Second column</div>
<div class="column">Third column</div>
<div class="column">Fourth column</div>
</div>
Navigation Bar
Bulma provides a responsive navigation bar component that can be easily customized. The 'navbar' class creates the navigation bar, and 'navbar-item' is used for individual items within the bar.
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="https://bulma.io/images/bulma-logo.png" width="112" height="28">
</a>
</div>
<div class="navbar-menu">
<div class="navbar-start">
<a class="navbar-item" href="/">
Home
</a>
<a class="navbar-item" href="/">
Documentation
</a>
</div>
</div>
</nav>
Cards
Bulma's card component is a flexible and extensible content container. It includes options for images, media, and various content sections.
<div class="card">
<div class="card-image">
<figure class="image is-4by3">
<img src="https://bulma.io/images/placeholders/1280x960.png" alt="Placeholder image">
</figure>
</div>
<div class="card-content">
<div class="media">
<div class="media-left">
<figure class="image is-48x48">
<img src="https://bulma.io/images/placeholders/96x96.png" alt="Placeholder image">
</figure>
</div>
<div class="media-content">
<p class="title is-4">John Smith</p>
<p class="subtitle is-6">@johnsmith</p>
</div>
</div>
<div class="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus nec iaculis mauris.
<a>@bulmaio</a>.
<a href="#">#css</a> <a href="#">#responsive</a>
<br>
<time datetime="2016-1-1">11:09 PM - 1 Jan 2016</time>
</div>
</div>
</div>
Other packages similar to bulma
bootstrap
Bootstrap is one of the most popular CSS frameworks. It provides a comprehensive set of components and utilities for building responsive, mobile-first websites. Compared to Bulma, Bootstrap has a larger community and more extensive documentation, but Bulma is often praised for its simplicity and ease of use.
foundation-sites
Foundation is a responsive front-end framework similar to Bulma. It offers a range of components and a flexible grid system. Foundation is known for its advanced features and customization options, making it a good choice for complex projects, whereas Bulma is often preferred for its straightforward approach.
tailwindcss
Tailwind CSS is a utility-first CSS framework that allows for rapid UI development. Unlike Bulma, which provides pre-designed components, Tailwind focuses on low-level utility classes that can be composed to build custom designs. This makes Tailwind highly flexible but requires a different approach to styling compared to Bulma.
Bulma is a modern CSS framework based on Flexbox.
Quick install
Bulma is in early but active development! Try it out now:
NPM
npm install bulma
CDN
https://cdnjs.cloudflare.com/ajax/libs/bulma/0.0.20/css/bulma.min.css
Feel free to raise an issue or submit a pull request.
CSS only
Bulma is a CSS framework. As such, the sole output is a single CSS file: bulma.css
You can either use that file, "out of the box", or download the Sass source files to customize the variables.
There is no JavaScript included. People generally want to use their own JS implementation (and usually already have one). Bulma can be considered "environment agnostic": it's just the style layer on top of the logic.
Roadmap
Bulma keeps track of the upcoming fixes and features on Trello: Bulma roadmap
It's more a tasklist than a roadmap, but it will give you an overview of where things are going!
Documentation website
This repository is only for the Bulma source files.
The website (which includes the documentation) is in another repo: https://github.com/jgthms/bulma-website
If you encounter a typo or a lack of documentation, submit an issue there.
Browser Support
Bulma uses autoprefixer to make (most) Flexbox features compatible with earlier browser versions. According to Can I use, Bulma is compatible with:
- Chrome
- Edge
- Firefox
- Internet Explorer (10+)
- Opera
- Safari
Copyright and license
Code copyright 2016 Jeremy Thomas. Code released under the MIT license.