OpenGov Visual Interface Documentation

Typography

Font Family

Benton Sans is the font used in all product UI

$primaryFontFamily: "Benton Sans", "benton sans", $helvetica, sans-serif;

Font Size (Function)

Creates px units for font-size based on a preset typographic scale.

We use a 3:4 (Perfect Fourth) Scale with 18px and 15px as base units. You can find a chart of this scale here http://modularscale.com/scale/?px1=18&px2=15&ra1=1.333&ra2=0.

Usage:

  • font-size: fontSize(4); // Outputs 28px
  • font-size: fontSize(0); // Outputs 16px
  • font-size: fontSize(-2); // Outputs 12px
The world's most important industry.

48px

fontSize(6)
The world's most important industry.

40px

fontSize(5)
The world's most important industry.

28px

fontSize(4)
The world's most important industry.

24px

fontSize(3)
The world's most important industry.

20px

fontSize(2)
The world's most important industry.

18px

fontSize(1)
The world's most important industry.

16px

fontSize(0)
The world's most important industry.

14px

fontSize(-1)
The world's most important industry.

12px

fontSize(-2)
The world's most important industry.

10px

fontSize(-3)
The world's most important industry.
<span style="font-size: [modifier class]">The world's most important industry.</span>

Font Weights

We use Benton Sans and Condensed in several weights: thin: 100, light: 300, normal: 400, semibold: 600, and bold: 700, extra bold: 800.

Benton Sans ([modifier class])

100

$fontWeightThin

Benton Sans (100)

300

$fontWeightLight

Benton Sans (300)

400

$fontWeightNormal

Benton Sans (400)

600

$fontWeightSemibold

Benton Sans (600)

700

$fontWeightBold

Benton Sans (700)

800

$fontWeightExtraBold

Benton Sans (800)

<h3 style="font-weight: [modifier class]">Benton Sans ([modifier class])</h3>

Standard Tags

We aren't strict about when to use header tags and when just to use spans with the font-size set manually.

Heading 1

Heading 2

Heading 3

Heading 4

Etiam at risus et justo dignissim congue. Donec congue lacinia dui, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus.

Mauris iaculis porttitor posuere. Praesent.
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<p>Etiam at <b>risus</b> et justo dignissim congue. <a href="#">Donec congue lacinia dui</a>, a porttitor lectus condimentum laoreet. Nunc eu ullamcorper orci. Quisque eget odio ac lectus vestibulum faucibus eget in metus.</p>
<small>Mauris iaculis porttitor posuere. Praesent.</small>

Highlights

Nulla facilisi. Duis aliquet tegestas purus in blandit. Curabitur.

<p>Nulla facilisi. Duis aliquet t<span class="ui-highlight">egestas pur</span>us in blandit. Curabitur.</p>

Labels

Sometimes you've just got to tell people more stuff about stuff.

There was a problem connecting to the OpenGov server We'll automatically try to connect you again in a few seconds.

.new

A new label

There was a problem connecting to the OpenGov server We'll automatically try to connect you again in a few seconds.

<p class="ui-null [modifier class]">
  <strong>There was a problem connecting to the OpenGov server</strong>
  We'll automatically try to <a href="#">connect</a> you again in a few seconds.
</p>

Null message

Use when there's no data, or otherwise nothing to show on a page or component. By default, the null message will be centered and offset pleasantly from the top of the component. If you need the message to be centered on the page vertically and horizontally, add .align-center.

There was a problem connecting to the OpenGov server We'll automatically try to connect you again in a few seconds.

.align-center

Absolutely positioned

There was a problem connecting to the OpenGov server We'll automatically try to connect you again in a few seconds.

<p class="ui-null [modifier class]">
  <strong>There was a problem connecting to the OpenGov server</strong>
  We'll automatically try to <a href="#">connect</a> you again in a few seconds.
</p>

Component Labels

More label-y, less badge-y.

Component Label

.comp-label-small

A new label
Component Label
<span class="comp-label [modifier class]">Component Label</span>