Jump to main content

Rule


The rule component indicates the beginning of a new group of elements. This might be at the section level, or between more granular elements, like paragraphs.

It "anchors" elements that are far apart, and at risk of appearing floating in space.

It indicates the direction in which we want the viewer to read the content.

Default

Highlighted

You can add a highlight to a rule to make it stand out more. This is useful for drawing attention to a section of content.

Import

To add a rule into your project, copy the snippet below and include it in your main Sass file.

// import Vanilla and include base mixins
// this only needs to happen once in a given project
@import 'vanilla-framework';
@include vf-base;

@include vf-p-rule;

For more information see Customising Vanilla in your projects, which includes overrides and importing instructions.