Labels

Labels are useful inline components that can be dropped into body copy to call out certain sections or to attach metadata. For example, you can attach a label that notes when something was updated.

Basic

Render a label with the .label class.

EXAMPLE

Show Code

<!-- Example label -->
<span class="label">Default Label</span>
Default Label
NOTE: The way in which the label element is architected (with regard, specifically, to its sizing) in LV-Foundation is very different from the way in which it is architected in Foundation by default.

Sizing

By default, a label will size itself responsively with regard to its neighboring context. Take, for example:

EXAMPLE

Show Code

<!-- Labels change size with their parents by default -->
<p>This is a label inside a paragraph.<span class="label">Default Label</span></p>
<h3>This is a label inside an h3.<span class="label">Default Label</span></h3>

This is a label inside a paragraph.Default Label

This is a label inside an h3.Default Label

If you would like to render your label with a fixed size, you may do so with any of the standard accompanying size classes, as seen with buttons.

EXAMPLE

Show Code

<!-- Example sized labels -->
<span class="label tiny">Tiny Label</span>
<span class="label small">Small Label</span>
<span class="label medium">Medium Label</span>
<span class="label large">Large Label</span>
Tiny Label Small Label Medium Label Large Label

Colors

You may also add priorital / contextual colors to your labels.

Priorital Colors

EXAMPLE

Show Code

<!-- Example priorital labels -->
<span class="label small secondary">Secondary Label</span>
<span class="label small tertiary">Tertiary Label</span>
Secondary Label Tertiary Label

Contextual Colors

EXAMPLE

Show Code

<!-- Example contextual labels -->
<span class="label small success">Success Label</span>
<span class="label small warning">Warning Label</span>
<span class="label small alert">Alert Label</span>
<span class="label small info">Info Label</span>
Success Label Warning Label Alert Label Info Label

Ghosting Labels

Labels can be used on dark backgrounds using the .ghost class. See the ghosting section for use of .ghost-children and more explanation.

EXAMPLE

Show Code

<!-- Example ghosting labels -->
<div class="bg-off-black padding-medium ghost-children">
    <span class="label small ghost">Default Label</span>
    <span class="label small success ghost">Success Label</span>
    <span class="label small warning ghost">Warning Label</span>
    <span class="label small alert ghost">Alert Label</span>
    <span class="label small info ghost">Info Label</span>
    <span class="label small secondary ghost">Secondary Label</span>
    <span class="label small tertiary ghost">Tertiary Label</span>
</div>
Default Label Success Label Warning Label Alert Label Info Label Secondary Label Tertiary Label