---
title: Publishing Vanilla
description: We’ve got a new CSS framework at Canonical, named Vanilla. My colleague
  Ant has a great write-up introducing Vanilla. Essentially it’s a CSS microframework
  powered by Sass. The build process consists of two steps, an open source build,
  and a private build. Open Source Build While there are inevitably componants that
  need to be kept privat […]
url: https://canonical.com/blog/publishing-vanilla
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Tristram Oaten](https://canonical.com/blog/author/tristram-oaten "More about Tristram Oaten")

24 August 2015

# Publishing Vanilla

[Design](https://canonical.com/blog/tag/design)

---

Share the article

We’ve got a new CSS framework at Canonical, named [Vanilla](http://ubuntudesign.github.io/vanilla-framework/). My colleague [Ant](http://design.canonical.com/author/ya-bo-ng/) has a great write-up [introducing Vanilla](http://design.canonical.com/2015/06/introducing-vanilla/). Essentially it’s a CSS microframework powered by Sass. The build process consists of two steps, an open source build, and a private build.

### Open Source Build

While there are inevitably componants that need to be kept private (keys, tokens, etc.) being Canonical, we want to keep much of the build in the open, in addition to the code. We wanted the build to be as automated and close to CI/CD principles as possible. Here’s what happens:

Committing to our [github repository](https://github.com/ubuntudesign/vanilla-framework) kicks off a [travis](https://travis-ci.org/ubuntudesign/vanilla-framework) build that runs [gulp](http://gulpjs.com/) tests, which include [sass-lint](https://github.com/brigade/Sass-lint/). And we also use [david-dm.org](https://david-dm.org/ubuntudesign/vanilla-framework#info=devDependencies) to make sure our npm dependencies are up to date. All of these have nice badges we can link to right from our github page, so the first thing people see is the heath of our project. I really like this, it keeps us honest, and informs the community.

Not everything can be done with travis, however, as publishing Vanilla to [npm](https://www.npmjs.com/), updating our project page and demo site require some private credentials. For the confidential build, we use [Jenkins](https://jenkins-ci.org/). (formally Hudson, a java-based build management system.).

### Private Build with Jenkins

Our Jenkins build does a few things:

1. Increment the package.json version number
2. npm publish [(package)](https://www.npmjs.com/package/vanilla-framework)
3. Build Sass with `npm install`
4. Upload css to our assets server
5. Update Sassdoc
6. Update demo site with new CSS

[Robin](http://design.canonical.com/author/nottrobin/) put this functionality together in a neat bash script: [publish.sh](https://github.com/ubuntudesign/vanilla-builder/blob/master/publish.sh).

We use this script in a Jenkins build that we kick off with a few parameters, `point`, `minor` and `major` to indicate the version to be updated in package.json. This allows our devs push-button releases on the fly, with the same build, from bugfixes all the way up to stable releases (1.0.0)

After less than 30 seconds, our [demo site](http://ubuntudesign.github.io/vanilla-framework/demo/), which showcases framework elements and their usage, is updated. This demo is styled with the latest version of Vanilla, and also serves as documentation and a test of the CSS. We take advantage of github’s html publishing feature, [Github Pages](https://pages.github.com/). Anyone can grab – or even hotlink – the files on our [release page](http://ubuntudesign.github.io/vanilla-framework/releases.html).

### The Future

It’d be nice for the regression test (which we currently just eyeball) to be automated, perhaps with a visual diff tool such as [PhantomCSS](https://github.com/Huddle/PhantomCSS) or a bespoke solution with Selenium.

### Wrap-up

Vanilla is ready to hack on, go get it [here](http://design.canonical.com/2015/06/introducing-vanilla/) and tell us what you think! (And yes, you can get it in colours other than *Ubuntu Orange*)

[Get in touch

Interested in running Ubuntu in your organization?](https://ubuntu.com/about/contact-us/form)

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

In submitting this form, I confirm that I have read and agree to
[Canonical's Privacy Notice](https://canonical.com/legal/data-privacy/contact)
and [Privacy Policy](https://canonical.com/legal/data-privacy).

Sign up

## Share on

---

## Related posts

[### From documentation to design thinking: lessons from Canonical’s Design Academy](https://canonical.com/blog/from-documentation-to-design-thinking-lessons-from-canonicals-design-academy)

Technical Authors at Canonical design experiences: they organize complex information, guide users through unfamiliar systems, and translate technical detail into something...

[Miguel Divo](https://canonical.com/blog/author/mdivo)

18 November 2026

[### Designing a better future: your guide to design contribution in Open Source](https://canonical.com/blog/designing-a-better-future-your-guide-to-design-contribution-in-open-source)

This guide covers why design matters in open source, and how designers can make a bigger impact in open source software.

[Leia Ruffini](https://canonical.com/blog/author/leiaru)

3 November 2026

[### From personas to archetypes: a living, shared understanding of the people we build for (Part 2 of 2)](https://canonical.com/blog/from-personas-to-archetypes-part-2)

This is the second of two posts on our archetypes, shared, machine-readable descriptions of the people we build for. The first covers why we needed them and what they are. This...

[Peter B. Polgár](https://canonical.com/blog/author/polgarp)

23 October 2026

[### From personas to archetypes: a living, shared understanding of the people we build for (Part 1 of 2)](https://canonical.com/blog/from-personas-to-archetypes)

Personas are easy to create but often ignored. This is the first of two posts about how we developed archetypes to keep our personas fresh at Canonical. These are shared,...

[Peter B. Polgár](https://canonical.com/blog/author/polgarp)

19 October 2026
