Bulma is a CSS library . This means it provides CSS classes to help you style your HTML code.
To use Bulma, you can either use the pre-compiled .css
file or install the .sass
files so you can customize it to your needs.
Recommended
Option 1. Use a CDN
You can import the CSS file directly from jsDelivr :
CSS @import
HTML <link>
<link rel= "stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected] /css/bulma.min.css" >
The RTL version is also available:
CSS @import
HTML <link>
<link rel= "stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected] /css/bulma-rtl.min.css" >
Bulma is also available via cdnjs .
Option 2. Download the Github release
You can get the latest Bulma release as a .zip
from GitHub:
Download v0.9.3
Recommended
Option 1. Install the NPM package
Bulma is available through npm :
Bulma is also available via cdnjs .
Option 2. Clone the GitHub repository
Bulma is available on GitHub :
SSH
HTTPS
GitHub CLI
git clone https://github.com/jgthms/bulma.git
gh repo clone jgthms/bulma
Note that the GitHub repository also includes this documentation, so it’s significantly bigger than the NPM package.
Code requirements
#
For Bulma to work correctly, you need to make your webpage responsive .
Use the HTML5 doctype
<!DOCTYPE html>
Add the responsive viewport meta tag
<meta name= "viewport" content= "width=device-width, initial-scale=1" >
Starter template
#
If you want to get started right away , you can use this HTML starter template . Just copy/paste this code in a file and save it on your computer.
<!DOCTYPE html>
<html>
<head>
<meta charset= "utf-8" >
<meta name= "viewport" content= "width=device-width, initial-scale=1" >
<title> Hello Bulma!</title>
<link rel= "stylesheet" href= "https://cdn.jsdelivr.net/npm/[email protected] /css/bulma.min.css" >
</head>
<body>
<section class= "section" >
<div class= "container" >
<h1 class= "title" >
Hello World
</h1>
<p class= "subtitle" >
My first website with <strong> Bulma</strong> !
</p>
</div>
</section>
</body>
</html>
bulma-start
#
bulma-start
is a tiny npm package that includes the npm
dependencies you need to build your own website with Bulma.
Check it out