--- title: Title and Subtitle layout: documentation doc-tab: elements doc-subtab: title breadcrumb: - home - documentation - elements - elements-title meta: colors: false sizes: true variables: true --- {% capture default %}

Title

Subtitle

{% endcapture %} {% capture title_sizes %}

Title 1

Title 2

Title 3

Title 4

Title 5
Title 6
{% endcapture %} {% capture subtitle_sizes %}

Subtitle 1

Subtitle 2

Subtitle 3

Subtitle 4

Subtitle 5
Subtitle 6
{% endcapture %} {% capture combine %}

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5

{% endcapture %} {% capture spaced %}

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5

{% endcapture %}

There are 2 types of heading:

  • title
  • subtitle

Title

Subtitle

{% highlight html %}{{ default }}{% endhighlight %}
{% include elements/anchor.html name="Sizes" %}

There are 6 sizes available:

Title 1

Title 2

Title 3 (default size)

Title 4

Title 5

Title 6

{% highlight html %}{{ title_sizes }}{% endhighlight %}

Subtitle 1

Subtitle 2

Subtitle 3

Subtitle 4

Subtitle 5 (default size)

Subtitle 6

{% highlight html %}{{ subtitle_sizes }}{% endhighlight %}

When you combine a title and a subtitle, they move closer together.

As a rule of thumb, it is recommended to use a size difference of two. So if you use a title is-1, combine it with a subtitle is-3.

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5

{% highlight html %}{{ combine }}{% endhighlight %}

New!

You can maintain the normal spacing between titles and subtitles if you use the is-spaced modifier on the first element.

Title 1

Subtitle 3

Title 2

Subtitle 4

Title 3

Subtitle 5

{% highlight html %}{{ spaced }}{% endhighlight %}
{% include components/variables.html type='element' %}