by timonweb

timonweb / django-bulma

Bulma theme for Django

236 Stars 37 Forks Last release: Not found MIT License 115 Commits 20 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

A Bulma Theme for Django Projects

Django Bulma

A Django base theme based on Bulma ( Bulma is a modern CSS framework based on Flexbox.

*** work in progress ***


  1. Install the python package django-bulma from pip

pip install django-bulma

Alternatively, you can install download or clone this repo and call

pip install -e .
  1. Add to INSTALLED_APPS in your

  1. If you want to use the provided base template, extend from bulma/base.html:
  {% extends 'bulma/base.html' %}

{% block title %}Bulma Site{% endblock %}

{% block content %} Content goes here... {% endblock content %}

  1. If you want to customize bulma sass and your own components:

    4.1 Copy bulma static files into your project's STATIC_ROOT:

    python copy_bulma_static_into_project

    You should see bulma dir appeared in your STATIC_ROOT. It contains two dirs:

    • sass - this is the place where you can put your own sass code and customize bulma variables
    • css - this is where compiled sass output goes, you should link this file in your base.html

    4.2 Install npm packages for sass compilation to work:

    python bulma install

    4.3 Start sass watch mode:

    python bulma start
  2. For forms, in your templates, load the

    library and use the
    Example template
    {% load bulma_tags %}

    {# Display a form #}

    {% csrf_token %} {{ form|bulma }}

Included templates

django-bulma comes with: * a base template, * django core registration templates,

Bugs and suggestions

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.