Skip to content

Bulma CSS libraryλ︎

A simple and clean Cascading Style Sheet (CSS) library used to create professional looking websites.

Bulma is a CSS only framework (no JavaScript) that provides a range of easy to apply styles using meaningful style names. Its quite lightweight and therefore fast to load along with your website.

Bulma is compatible with all icon font libraries, eg. Font Awesome, Material Design, Ionicons, etc. Practicalli uses FontAwesome icon library to add common logos such at GitHub.

The Bulma library can be included via static html files, templates or via ClojureScript code.

Hint::Use a Content Delivery Networkλ︎

Bulma start documentation shows how to use the Bulma library from a Content Deliver Network (CDN). A CDN avoids the need to download and update a local copy of the Bulma CSS code.

Downloading Bulma is only useful if editing or extending Bulma itself or need to use Bulma with a custom CSS or Sass development workflow (or there is a limited network connection)

Including in static html fileλ︎

Add Bulma CSS and FontAwesome icons to a Figwheel-main template project web page using a Content Deliver Network (CDN) hosted file

Edit the resources/public/index.html file

Add the following line of code inside the <head> tag:

<link rel="stylesheet" href="">
<script defer src=""></script>

The Practicalli Landing page index.html file is a complete example, including a totally unnecessary page loading indicator, as well as more useful JavaScript function to activate the Bulma CSS 'burger' menu displayed on smaller screens (tablets, smartphones, etc.).

<!DOCTYPE html>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="">
    <script defer src=""></script>
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <link rel="icon" href="">
    <!-- <link rel="stylesheet" href="css/debug.css" /> -->
  <!-- Fix navigation menu to top of page -->
  <body class="has-navbar-fixed-top">
      <div id="app">
          <div class="container">
              <h1 class="title is-1">Loading the application, hold on tight!</h1>
              <!-- Totally redundant page loading progress indicator -->
              <progress class="progress is-large is-primary" max="100"></progress>
      </div> <!-- end of app div -->
    <script src="cljs-out/dev-main.js" type="text/javascript"></script>

    <!-- Script for Bulma hamburger menu -->
    <!-- -->
     (function() {
         var burger = document.querySelector('.burger');
         var nav = document.querySelector('#';

         burger.addEventListener('click', function(){

Bulma via Clojure Hiccup codeλ︎

Generate html code from ClojureScript using the hiccup style syntax.

[:link {:rel "stylesheet"
        :href ""}]
[:script {:defer true
          :src ""}]